Learn R Programming

sdbuildR (version 2.0.0)

sim_methods: Translate between deSolve and DifferentialEquations.jl solver names

Description

Translate between deSolve and DifferentialEquations.jl solver names, or validate that a given solver name is recognized in either language. This is used internally to allow users to specify familiar R solvers when using Julia for simulation, and to provide warnings when an exact equivalent is not available.

Usage

sim_methods(method, from = NULL, to = NULL)

Value

A character scalar (validated or translated solver name), a character vector of solver names when method is omitted, or a named list of solver names for both languages when called with no arguments.

Arguments

method

Solver name to validate or translate.

from

Source solver family, either "R" or "Julia".

to

Target solver family when translating, either "R" or "Julia".

Examples

Run this code
# List supported solvers
sim_methods()

# List supported R solvers
sim_methods(from = "R")

# List supported Julia solvers
sim_methods(from = "Julia")

# Validate or translate specific solvers
sim_methods("rk4", from = "R", to = "Julia")

Run the code above in your browser using DataLab