reset_tol: Reset all model tolerances

View source: R/custom-tol.R

reset_tolR Documentation

Reset all model tolerances

Description

These functions reset both scalar and customized values for both relative and absolute tolerances. All functions reset tolerances to a single, common rtol or atol. The functions do not change which tolerance configuration is used for simulation (e.g., scalar or customized); see use_custom_tol() and use_scalar_tol() to make that change in the model object.

Usage

reset_tol(x, rtol = NULL, atol = NULL)

reset_rtol(x, rtol = NULL)

reset_atol(x, atol = NULL)

Arguments

x

a model object.

rtol

global relative tolerance for both scalar and customized configurations; if not supplied, the current model's scalar rtol value is used.

atol

global absolute tolerance for both scalar and customized configurations; if not supplied, the current model's scalar atol value is used.

Value

An updated model object.

See Also

custom_tol(), use_custom_tol(), use_scalar_tol(), get_tol()

Examples

mod <- house()
mod <- reset_tol(mod, rtol = 1e-6, atol = 1e-10)
mod


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

Related to reset_tol in mrgsolve...