Select the order of the numerical differentiation formulas (NDFs) used in
the ode15s
solver.
Category: Solver
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.
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.
This parameter is enabled only if Solver is set to
ode15s
.
Parameter:
MaxOrder |
Type: integer |
Value: 1 |
2 | 3 |
4 | 5
|
Default:
5 |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | No impact |