Learn R Programming

mrgsolve (version 1.7.2)

use_custom_tol: Set up a model object to use either scalar or custom tolerances

Description

Call use_custom_tol() to use custom relative and absolute tolerances in a model; call use_scalar_tol() to revert to the traditional configuration where a single rtol and atol are applied to all compartments.

Usage

use_custom_tol(x)

use_scalar_tol(x)

Value

An updated model object.

Arguments

x

a model object.

Details

If customized tolerances have not been initialized yet, they will be, assigning the current rtol or atol for every compartment. These default values can be updated using custom_rtol(), custom_atol(), or custom_tol().

See Also

custom_tol(), reset_tol(), get_tol()

Examples

Run this code
mod <- house()

mod <- use_custom_tol(mod)
mod

mod <- use_scalar_tol(mod)
mod

Run the code above in your browser using DataLab