Learn R Programming

insideRODE (version 2.0)

cfVODE: Solver for Ordinary Differential Equations (VODE) and compiled functions(c/fortran) to be used in NLME

Description

Generate functions for NLME Solves using a system of ordinary differential equations; a wrapper around the implemented ODE solvers,The R function vode provides an interface to the FORTRAN ODE solver of the same name, written by Peter N. Brown, Alan C. Hindmarsh and George D. Byrne.

Usage

cfVODE(model, data, LogParms = TRUE, JAC = FALSE, SEQ = FALSE,rtol = 1e-4, atol = 1e-4, tcrit = NULL, dllname = NULL, hmin = 0, hmax = Inf)

Arguments

model
either an R-function that computes the values of the derivatives in the ODE system (the model definition) at time t.The return value of model should be a list. See package "nlmeODE" for more details.
data
nlme GroupedData format.
LogParms
transform parameters into log scale
JAC
A JAC set FALSE. This time we can implement this parts.
SEQ
A SEQ set FALSE.
rtol
relative error tolerance, either a scalar or an array as long as y. See details.
atol
absolute error tolerance, either a scalar or an array as long as y. See details.
tcrit
if not NULL, then lsoda cannot integrate past tcrit. The FORTRAN routine lsoda overshoots its targets (times points in the vector times), and interpolates values for the desired time points. If there is a time beyond which integration should not proceed (perhaps because of a singularity), that should be provided in tcrit.
dllname
a string giving the name of the shared library (without extension) that contains all the compiled function or subroutine definitions refered to in func and jacfunc. See package "deSolve".
hmin
an optional minimum value of the integration stepsize. In special situations this parameter may speed up computations with the cost of precision. Don't use hmin if you don't know why!
hmax
an optional maximum value of the integration stepsize. If not specified, hmax is set to the largest difference in times, to avoid that the simulation possibly ignores short-term events. If 0, no maximal size is specified.

See Also

Examples

Run this code
#######################################################
#use c code
#see example cfLSODA
#######################################################


Run the code above in your browser using DataLab