Steady-state operating point from specifications (trimming) or simulation
returns the operating point of the model that meets the specifications in
op
= findop(mdl
,opspec
)opspec
. Typically, you trim the model at a steady-state operating
point. The Simulink® model must be open. If opspec
is an array of
operating points specifications, findop
returns an array of
corresponding operating points.
You can initialize an operating point search at a
simulation snapshot or a previously computed operating point using initopspec
.
Linearize the model at the operating point op
using linearize
.
By default, findop
uses the optimizer
graddescent-elim
. To use a different optimizer, change the value
of OptimizerType
in options
using findopOptions
.
findop
automatically sets these Simulink model
properties for optimization:
BufferReuse = 'off'
RTWInlineParameters = 'on'
BlockReductionOpt = 'off'
SaveFormat = 'StructureWithTime'
After the optimization completes, Simulink restores the original model properties.
As an alternative to the findop
command, you can find operating
points in one of the following ways.
Compute operating points using the Steady State Manager. For an example, see Compute Operating Points from Specifications Using Steady State Manager.
If you are computing an operating point for linearization, you can find the operating point and linearize the model using the Model Linearizer. For an example, see Compute Operating Points from Specifications Using Model Linearizer.
addoutputspec
| findopOptions
| initopspec
| linearize
| operspec