R6 wrapper for ODE solver control settings
Methods
OdeControl$set_controls()
Set all solver control settings at once.
OdeControl$set_controller()
Set the step-size rule, `"gsl"` or `"hairer"`.
Arguments
controllerWhich rule turns the error estimate into the next step: `"hairer"` (the default; the error in the RMS norm over components, accept at 1 and rescale after every step, as Hairer's codes and `deSolve` do, damped by the previous step's error as `dopri5.f` is and `deSolve`'s `rk` is not; see `set_stabilisation()`) or `"gsl"` (the worst component's error, accept below 1.1, grow only below 0.5, otherwise keep the step). `"gsl"` rejects many more attempts; `"hairer"`'s RMS norm bounds each component more loosely when the state is large and the error sits in a few components.
OdeControl$set_stabilisation()
Set the `"hairer"` rule's stabilisation, `beta` in `dopri5.f`: 0.04 (the default) damps step growth while the error is rising, which keeps an explicit stepper off its stability limit; 0 is the classical rule, which takes fewer steps on smooth problems.
OdeControl$set_max_steps()
Set the most steps an interval may take, or `Inf`.
Arguments
max_stepsThe most accepted steps one interval of an adaptive advance may take (an interval between two requested times, or one event search), or `Inf`, the default, for no limit. A step the tolerance would shrink below `step_size_min` is taken at the floor and accepted, so a problem too stiff for an explicit stepper crawls rather than failing; this bounds its cost, and the error names the count and where the solve had reached.
OdeControl$set_jacobian_max_age()
Set the most steps one Jacobian may serve under `"ros34pw2"`, or `Inf`.
Arguments
jacobian_max_ageThe most steps one Jacobian may serve under the Rosenbrock-W stepper (`method = "ros34pw2"`), or `Inf` for no limit; the default is 20. That stepper forms a new Jacobian sooner where a step from a later point than the one it was formed at is rejected, and 1 forms one at every step. RODAS forms one at every step whatever this says.
OdeControl$get_jacobian_max_age()
The most steps one Jacobian may serve under `"ros34pw2"`; `Inf` for no limit.