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

View source: R/custom-tol.R

use_custom_tolR Documentation

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)

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

Value

An updated model object.

See Also

custom_tol(), reset_tol(), get_tol()

Examples

mod <- house()

mod <- use_custom_tol(mod)
mod

mod <- use_scalar_tol(mod)
mod


mrgsolve documentation built on Aug. 22, 2025, 9:12 a.m.