Find Steady-State Operating Points for Simscape
Models
You can find operating points for models with Simscape components using Simulink
Control Designsoftware. In particular, you can find steady-state operating points using
one of the following methods:
- Optimization-based trimming — Specify constraints on model inputs, outputs, or
states, and compute a steady-state operating point that satisfies these constraints. For
more information, “Compute Steady-State Operating Points” on page 1-6.
By default, you can define operating point specifications for any Simulink and
Simscape states in your model, and any root-level input and output ports of your
model. You can also define additional output specifications on Simulink signals. To
apply output specifications to a Simscape physical signal, first convert the signal using
a PS-Simulink Converter block.
- Simulation snapshot — Specify model initial conditions near an expected
equilibrium point, and simulate the model until it reaches steady state. You can then
create an operating point based on the steady-state signals and states in the model.
For more information, see “Find Operating Points at Simulation Snapshots” on page 1-
108.
Projection-Based Trim Optimizers
To produce better trimming results for Simscape models, you can use projection-based
trim optimizers. These optimizers enforce the consistency of the model initial condition at
each evaluation of the objective function or nonlinear constraint function. Using
projection-based trim optimizers requires Optimization Toolbox™ software.
You can use these projection-based optimizers when trimming models from the command
line and in the Linear Analysis Tool.
To specify the optimizer type at the command line, create a findopOptions option set,
and specify the Optimizer option as one of the following:
- 'lsqnonlin-proj' — Nonlinear least squares with projection
- 'graddescent-proj' — Gradient descent with projection
1 Steady-State Operating Points