options = nelson.ode.options.CVODESStiff()
options = nelson.ode.options.CVODESStiff(name, value)
nelson.ode.options.CVODESStiff creates an options object for the 'cvodesstiff' solver value used by the ode object workflow.
| Option group | Names | Purpose |
|---|---|---|
| Steps and tolerances | InitialStep, MaxStep, MinStep, RelTol, AbsTol, MaxOrder | Control adaptive BDF integration. |
| Output | Refine, OutputFcn, OutputSelection | Select returned points and optional output callbacks. |
| Linear algebra | LinearSolver, Preconditioner, Jacobian, JPattern | Supply stiff-system structure and preconditioning hints. |
| Availability | 'cvodesstiff' | Uses the optional BDF backend when it is compiled and enabled. |
This solver value is available only when Nelson is built with the optional SUNDIALS backend. It uses CVODES with the BDF method for stiff standard ODE problems and standard problems with a nonsingular mass matrix.
Supported options include InitialStep, MaxStep, MinStep, RelTol, AbsTol, Refine, NormControl, OutputFcn, OutputSelection, Vectorization, MaxOrder, LinearSolver, and Preconditioner. OutputFcn is called on the output points returned by the backend. LinearSolver accepts 'auto', 'dense', 'spgmr', 'spfgmr', 'spbcgs', 'sptfqmr', 'pcg', or 'klu' when the corresponding SUNDIALS library is available. Preconditioner accepts 'auto', 'none', 'jacobi', 'banded', or 'ilu0'. With a sparse JPattern, 'ilu0' builds a compact sparse incomplete LU preconditioner without a dense workspace.
options = nelson.ode.options.CVODESStiff('MaxOrder', 5);
problem = ode('ODEFcn', @(t,y) -20 * y, 'InitialValue', 1, ...
'SolverOptions', options);
result = solve(problem, 0, 1)
| Version | Description |
|---|---|
| 2.0.0 | initial version |