Main Content

Specify custom optimizations

Enable option to choose individual optimization parameters

Model Configuration Pane: Code Generation / Optimization

Description

This Specify custom optimizations parameter enables the optimization parameters in the Details section and provides you an option to choose individual optimization parameters rather than setting the Priority and Level.

Dependencies

This parameter enables parameters in the Details section.

Settings

off (default) | on
On

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

Off

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.

Tips

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.

Recommended Settings

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

Programmatic Use

Parameter: OptimizationCustomize
Type character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2018a