Stabilized Runge-Kutta methods for stiff SDEs, named as in
StochasticDiffEqROCK. Their drift stages follow Chebyshev type
recurrences whose number grows with the spectral radius of the drift
Jacobian, estimated every step by a nonlinear power iteration (or given
by eigen_est), so stiff drifts are integrated without linear solves.
All are fixed step methods (pass dt) and accept diagonal, scalar and
general noise.
Usage
SROCK1(interpretation = c("Ito", "Stratonovich"), eigen_est = NULL)
SROCK2(eigen_est = NULL)
SROCKEM(strong_order_1 = TRUE, eigen_est = NULL)
SKSROCK(post_processing = FALSE, eigen_est = NULL)
TangXiaoSROCK2(version_num = 5, eigen_est = NULL)
KomBurSROCK2(eigen_est = NULL)
SROCKC2(eigen_est = NULL)Arguments
- interpretation
"Ito"or"Stratonovich"(SROCK1()).- eigen_est
A bound on the spectral radius of the drift Jacobian: a number, or a function
eigen_est(u, p, t)evaluated every step. By default it is estimated by power iteration.- strong_order_1
Whether
SROCKEM()adds the Milstein correction.- post_processing
Whether
SKSROCK()post processes the last step.- version_num
The version (1 to 5) of
TangXiaoSROCK2().
Details
SROCK1(): the first order S-ROCK method of Abdulle and Cirilli, Ito (strong order 1 for one dimensional, diagonal or commutative noise) or Stratonovich.SROCK2(): the weak order 2 S-ROCK2 method of Abdulle, Vilmart and Zygalakis (Ito).SROCKEM(): the ROCK stabilized Euler-Maruyama method; withstrong_order_1 = TRUEa derivative free Milstein correction is added.SKSROCK(): the second kind S-ROCK method of Abdulle, Almuslimani and Vilmart for stiff Ito problems;post_processing = TRUEapplies their post processing on the last step.TangXiaoSROCK2(): the weak order 2 methods of Tang and Xiao, in five versions (version_num) with different stability domains.KomBurSROCK2(): the weak order 2 method of Komori and Burrage for Stratonovich problems.SROCKC2(): the weak order 2 method of Komori and Burrage for Ito problems.
The methods with weak order 2 (SROCK2, TangXiaoSROCK2,
KomBurSROCK2) draw two point random variables for general noise and
TangXiaoSROCK2 draws two random signs every step, with R's random
number generator (seed it, or pass seed to solve()).
Examples
n <- 10
lap <- function(u, p, t) (c(0, u[-n]) - 2 * u + c(u[-1], 0)) * (n + 1)^2
prob <- SDEProblem(lap, function(u, p, t) 0.1 * u, rep(1, n), c(0, 0.5))
sol <- solve(prob, SROCK2(), dt = 0.05, seed = 1)
tail(sol$u, 1)
#> [[1]]
#> [1] 0.004154851 0.004438112 0.007857053 0.009832234 0.009396314 0.008711614
#> [7] 0.011443472 0.006297190 0.005837361 0.002540220
#>
sol2 <- solve(prob, SKSROCK(eigen_est = 4 * (n + 1)^2), dt = 0.05, seed = 1)