ode23: Non-stiff (and stiff) ODE solvers

View source: R/ode23.R

ode23R Documentation

Non-stiff (and stiff) ODE solvers

Description

Runge-Kutta (2, 3)-method with variable step size, resp

Usage

ode23(f, a, b, y0, n, Pars, rtol = 0.001, atol = 1e-06)

Arguments

f

function in the differential equation y' = f(x, y); defined as a function R \times R^m \rightarrow R^m, where m is the number of equations.

a

starting time for the interval to integrate

b

ending time for the interval to integrate.

y0

starting values at time a

n

Not used

Pars

named list of parameters passed to f

rtol

relative tolerance.

atol

absolute tolerance.

Details

Copied from pracma under GPL-3, with small modifications to work with RTMB. This can be used to simulate dynamics, but not during estimation

Value

List with components t for time points between a and b and y an n-by-m matrix with solutions for variables in columns, i.e. each row contains one time stamp.


ecostate documentation built on April 3, 2025, 5:25 p.m.