Simulink Control Design™ - MathWorks

(Tuis.) #1
Create default operating point specification object.

opspec = operspec(mdl);

Configure specifications for the first model state.

opspec.States(1).SteadyState = 1;
opspec.States(1).x = 2;
opspec.States(1).Min = 0;

Configure specifications for the second model state.

opspec.States(2).Known = 1;
opspec.States(2).x = 10;

Find the operating point that meets these specifications, and return the operating point
search report. Create an option set to suppress the search report display.

opt = findopOptions('DisplayReport',false);
[op,opreport] = findop(mdl,opspec,opt);

opreport describes how closely the optimization algorithm met the specifications at the
end of the operating point search.

opreport

Operating point search report for the Model watertank.
(Time-Varying Components Evaluated at time t=0)

15 Alphabetical List

Free download pdf