Navigation

Operators and Keywords

Function List:

C++ API

: lsode_options ()
: val = lsode_options (opt)
: lsode_options (opt, val)

Query or set options for the function lsode.

When called with no arguments, the names of all available options and their current values are displayed.

Given one argument, return the value of the option opt.

When called with two arguments, lsode_options sets the option opt to value val.

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).

Package: octave