Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Steady-state operating point from specifications (trimming) or simulation

`op = findop(mdl,opspec)`

`op = findop(mdl,opspec,param)`

`op = findop(___,options)`

```
[op,opreport]
= findop(___)
```

`op = findop(mdl,tsnapshot)`

`op = findop(mdl,tsnapshot,param)`

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

**Linear Analysis Tool**. For an example, see Compute Operating Points from Specifications Using Linear Analysis Tool.

`addoutputspec`

| `findopOptions`

| `initopspec`

| `linearize`

| `operspec`