Simulink Control Design™ - MathWorks

(Tuis.) #1

Compute Operating Points from Specifications at the


Command Line


You can compute a steady-state operating point of a Simulink® model by specifying
constraints on the model states, outputs, and inputs, and by finding a model operating
condition that satisfies these constraints. For more information on steady-state operating
points, see “About Operating Points” on page 1-3 and “Compute Steady-State Operating
Points” on page 1-6.

To find an operating point for your Simulink model, you can programmatically trim your
model using the findop, as shown in this example.

Alternatively, you can trim your model in the:


  • Steady State Manager. For more information, see “Compute Operating Points from
    Specifications Using Steady State Manager” on page 1-23.

  • Linear Analysis Tool. For more information, see “Compute Operating Points from
    Specifications Using Linear Analysis Tool” on page 1-41.


In this example, you compute an operating point to meet output specifications. Using a
similar approach, you can define state or input specifications. Also, you can define a
combination of state, output, and input specifications; that is, you do not have to use, for
example, only state specifications.

For more information on trimming your model to meet specifications, see “Compute
Steady-State Operating Points from Specifications” on page 1-15.

Open Simulink Model

Open the Simulink model.

mdl = 'scdspeed';
open_system(mdl)

Compute Operating Points from Specifications at the Command Line
Free download pdf