MATLAB Answers

Model Predictive Control in MATLAB

4 views (last 30 days)
Hi there,
I'm very new in MPC and do not have any ideas how to run MPC in MATLAB. It would be my great pleasure if anyone could help me and let me know about the limitations of using MPC as a mpc function, Model Predictive Control Toolbox(which is basically a kind of Simulink? While I'm not familiar with Simulink at all, I'd prefer to use the fisrt model. However, not sure what would be the limitations in that case.

Accepted Answer

Saurav Chaudhary
Saurav Chaudhary on 2 Nov 2020
Model Predictive Control Toolbox provides functions, an app, and Simulink blocks for designing and simulating controllers using linear and nonlinear model predictive control (MPC). The toolbox lets you specify plant and disturbance models, horizons, constraints, and weights. By running closed-loop simulations, you can evaluate controller performance. You can adjust the behavior of the controller by varying its weights and constraints at run time. The toolbox provides deployable optimization solvers and also enables you to use a custom solver. To control a nonlinear plant, you can implement adaptive, gain-scheduled, and nonlinear MPC controllers. For applications with fast sample rates, the toolbox lets you generate an explicit model predictive controller from a regular controller or implement an approximate solution. For rapid prototyping and embedded system implementation, including deployment of optimization solvers, the toolbox supports C code and IEC 61131-3 Structured Text generation.
Now the best way to find about limitations would be the application you are looking for and whether it comes under the scope of Predictive Control Modelling. Other than that you should be able to implement the model.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!