You can accelerate the response optimization computations by
changing the simulation mode of your Simulink® model. Simulink Design Optimization™ software
modes. For more information about these modes, see How Acceleration Modes Work in
the Simulink documentation.
The default simulation mode is
this mode, Simulink uses interpreted code, rather than compiled
C code during simulations.
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 blocks.
If the model structure changes during optimization, the model
is compiled to regenerate the C code for each iteration. Using the
increases the computation time. To learn more about code regeneration,
see Code Regeneration in Accelerated Models in the Simulink documentation.
To set the simulation mode to
open the Simulink model window and perform one of the following
Select under Simulation > Mode > Accelerator.
the drop-down list as shown in the next figure.
To obtain the maximum performance from the