Main Content

Specify custom optimizations


Select this parameter to enable the optimization parameters in the Details section. Selecting this parameter enables you to choose individual optimization parameters rather than setting the Priority and Level parameters.


Default: Off


Enables you to individually select or clear parameters in the Details section.


Disables the parameters in the Details section, so that you cannot individually select or clear these parameters.

Clearing this parameter enables the Level and Priority parameters and resets the parameters in the Details section to the current settings for the Level and Priority parameters.


This parameter:

  • Enables parameters in the Details section.

  • Requires an Embedded Coder® license.

  • Appears only for ERT-based targets.


If you plan on upgrading your software, be aware that:

  • Setting the Priority and Level parameters enables the latest optimizations corresponding with these settings for each subsequent release.

  • Selecting Specify custom optimizations means that when you load a model in a future release, optimization parameters that were introduced in releases after you adopted the software to when you upgrade are set to off. If you want to reduce the number of changes in the generated code when you upgrade your software, this option can be a good choice.

Command-Line Information

Parameter: OptimizationCustomize
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

DebuggingOff and set Level parameter to Minimize (debugging)
TraceabilityOff and set Level parameter to Minimize (debugging)
EfficiencyDepends on individual parameter settings
Safety precautionNo impact

See Also


Related Topics