Main Content


Simulate controllers against linear or nonlinear plants in MATLAB® and Simulink®

The toolbox provides tools for simulating your controller from the command line and in Simulink. If you are designing a controller using the MPC Designer app, you can simulate control scenarios during the design process and generate a Simulink model from your design.


mpcmoveCompute optimal control action and update controller states
mpcmoveoptOption set for mpcmove function
mpcstateMPC controller state
simSimulate an MPC controller in closed loop with a linear plant
mpcsimoptMPC simulation options
plotPlot responses generated by MPC simulations


MPC ControllerSimulate model predictive controller


MPC DesignerDesign and simulate model predictive controllers


Simulation Basics

Run-Time Features

QP Solver

Case Studies

Related Information