MPC Designer
Design and simulate model predictive controllers
Description
The MPC Designer app lets you design and simulate model predictive controllers in MATLAB® and Simulink®.
Using this app, you can:
Interactively design model predictive controllers and validate their performance using simulation scenarios
Obtain linear plant models by linearizing Simulink models (requires Simulink Control Design™)
Review controller designs for potential run-time stability or numerical issues
Compare response plots for multiple model predictive controllers
Generate Simulink models with an MPC controller and plant model
Generate MATLAB scripts to automate MPC controller design and simulation tasks
Limitations
The following advanced MPC features are not available in the MPC Designer app.
Explicit MPC design
Adaptive MPC design
Nonlinear MPC design
Mixed input/output constraints (
setconstraint)Terminal weight specification (
setterminal)Custom state estimation (
setEstimator)Sensitivity analysis (
sensitivity)Alternative cost functions with off-diagonal weights
Specification of initial plant and controller states for simulation
Specification of nominal state values using
mpcobj.Model.Nominal.Xandmpcobj.Model.Nominal.DXUpdating weights, constraints, MV targets, and external MVs online during simulations
If your application requires any of these features, design and simulate your controller at the command line. You can also run simulations in Simulink when using these features.
Open the MPC Designer App
MATLAB Toolstrip: On the Apps tab, under Control System Design and Analysis, click the app icon.
MATLAB command prompt: Enter
mpcDesigner.Simulink model editor: In the MPC Controller Block Parameters dialog box, click Design.
