Simulink Control Design™ - MathWorks

(Tuis.) #1

validate your operating point against the specifications, you must check whether the
operating point values satisfy the constraints.


For example, open the scdairframeTRIM model and set the model parameters.


sys = 'scdairframeTRIM';
open_system(sys)


alpha_ini = -0.21;
v_ini = 933;


Create an operating point specification object, and specify which states are known and
which are at steady state.


opspec = operspec(sys);
opspec.States(1).Known = [1;1];
opspec.States(1).SteadyState = [0;1];
opspec.States(3).Known = [1;1];
opspec.States(3).SteadyState = [0;1];
opspec.States(2).Known = 1;
opspec.States(2).SteadyState = 0;
opspec.States(4).Known = 0;
opspec.States(4).SteadyState = 1;


Trim the model.


op = findop(sys,opspec);


Operating point search report:


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


Could not find a solution that satisfies all constraints. Relax the constraints to find a feasible solution.
States:


(1.) scdairframeTRIM/Airframe Model/EOM/ Equations of Motion (Body Axes)/Position
x: 0 dx: 913
x: -3.05e+03 dx: -194 (0)
(2.) scdairframeTRIM/Airframe Model/EOM/ Equations of Motion (Body Axes)/Theta
x: 0 dx: 0
(3.) scdairframeTRIM/Airframe Model/EOM/ Equations of Motion (Body Axes)/U,w
x: 913 dx: 25.3
x: -194 dx: 273 (0)


Validate Operating Point Against Specifications
Free download pdf