Maximum order
Order of numerical differentiation formulas used for ode15s solver
Model Configuration Pane: Solver
Description
The Maximum order parameter specifies the order of the numerical
differentiation formulas (NDFs) used for the ode15s solver.
Dependencies
To enable this parameter:
Set the solver Type to
Variable-step.Set the Solver parameter to
ode15s (stiff/NDF).
Settings
5 (default) | 4 | 3 | 2 | 1The number you select specifies the order of the NDFs used by the ode15s solver. For example, when you select 3, the ode15s solver uses third order NDFs.
Using higher order NDFs produces a more accurate result, but the solver is less stable.
For stiff systems that require more stability, reduce the maximum order to 2, which is the highest order for which the NDFs are A-stable. Alternatively, try the ode23s solver, which is a lower order and A-stable solver.
Programmatic Use
Parameter: MaxOrder |
| Type: scalar |
Value:
1 | 2 | 3 |
4 | 5 |
Default: 5 |
Version History
Introduced before R2006a