Skip to content

__daspk_options__

builtin · libnexusinterp/corefcn/DASPK-opts.cc

: __daspk_options__ ()
: val = __daspk_options__ (key)
: __daspk_options__ (key, val)

Query or change the options used by the daspk solver.

With no arguments the option names and their current values are listed. With one argument the value of option key is returned, and with two the option is assigned val. Option names are not case sensitive and may be abbreviated as long as the abbreviation is unambiguous; the words of a multi-word name are abbreviated independently.

The available options are:

"absolute tolerance"
"relative tolerance"

Error tolerances, each a scalar or a vector with one entry per state.

"compute consistent initial condition"

Nonzero asks the solver to adjust the initial state so that it satisfies the equations.

"use initial condition heuristics"
"initial condition heuristics"
"print initial condition info"

Control the heuristics of the consistent-initial-condition computation and whether progress information is printed.

"exclude algebraic variables from error test"
"algebraic variables"

Nonzero excludes the variables flagged in the vector from the error test.

"enforce inequality constraints"
"inequality constraint types"

Restrict the solution to one-sided bounds as described by the type vector.

"initial step size"
"maximum order"
"maximum step size"

Step size and method order controls; a negative step size means the solver chooses.