Specify whether to preserve order of operands in expressions.
Category: Code Generation > Code Style
Default: off
Preserves the expression order specified in the model. Select this option to increase readability of the code or for code traceability purposes.
A*(B+C)
Optimizes efficiency of code for nonoptimized compilers by reordering commutable operands to make expressions left-recursive. For example:
(B+C)*A
Parameter: PreserveExpressionOrder |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Application | Setting |
---|---|
Debugging | On |
Traceability | On |
Efficiency | Off |
Safety precaution | No recommendation |