Skip to contents

Explicit linear multistep methods of OrdinaryDiffEq.jl (OrdinaryDiffEqAdamsBashforthMoulton), for nonstiff problems whose right hand side is expensive: after a few starting steps each step costs one or two evaluations of f.

Usage

AB3(thread = NULL)

AB4(thread = NULL)

AB5(thread = NULL)

ABM32(thread = NULL)

ABM43(thread = NULL)

ABM54(thread = NULL)

VCAB3(thread = NULL)

VCAB4(thread = NULL)

VCAB5(thread = NULL)

VCABM3(thread = NULL)

VCABM4(thread = NULL)

VCABM5(thread = NULL)

VCABM(thread = NULL)

Arguments

thread

Threading option of the Julia methods (ignored).

Value

An ODE algorithm.

Details

  • AB3(), AB4(), AB5(): the fixed step Adams-Bashforth methods of orders 3, 4 and 5 (pass dt). AB3 starts with Ralston's second order method, AB4 and AB5 with the classical Runge-Kutta method.

  • ABM32(), ABM43(), ABM54(): fixed step predictor-corrector pairs (Adams-Bashforth predictor, Adams-Moulton corrector) of orders 3, 4 and 5. As in the Julia version the predictor is the starting method (Ralston's method for ABM32, the classical Runge-Kutta method for the others) on every step.

  • VCAB3(), VCAB4(), VCAB5(): adaptive variable step Adams-Bashforth methods of orders 3, 4 and 5 in divided difference form, started with the Bogacki-Shampine method (VCAB3) or the classical Runge-Kutta method with Shampine's residual error estimate.

  • VCABM3(), VCABM4(), VCABM5(): adaptive variable step Adams-Bashforth-Moulton predictor-corrector methods of orders 3, 4 and 5.

  • VCABM(): the adaptive variable step, variable order (1 to 12) Adams-Bashforth-Moulton method, with the I step size controller.

A callback that changes the state restarts the methods (the variable order method at order 1). The dense output is the cubic Hermite interpolant of each step.

Examples

prob <- ODEProblem(function(u, p, t) c(u[2], -u[1]), c(0, 1), c(0, 1))
solve(prob, AB4(), dt = 0.01)$u[[101]]
#> [1] 0.8414710 0.5403023
sol <- solve(prob, VCABM(), reltol = 1e-8, abstol = 1e-8)
sol(1)
#> [1] 0.8414711 0.5403028