Where are MPC toolbox examples?

Hi, I'm studying MPC control theory using MPC toolbox. Although these videos are really hepful https://www.youtube.com/watch?v=evyvdvApPLY&list=PLn8PRpmsu08ozoeoXgxPSBKLyd4YEHww8&index=6 , they don't give us how to do that in essence. The information from the videos seem superficial like,
Woman "Here, I have a custom library I've ever created"
Me "Wait wait wait, how can I do that???"
So, I wanna find the examples in the videos Or something like a folwchart that a beginner can understand.

Answers (1)

Cris LaPierre
Cris LaPierre on 22 Jun 2021
Edited: Cris LaPierre on 22 Jun 2021
If you expand the details of the video you linked to, you will see a link for downloading the model.
Learn how to design an MPC controller for an autonomous vehicle steering system using Model Predictive Control Toolbox™.
Alternatively, these videos are also part of the MPC toolbox documentation. On the page for this video, you will find a section for Code and Resources.

5 Comments

嵩人 藤森
嵩人 藤森 on 24 Jun 2021
Edited: 嵩人 藤森 on 24 Jun 2021
Thank you for that but there are sevelal things I don't undersatand. My aim is learnig how to bulit models and run through the autonomous steering system model.
I downloded "How To Design An MPC Controller With Simulink And Model Predictive Control Toolbox" from your link and opened "AutonomousSteeringSystem.slx" and 'Params.mat' as README says.
However, "???" appears on the Reference block with no jpg.image and Plant block with no jpg.image.
So please tell me what I should do
Cris LaPierre
Cris LaPierre on 24 Jun 2021
Edited: Cris LaPierre on 24 Jun 2021
The ??? just means it couldn't find the images that are used for the block masks. Consider adding the folder containing the unzipped contents you downloaded to your MATLAB Path to fix this.
However, the models are still there for your to explore and run.
I don't know what your background is. Have you gone through the Getting Started with Model Predictive Control Toolbox resources in the linked documentation page?
Thanks for that. I did what you said, adding the unzipped folder to MATLAB path but there is stil "???"
Also I don't understand " Getting Started with Model Predictive Control Toolbox resources in the linked documentation page " where can I find them? and What will happen once I've done?
Thaks for that. I also posted a quetuion about your URL so I would be glad if you answer it too
https://jp.mathworks.com/matlabcentral/answers/866270-all-states-explode-to-increase-in-simulink-using-mpc-toolbox?s_tid=srchtitle

Sign in to comment.

Products

Release

R2020b

Asked:

on 22 Jun 2021

Commented:

on 28 Jun 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!