Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Design Optimization   

Accelerating Model Simulations During Optimization

About Accelerating Optimization

You can accelerate the response optimization computations by changing the simulation mode of your Simulink model. Simulink Design Optimization software supports Normal and Accelerator simulation modes. For more information about these modes, see Accelerating Models in the Simulink documentation.

The default simulation mode is Normal. In this mode, Simulink uses interpreted code, rather than compiled C code during simulations.

In the Accelerator mode, Simulink Design Optimization software runs simulations during optimization with compiled C code. Using compiled C code speeds up the simulations and reduces the time to optimize the model response signals.

Limitations

You cannot use the Accelerator mode if your model contains algebraic loops. If the model contains MATLAB function blocks, you must either remove them or replace them with Fcn blocks.

If the model structure changes during optimization, the model is compiled to regenerate the C code for each iteration. Using the Accelerator mode increases the computation time. To learn more about code regeneration, see Code Regeneration in Accelerated Models in the Simulink documentation.

Setting Accelerator Mode for Parameter Optimization

To set the simulation mode to Accelerator, open the Simulink model window and perform one of the following actions:

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS