https://github.com/mathworks-teaching-resources/model-predictive-control-virtual-lab
This virtual lab contains interactive exercises to study the design of linear and adaptive model predictive controllers (MPCs) for implementing a vehicle steering control system.
https://github.com/mathworks-teaching-resources/model-predictive-control-virtual-lab
Last synced: 9 months ago
JSON representation
This virtual lab contains interactive exercises to study the design of linear and adaptive model predictive controllers (MPCs) for implementing a vehicle steering control system.
- Host: GitHub
- URL: https://github.com/mathworks-teaching-resources/model-predictive-control-virtual-lab
- Owner: MathWorks-Teaching-Resources
- License: other
- Created: 2024-01-25T18:25:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-09T14:24:48.000Z (over 1 year ago)
- Last Synced: 2025-04-23T00:44:59.593Z (9 months ago)
- Language: MATLAB
- Size: 4.07 MB
- Stars: 18
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license.txt
- Security: SECURITY.md
Awesome Lists containing this project
README
# MPC Virtual Lab
[](https://www.mathworks.com/matlabcentral/fileexchange/158356-model-predictive-control-mpc-virtual-lab)
[](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Model-Predictive-Control-virtual-lab)
This virtual lab contains interactive exercises to study the design of linear and adaptive model predictive controllers (MPCs) for implementing a vehicle steering control system.
The lab solutions are available upon instructor request. If you would like to request solutions, find an issue, or have a suggestion, contact us [here](https://www.mathworks.com/campaigns/surveys/mpc-virtual-lab-solution-request.html).


## Learning Goals
- Model and simulate lateral vehicle dynamics
- Design a linear MPC controller for the vehicle steering control system
- Design an adaptive MPC controller for the vehicle steering control system
- Bonus: Create custom trajectory and/or learn about methods for improved controllers
## Setup
To get started with the MPC virtual lab, double-click the MPCVirtualLab.prj file inside MATLAB™. Then open up the MPC_virtual_lab.mlx live script, where you'll find the instructions for running the interactive exercises to complete the virtual lab.
## Suggested Prework
- [MPC Tech Talks](https://www.mathworks.com/videos/series/understanding-model-predictive-control.html) – help students gain insights into why engineers use Model Predictive Control, how they work, and the difference between linear and non-linear Model Predictive Control.
- [MATLAB Onramp](https://matlabacademy.mathworks.com/details/matlab-onramp/gettingstarted) – a free two-hour introductory tutorial that teaches the essentials of MATLAB.
- [Simulink Onramp](https://matlabacademy.mathworks.com/details/simulink-onramp/simulink) – a free three-hour introductory tutorial that teaches the essentials of Simulink.
## MathWorks Products (https://www.mathworks.com)
Requires MATLAB release R2023b or newer
- [MATLAB](https://www.mathworks.com/products/matlab.html)
- [Simulink®](https://www.mathworks.com/products/simulink.html)
- [Model Predictive Control Toolbox™](https://www.mathworks.com/products/model-predictive-control.html)
- [Automated Driving Toolbox™](https://www.mathworks.com/products/automated-driving.html)
## Educator Resources
- [Controls courseware](https://www.mathworks.com/academia/courseware/teaching-controls-with-matlab-and-simulink.html)
- [Teaching Modeling and Controls using MATLAB Live Scripts](https://www.mathworks.com/videos/teaching-modeling-and-controls-with-the-matlab-live-editor-1623992486476.html?s_tid=srchtitle_teaching%20modeling%20and%20controls_1)
- [Virtual Labs and Projects with MATLAB and Simulink](https://www.mathworks.com/academia/educators/resources.html)
## License
The license is available in the License.txt file in this GitHub repository.
The lab solutions are available upon instructor request. If you would like to request solutions, find an issue, or have a suggestion, contact us [here](https://www.mathworks.com/campaigns/surveys/mpc-virtual-lab-solution-request.html).
Copyright 2023 The MathWorks, Inc.