Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Design Optimization   

simget - Current simulation settings

Syntax

simoptions=simget('proj')

Description

simoptions=simget('proj') returns a object containing the current simulation options, simoptions, used by the response optimization project, proj. To modify the project's simulation settings, use the simset function.

For a detailed list of simulation options and the possible values they can take, see the reference page for the Simulink function simset. The default values of the simulation options for the project are the same as those used by the Simulink model the project is associated with. Changes that are made to the project's simulation settings are only used during simulations that are run as part of the optimization, and they do not affect the simulation settings for the model.

Example

Create a response optimization project for the srotut1 model.

proj=newsro('srotut1','Kint');

Get the simulation settings for this project

simoptions = simget(proj)

This returns

simoptions = 
         AbsTol: 1.0000e-006
      FixedStep: 'auto'
    InitialStep: 'auto'
        MaxStep: 'auto'
        MinStep: 'auto'
         RelTol: 1.0000e-003
         Solver: 'ode45'
      ZeroCross: 'on'
      StartTime: '0.0'
       StopTime: '50'

See Also

optimget, optimset, simset

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS