Based on the State Space MPC code in MATLAB Central, a Simulink block of the State Space MPC is developed using sfunction. Two examples to use this MPC block, one with a continous time state space plant and another with a discrete space state plant are included in the tutorial. These two plant can be replaced by a corresponding nonlinear model in continous-time or discrete-time.
1