Maximum order

Description

Select the order of the numerical differentiation formulas (NDFs) used in the ode15s solver.

Category: Solver

Settings

Default: 5

5

Specifies that the solver uses fifth order NDFs.

1

Specifies that the solver uses first order NDFs.

2

Specifies that the solver uses second order NDFs.

3

Specifies that the solver uses third order NDFs.

4

Specifies that the solver uses fourth order NDFs.

Tips

  • Although the higher order formulas are more accurate, they are less stable.

  • If your model is stiff and requires more stability, reduce the maximum order to 2 (the highest order for which the NDF formula is A-stable).

  • As an alternative, you can try using the ode23s solver, which is a lower order (and A-stable) solver.

Dependencies

This parameter is enabled only if Solver is set to ode15s.

Command-Line Information

Parameter: MaxOrder
Type: integer
Value: 1 | 2 | 3 | 4 | 5
Default: 5

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics