Learn R Programming

dMod (version 0.1)

Xf: Model evaluation without sensitivities.

Description

Interface to get an ODE into a model function x(times, pars, forcings, events) returning ODE output. It is a reduced version of Xs, missing the sensitivities.

Usage

Xf(func, forcings = NULL, events = NULL, optionsOde = list(method =
  "lsoda"))

Arguments

func
return value from funC(f) where f defines the ODE.
forcings
data.frame with columns name (factor), time (numeric) and value (numeric). The ODE forcings.
events
data.frame of events with columns "var" (character, the name of the state to be affected), "time" (numeric, time point), "value" (numeric, value), "method" (character, either "replace", "add" or "multiply"). See event
optionsOde
list with arguments to be passed to odeC() for the ODE integration.

Details

Can be used to integrate additional quantities, e.g. fluxes, by adding them to f. All quantities that are not initialised by pars in x(times, pars, forcings, events) are initialized at 0.