%% Obtain Test Results and Suppress Testing Report
%
% Define a plant model, and create an MPC controller.

plant = rss(3,1,1);
plant.D = 0;
Ts = 0.1;
MPCobj = mpc(plant,Ts);

%
% Specify constraints for the controller.

MV = MPCobj.MV;
MV.Min = -2;
MV.Max =  2;
MV.RateMin = -4;
MV.RateMax =  4;
MPCobj.MV = MV;

%
% Review the controller design, and suppress the testing report.

results = review(MPCobj)

% All of the tests passed, except for the hard MV constraints test, which generated a warning.
% Copyright 2018 The MathWorks, Inc.