Learn R Programming

mrgsolve (version 1.7.2)

reset_tol: 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)

Value

An updated model object.

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.

See Also

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

Examples

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

Run the code above in your browser using DataLab