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, ...)

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

## S4 method for signature 'AlgaeWeber'
solver(scenario, method = "lsoda", hmax = 0.1, ...)

## S4 method for signature 'AlgaeTKTD'
solver(scenario, method = "lsoda", hmax = 0.1, ...)

## S4 method for signature 'AlgaeSimple'
solver(scenario, method = "lsoda", hmax = 0.1, ...)

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

## S4 method for signature 'DebTox'
solver(scenario, method = "ode45", ...)

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

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

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

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

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

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

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

Arguments

scenario

scenario object

...

additional parameters passed on to deSolve::ode()

method

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

hmax

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

Details

Some solvers may set reasonable default values for e.g. maximum step length in time (hmax), but not all do. Please check the model documentation for details.

Value

data.frame with simulation results

Methods (by class)


[Package cvasi version 1.4.0 Index]