StepRule¶
- class probnum.diffeq.stepsize.StepRule(firststep)¶
Bases:
ABC
Step-size selection rules for ODE solvers.
Methods Summary
errorest_to_norm
(errorest, reference_state)Computes the norm of error per tolerance (usually referred to as 'E').
is_accepted
(scaled_error)Check if the proposed step should be accepted or not.
suggest
(laststep, scaled_error[, localconvrate])Suggest a new step h_{n+1} given error estimate e_n at step h_n.
Methods Documentation
- abstract errorest_to_norm(errorest, reference_state)[source]¶
Computes the norm of error per tolerance (usually referred to as ‘E’).
The norm is usually the current error estimate normalised with atol, rtol, and the magnitude of the previous states. If this is smaller than 1, the step was small enough.