Specifications
Linearize Simulink Models
2-23
For example, the following code specifies the coolant temperature as 305 K and initial
guess values of the C_A and T_K states before calculating the steady-state operating
point:
opspec = operspec('CSTR_OpenLoop');
opspec.States(1).x = 1;
opspec.States(2).x = 400;
opspec.Inputs(1).Known = true;
opspec.Inputs(1).u = 305;
op2 = findop('CSTR_OpenLoop',opspec);
Operating Point Search Report:
---------------------------------
Operating Report for the Model CSTR_OpenLoop.
(Time-Varying Components Evaluated at time t=0)
Operating point specifications were successfully met.
States:
----------
(1.) CSTR_OpenLoop/CSTR/C_A
x: 1.78 dx: -8.88e-15 (0)
(2.) CSTR_OpenLoop/CSTR/T_K
x: 377 dx: 1.14e-13 (0)
Inputs:
----------
(1.) CSTR_OpenLoop/Coolant Temperature
u: 305
Outputs: None
----------
Specify Linearization Inputs and Outputs
If the linearization input and output signals are already defined in the model, as in
CSTR_OpenLoop, then use the following to obtain the signal set.
io = getlinio('CSTR_OpenLoop');
Otherwise, specify the input and output signals as shown here.