MPC
The adaptive cruise control ( ACC) system is a system on the vehicle that automatically adjusts the vehicle speed to maintain a safe distance from the vehicle in front. Suppose you need to design an ACC system for a vehicle so that it can automatically adjust its speed to maintain a safe distance from the vehicle in front. A simplified dynamic model of the vehicle can be described by the following continuous-time state-space equation:
Among them, the state vector includes the vehicle speed
and the distance to the vehicle in front. The control input is acceleration, and the
disturbance input is the speed change of the preceding vehicle. The state space matrix is as follows:
Among them,is the resistance coefficient andis the coefficient of influence of acceleration on vehicle speed.
Requirements: Using MATLAB and MPC Toolbox, design an MPC controller to control the speed of this vehicle so that it can meet the following requirements:
1.Vehicles should try to maintain the desired speed
2.The vehicle should maintain a safe distance from the vehicle in front , which is given by the formula, whereis the minimum keeping interval andis the time interval factor
3.The controller's prediction range should be set to 20 time steps and the control
range should be set to 5 time steps.
4.The absolute value of speed and acceleration does not exceed
5.The speed of the vehicle shall not exceed and shall not be lower than
6.The speed of the vehicle ahead satisfies the function
7.The initial state is
What needs to be done:
•MATLAB code for MPC controller design.
•Simulate for at least 30 seconds and output pictures of the vehicle speed and the distance to the vehicle in front
版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。