Skip to contents

Algorithms for solve() on ODE problems, named as in OrdinaryDiffEq.jl. Tsit5() is the Tsitouras 5(4) Runge-Kutta method with its free 4th order interpolant, the default for nonstiff problems. Euler() is a fixed step method (pass dt); RK4() is the classical fourth order method, adaptive with Shampine's residual control error estimate (with adaptive = FALSE and dt it takes fixed steps). BS3() is the Bogacki-Shampine 3(2) method, DP5() the Dormand-Prince 5(4) method with its free dense output, and Vern7() and Vern9() are Verner's efficient 7(6) and 9(8) methods with their high order interpolants (whose extra stages are computed when the solution is first interpolated inside a step).

Usage

BS3()

DP5()

Vern7()

Vern6()

Vern8()

Vern9()

Tsit5()

Euler()

RK4()

Value

An algorithm object.

Examples

prob <- ODEProblem(function(u, p, t) -u, 1, c(0, 1))
sol <- solve(prob, Vern7(), reltol = 1e-10, abstol = 1e-12)
sol(0.5) - exp(-0.5)
#> [1] 2.775558e-15
solve(prob, RK4(), dt = 0.1)$retcode
#> [1] "Success"