Simulink Control Design™ - MathWorks

(Tuis.) #1

Simulate Simulink Model at Specific Operating Point


This example shows how to initialize a model at a specific operating point for simulation.
For more information on computing operating points, see “Compute Steady-State
Operating Points” on page 1-6 and “Find Operating Points at Simulation Snapshots” on
page 1-108

To simulate your model at your computed operating point, you must set the model initial
conditions to match the states and inputs in the operating point.

If you already have an operating point, op, in your MATLAB or model workspace, you can
set the initial conditions in the Configuration Parameters dialog box, in the Data Import/
Export pane. To do so:


  • Set the Input parameter to getinputstruct(op).

  • Set the Initial state parameter to getstatestruct(op).


Alternatively, if you computed your operating point using the Steady State Manager or
Linear Analysis Tool, you can interactively set the model initial conditions form within
these tools.

Once you have set your model initial condition, simulate your model at the specified
operating point. In the Simulink Editor, select Simulation > Run.

Set Model Operating Point Using Steady State Manager


In the Steady State Manager, in the Data Browser, in the Operating Point section,
right-click the operating point at which you want to simulate the model, and select Open
Selection.

If you computed multiple operating points using a simulation snapshot, in the operating
point document, select an operating point from the Select Operating Point drop-down
list.

Linearize Simulink Model at Model Operating Point 2-

Free download pdf