When called with two arguments, this function allows you set options parameters for the function
lsode
. Given one argument,lsode_options
returns the value of the corresponding option. If no arguments are supplied, the names of all the available options and their current values are displayed.Options include
"absolute tolerance"
- Absolute tolerance. May be either vector or scalar. If a vector, it must match the dimension of the state vector.
"relative tolerance"
- Relative tolerance parameter. Unlike the absolute tolerance, this parameter may only be a scalar.
The local error test applied at each integration step is
abs (local error in x(i)) <= ... rtol * abs (y(i)) + atol(i)"integration method"
- A string specifying the method of integration to use to solve the ODE system. Valid values are
- "adams"
- "non-stiff"
- No Jacobian used (even if it is available).
- "bdf"
- "stiff"
- Use stiff backward differentiation formula (BDF) method. If a function to compute the Jacobian is not supplied,
lsode
will compute a finite difference approximation of the Jacobian matrix."initial step size"
- The step size to be attempted on the first step (default is determined automatically).
"maximum order"
- Restrict the maximum order of the solution method. If using the Adams method, this option must be between 1 and 12. Otherwise, it must be between 1 and 5, inclusive.
"maximum step size"
- Setting the maximum stepsize will avoid passing over very large regions (default is not specified).
"minimum step size"
- The minimum absolute step size allowed (default is 0).
"step limit"
- Maximum number of steps allowed (default is 100000).