findop
Steady-state operating point from specifications (trimming) or simulation
Syntax
Description
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.
Examples
Input Arguments
Output Arguments
More About
Tips
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
usinglinearize
.To extract state and input values from an operating point object, use
getstatestruct
andgetinputstruct
, respectively.
Algorithms
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'
BlockReductionOpt = 'off'
SaveFormat = 'StructureWithTime'
After the optimization completes, Simulink restores the original model properties.
Alternative Functionality
App
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.