Main Content

Save and Load Optimization Sessions

Structure of an Optimization Session

The Response Optimizer stores and organizes data from a given Simulink® model inside a session. An optimization session includes the following information:

  • Design variables and uncertain variables

  • Design requirements

  • Optimization results

  • Optimization settings

  • Plots — Changes to plots layout and plot characteristics, such as axis limits, line colors, are not included.

The default session name is the same as the Simulink model name. The session name displays on the title pane of Response Optimizer.

Save a Session

Saving a session lets you reuse your settings and optimization results later. Each Response Optimizer session is associated with a Simulink model.

You can save the session as either a MAT-file or workspace variable.

  • To save the session as a MAT-file, in the Response Optimization tab, in the Save Session drop-down list, click Save to file. A window opens where you specify the MAT-file name.

  • To save the session as a model or MATLAB® workspace variable, in the Save Session drop-down list, select Save to model workspace or Save to MATLAB workspace.

Load a Session

To load a previously saved MAT-file or workspace session:

  1. Open the Response Optimizer for the model.

  2. To load a MAT-file, in the Response Optimization tab, click the Open Session drop-down list, and select Open from file. A window opens where you select the MAT-file to load.

    To load a workspace variable, select Open from model workspace or Open from MATLAB workspace in the Open Session drop-down list.

Related Topics