Import and Export Specifications and Initial Values for Operating Point Search
When you modify an operating point specification in Steady State
Manager or Model Linearizer, you can export the
specification to the MATLAB® workspace. Exported specifications are saved as operating point
specification objects (see operspec
). Exporting
specifications can be useful when you expect to perform multiple trimming
operations using the same or a similar set of specifications. Also, you can export
interactively edited operating point specifications when you want to use the
findop
command to perform
multiple trimming operations with a single compilation of the model. (See Batch Compute Steady-State Operating Points for Multiple Specifications.)
You can also import saved operating point specifications to Steady State Manager or Model Linearizer and use them to interactively compute trimmed operating points. Importing a specification can be useful when you want to trim a model to a specification that is similar to one you previously saved. In that case, you can import the specification and interactively change it. You can then export the modified specification or compute a trimmed operating point from it.
For more information about operating point specifications, see the operspec
and findop
reference pages.
Import Specification Using Steady State Manager
To import an operating point specification into Steady State Manager, on the Steady State tab, click Import.
In the Import Operating Point dialog box, select whether you want to import the specification from the MATLAB workspace or from a MAT-file. Then, in the table, in the Import column, select the specification that you want to import.
Click Import. The software adds the selected item to the corresponding pane of the Steady State Manager data browser.
In Steady State Manager, to set the initial values of a specification to the values from an imported operating point, on the Specification tab, click Initialize From, and select the operating point.
Export Specification Using Steady State Manager
To export an operating point specification from the Steady State Manager, on either the Steady State tab or the Specification tab, click Export.
In the Export Operating Point dialog box, in the Export column, select the specification that you want to export. When you click Export from the Specification tab, the corresponding specification is preselected in the dialog box.
Then, in the Export as column, specify the name of the workspace variable to which you want to save the specification.
Click Export.
Import Specification Using Model Linearizer
To import or export an operating point specification using Model
Linearizer, on the Linear Analysis tab, in
the Operating Point drop-down list, select
Trim Model
.
To import a specification, in the Trim the model dialog box, click Import.
Then, in the Import initial values and specifications dialog box, select whether you want to import the specification from the MATLAB Workspace or the Linear Analysis Workspace. Then, in the table, click the specification that you want to import.
Click Import.
If you import a specification object, the trimming specifications for the inputs, outputs and states update to use the settings in the specification object.
If you import an operating point object, just the initial input, output, and state values in the corresponding Value columns of the Trim the model dialog box update to use the values from the operating point.
Export Specification Using Model Linearizer
To export a specification, in the Trim the model dialog box, click Export.
Then, in the Export Specifications dialog box, select whether you want to export the specification to the MATLAB Workspace or the Linear Analysis Workspace. Then, in the Variable Name field, specify the name of the workspace variable to which you want to save the specification.
Click OK.