StepRule

class probnum.diffeq.StepRule

Bases: abc.ABC

(Adaptive) step size rules for ODE solvers.

Methods Summary

is_accepted(proposedstep, errorest, **kwargs)

Check if the proposed step should be accepted or not.

suggest(laststep, errorest, **kwargs)

Suggest a new step h_{n+1} given error estimate e_n at step h_n.

Methods Documentation

abstract is_accepted(proposedstep, errorest, **kwargs)[source]

Check if the proposed step should be accepted or not.

Variable “proposedstep” not used yet, but may be important in the future, e.g. if we decide that instead of tol_per_step (see AdaptiveSteps) we want to be able to control tol_per_unitstep.

abstract suggest(laststep, errorest, **kwargs)[source]

Suggest a new step h_{n+1} given error estimate e_n at step h_n.