Main Content

Simulation

R2026b
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.

Functions

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

Blocks

MPC Controller blockMPC ControllerSimulate model predictive controller

Apps

MPC DesignerDesign and simulate model predictive controllers

Topics

Simulation Basics

Run-Time Features

QP Solvers for Linear MPC

Case Studies

Related Information