Examine MPC controller for design errors and stability problems at run time
for potential design issues in the model predictive controller,
and generates a report.
review performs the following
Is the optimal control problem well defined?
Is the controller internally stable?
Is the closed loop system stable when no constraints are active and there is no model mismatch?
Is the controller able to eliminate steady-state tracking error when no constraints are active?
Is there a likelihood that constraint definitions will result in an ill-conditioned or infeasible optimization problem?
If the controller were used in a real-time environment, what memory capacity would be needed?
review iteratively to check your initial
MPC design or whenever you make substantial changes to your controller.
Make the recommended changes to your controller to eliminate potential
review does not modify
Non-empty Model Predictive Controller (
Define a plant model and create an MPC controller.
plant = tf(1, [10 1]); Ts = 2; MPCobj = mpc(plant,Ts);
-->The "PredictionHorizon" property of "mpc" object is empty. Trying PredictionHorizon = 10. -->The "ControlHorizon" property of the "mpc" object is empty. Assuming 2. -->The "Weights.ManipulatedVariables" property of "mpc" object is empty. Assuming default 0.00000. -->The "Weights.ManipulatedVariablesRate" property of "mpc" object is empty. Assuming default 0.10000. -->The "Weights.OutputVariables" property of "mpc" object is empty. Assuming default 1.00000.
Set hard upper and lower bounds on the manipulated variable and its rate-of-change.
MV = MPCobj.MV; MV.Min = -2; MV.Max = 2; MV.RateMin = -4; MV.RateMax = 4; MPCobj.MV = MV;
Review the controller design.
-->Converting the "Model.Plant" property of "mpc" object to state-space. -->Converting model to discrete time. -->Assuming output disturbance added to measured output channel #1 is integrated white noise. -->The "Model.Noise" property of the "mpc" object is empty. Assuming white noise on each measured output channel.
review flags the potential constraint conflict that could result if this controller was used to control a real process.
You can review your controller design in the MPC Designer app. On the Tuning tab, in the Analysis section, click Review Design.
Test your controller design using techniques such
as simulations, since
review cannot detect all
possible performance factors.
review automates certain tests that you
can perform at the command line.