Create a mode control object for controlling the adaptive stepper. The returned object can be passed into a mode model on initialisation.
mode_control(
max_steps = NULL,
atol = NULL,
rtol = NULL,
step_size_min = NULL,
step_size_max = NULL,
debug_record_step_times = NULL
)
Maxmimum number of steps to take. If the integration attempts to take more steps that this, it will throw an error, stopping the integration.
The per-step absolute tolerance.
The per-step relative tolerance. The total accuracy will be less than this.
The minimum step size. The actual minimum
used will be the largest of the absolute value of this
step_size_min
or .Machine$double.eps
. If the
integration attempts to make a step smaller than this, it will
throw an error, stopping the integration.
The largest step size. By default there is no maximum step size (Inf) so the solver can take as large a step as it wants to. If you have short-lived fluctuations in your rhs that the solver may skip over by accident, then specify a smaller maximum step size here.
Logical, indicating if we should record
the steps taken. This information will be available as part of
the statistics()
output
A named list of class "mode_control"