{"id":21478403,"url":"https://github.com/mathworks-teaching-resources/model-predictive-control-virtual-lab","last_synced_at":"2025-04-23T00:45:06.496Z","repository":{"id":219157886,"uuid":"748321131","full_name":"MathWorks-Teaching-Resources/Model-Predictive-Control-virtual-lab","owner":"MathWorks-Teaching-Resources","description":"​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.​","archived":false,"fork":false,"pushed_at":"2024-07-09T14:24:48.000Z","size":4265,"stargazers_count":18,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-23T00:44:59.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MathWorks-Teaching-Resources.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-25T18:25:54.000Z","updated_at":"2025-03-20T01:46:46.000Z","dependencies_parsed_at":"2024-02-12T15:14:57.948Z","dependency_job_id":null,"html_url":"https://github.com/MathWorks-Teaching-Resources/Model-Predictive-Control-virtual-lab","commit_stats":null,"previous_names":["mathworks-teaching-resources/model-predictive-control-virtual-lab"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FModel-Predictive-Control-virtual-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FModel-Predictive-Control-virtual-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FModel-Predictive-Control-virtual-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathWorks-Teaching-Resources%2FModel-Predictive-Control-virtual-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathWorks-Teaching-Resources","download_url":"https://codeload.github.com/MathWorks-Teaching-Resources/Model-Predictive-Control-virtual-lab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250348874,"owners_count":21415907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T11:18:09.013Z","updated_at":"2025-04-23T00:45:06.471Z","avatar_url":"https://github.com/MathWorks-Teaching-Resources.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MPC Virtual Lab\n\n[![View \u003cFile Exchange Title\u003e on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/158356-model-predictive-control-mpc-virtual-lab)  \n\n[![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Model-Predictive-Control-virtual-lab)\n\nThis virtual lab contains interactive exercises to study the design of linear and adaptive model predictive controllers (MPCs) for implementing a vehicle steering control system.\n\nThe 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).\n\n\u003cimg src=\"MPC_ClosedLoop.png\" width=\"400\"\u003e\n\n\u003cimg src=\"CarModel.png\" width=\"400\"\u003e\n\n## Learning Goals\n- Model and simulate lateral vehicle dynamics\n- Design a linear MPC controller for the vehicle steering control system\n- Design an adaptive MPC controller for the vehicle steering control system\n- Bonus: Create custom trajectory and/or learn about methods for improved controllers\n\n## Setup \nTo 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.\n\n## Suggested Prework\n- [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.\n- [MATLAB Onramp](https://matlabacademy.mathworks.com/details/matlab-onramp/gettingstarted) – a free two-hour introductory tutorial that teaches the essentials of MATLAB.\n- [Simulink Onramp](https://matlabacademy.mathworks.com/details/simulink-onramp/simulink) – a free three-hour introductory tutorial that teaches the essentials of Simulink.\n\n## MathWorks Products (https://www.mathworks.com)\n\nRequires MATLAB release R2023b or newer\n- [MATLAB](https://www.mathworks.com/products/matlab.html)\n- [Simulink®](https://www.mathworks.com/products/simulink.html)\n- [Model Predictive Control Toolbox™](https://www.mathworks.com/products/model-predictive-control.html)\n- [Automated Driving Toolbox™](https://www.mathworks.com/products/automated-driving.html)\n\n## Educator Resources\n- [Controls courseware](https://www.mathworks.com/academia/courseware/teaching-controls-with-matlab-and-simulink.html)\n- [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)\n- [Virtual Labs and Projects with MATLAB and Simulink](https://www.mathworks.com/academia/educators/resources.html)\n\n## License\nThe license is available in the License.txt file in this GitHub repository.\n\nThe 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).\n\nCopyright 2023 The MathWorks, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-teaching-resources%2Fmodel-predictive-control-virtual-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathworks-teaching-resources%2Fmodel-predictive-control-virtual-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-teaching-resources%2Fmodel-predictive-control-virtual-lab/lists"}