MethodOfSteps(alg) turns an ODE algorithm (or EM() for stochastic
delay equations) into a delay equation solver, as in DelayDiffEq.jl.
Delayed values come from the interpolant of earlier steps; when a lag is
shorter than the step, the step is repeated with its own interpolant until
the fixed point iteration converges. constrained = TRUE instead limits
the step to the smallest constant lag.
Arguments
- alg
An ODE algorithm such as
Tsit5(), or an SDE algorithm.- constrained
Limit steps to the smallest constant lag.
- max_fixedpoint_iters
Iterations of the fixed point iteration.
- a
A
DDEProblem.- b
MethodOfSteps(alg), or an ODE algorithm (wrapped automatically). Defaults toMethodOfSteps(Tsit5()).- ...
Solver options, as for ODE problems.
Details
Discontinuities are tracked with their order as in DelayDiffEq: the one
at the initial time has order order_discontinuity_t0 of the problem;
when the integrator reaches a discontinuity of order k (the lowest
order among those within rounding of that time), the constant lags
propagate it with order k + 1 (k for neutral problems) as long as
that is at most the order of the method plus one, and every such time is
a stopping time. After each rejected step the dependent lags are checked
at discontinuity_interp_points points of the attempted step for times
s with s - lag(u(s), p, s) equal to an earlier discontinuity; a root
becomes a new discontinuity and stopping time. The options
discontinuity_interp_points (10), discontinuity_abstol (1e-12) and
d_discontinuities (extra discontinuity times of order 0) are passed to
solve().
Examples
MethodOfSteps(Tsit5())
#> MethodOfSteps(Tsit5)