www.gusucode.com > mpc 案例源码 matlab代码程序 > mpc/ExamineMPCControllerForDesignErrorsOrStabilityProblemsExample.m
%% Examine MPC Controller for Design Errors or Stability Problems %% % Define a plant model and create an MPC controller. % Copyright 2015 The MathWorks, Inc. plant = tf(1, [10 1]); Ts = 2; MPCobj = mpc(plant,Ts); %% % 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. review(MPCobj) %% % <<../review.png>> %% % |review| flags the potential constraint conflict that could result if % this controller was used to control a real process. %% % <<../review2.png>>