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.
reset_tol(x, rtol = NULL, atol = NULL)
reset_rtol(x, rtol = NULL)
reset_atol(x, atol = NULL)a model object.
global relative tolerance for both scalar and customized
configurations; if not supplied, the current model's scalar rtol value is
used.
global absolute tolerance for both scalar and customized
configurations; if not supplied, the current model's scalar atol value is
used.
An updated model object.
mod <- house()
mod <- reset_tol(mod, rtol = 1e-6, atol = 1e-10)
mod
#>
#>
#> -------------- source: housemodel.cpp --------------
#>
#> project: /tmp/Rtmp8QAYrr/...solve/project
#> shared object: mrgsolve
#>
#> time: start: 0 end: 120 delta: 0.25
#> add: <none>
#> compartments: GUT CENT RESP [3]
#> parameters: CL VC KA F1 D1 WTCL WTVC SEXCL SEXVC
#> KIN KOUT IC50 WT SEX [14]
#> captures: DV CP [2]
#> omega: 4x4
#> sigma: 1x1
#>
#> solver: rtol: 1e-06 atol: 1e-10 itol: 1 (scalar)
#> ------------------------------------------------------