This method solves a system of equations and computes the values of
the dependent variables at times \(t=0, dt, 2dt, ... Tmax\). The function dispatches
on pars$dlay
to call:
deSolve::ode if
class(dlay) == 'ode'
deSolve::dede if
class(dlay) == 'dde'
Note that the call to xde_derivatives dispatches on pars$frame
Implements xds_solve for ordinary differential equations
Usage
# S3 method for class 'ode'
xds_solve(pars, Tmax = 365, dt = 1, times = NULL)
Arguments
- pars
a list that defines a model
- Tmax
the last time point, run from 0...Tmax
- dt
the time interval for outputs
- times
the times