solver {cvasi}R Documentation

Calls ODE solver for a particular model

Description

Please refer to the Modeling Howto vignette on how to implement custom models by overloading the solver function.

Usage

solver(scenario, times, ...)

## S4 method for signature 'ANY'
solver(scenario, times, ...)

## S4 method for signature 'GutsRedSd'
solver(scenario, times, ...)

## S4 method for signature 'GutsRedIt'
solver(scenario, times, ...)

## S4 method for signature 'LemnaSchmittScenario'
solver(scenario, times, ...)

## S4 method for signature 'LemnaSetacScenario'
solver(scenario, times, ...)

## S4 method for signature 'MyrioExpScenario'
solver(scenario, times, ...)

## S4 method for signature 'MyrioLogScenario'
solver(scenario, times, ...)

## S4 method for signature 'DebAbj'
solver(scenario, times, ...)

## S4 method for signature 'DebDaphnia'
solver(
  scenario,
  times,
  approx = c("linear", "constant"),
  f = 1,
  method = "ode45",
  ...
)

## S4 method for signature 'AlgaeWeberScenario'
solver(
  scenario,
  times,
  approx = c("linear", "constant"),
  f = 1,
  method = "lsoda",
  hmax = 0.1,
  ...
)

## S4 method for signature 'AlgaeTKTDScenario'
solver(
  scenario,
  times,
  approx = c("linear", "constant"),
  f = 1,
  method = "lsoda",
  hmax = 0.1,
  ...
)

## S4 method for signature 'AlgaeSimpleScenario'
solver(
  scenario,
  times,
  approx = c("linear", "constant"),
  f = 1,
  method = "ode45",
  hmax = 0.01,
  ...
)

Arguments

scenario

scenario object

times

numeric vector of output times, overrides any scenario setting

...

additional parameters passed on to deSolve::ode()

approx

string, interpolation method of exposure series, see stats::approxfun()

f

if approx="constant", a number between 0 and 1 inclusive, see stats::approxfun()

method

string, numerical solver used by deSolve::ode()

hmax

numeric, maximum step length in time, see deSolve::ode()

Value

data.frame with simulation results

Methods (by class)


[Package cvasi version 1.1.3 Index]