This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Use Accelerator Mode During Simulations

About Accelerating Optimization

Simulink® Design Optimization™ software supports Normal and Accelerator simulation modes. You can accelerate the design optimization computations by changing the simulation mode of your Simulink model to Accelerator. For information about these modes, see How Acceleration Modes Work (Simulink) 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.


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 (Simulink) blocks.

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

Setting Accelerator Mode

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

  • Select under Simulation > Mode > Accelerator.

  • Choose Accelerator from the drop-down list as shown in the next figure.

      Tip:   To obtain the maximum performance from the Accelerator mode, close all Scope blocks in your model.

Related Topics

Was this topic helpful?