mpc block on simulink: mpc controller object empty

6 views (last 30 days)
I would like to know which model does simulink use if in the MPC block the plant model is not specify. So when MPC Block in Simulink has the object in ''MPC Controller'' that is empty.

Answers (1)

Abhipsa
Abhipsa on 4 Sep 2025
In Simulink, the MPC Controller block always needs a plant prediction model internally to compute control moves. If you drop in an MPC Controller block and leave the MPC Controller parameter empty (i.e., no mpc object from the MATLAB workspace is linked), then the block has no defined prediction model. In that case:
  • It does not automatically infer or build a plant model.The block expects a preconfigured mpc object that already contains the plant model, weights, horizons, and constraints.
  • If left empty, the block cannot simulate or linearize the plant.During simulation, Simulink will either throw an error saying that the MPC object is not defined, or it will prompt you to specify one.
  • There is no default model built inside the block.The “plant model” field is mandatory when creating an mpc object in MATLAB for example, mpc(plant,Ts), so the block can never truly run with an “empty” model.
You can refer to the following MATLAB documentations for more use:

Tags

Products

Community Treasure Hunt

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

Start Hunting!