AbsoluteTolerance
Absolute error tolerance applied to state value during simulation
Description
AbsoluteTolerance
is a property of a SolverOptions
object,
which is a property of a Configset
object. It is
available for the ode solvers (ode15s
, ode23t
, ode45
,
and sundials
).
SimBiology uses AbsoluteTolerance
to determine
the largest allowable absolute error at any step in a simulation.
How the software uses AbsoluteTolerance
to determine
this error depends on whether the AbsoluteToleranceScaling
property
is enabled.
For details, see Selecting Absolute Tolerance and Relative Tolerance for Simulation.
Characteristics
Applies to | Object: SolverOptions |
Data type | double |
Data values | Positive scalar. Default is 1e-6 . |
Access | Read/write |
Examples
This example shows how to change AbsoluteTolerance
.
Retrieve the
configset
object from themodelObj
.modelObj = sbiomodel('cell'); configsetObj = getconfigset(modelObj)
Change the
AbsoluteTolerance
to1e-8
.set(configsetObj.SolverOptions, 'AbsoluteTolerance', 1.0e-8); get(configsetObj.SolverOptions, 'AbsoluteTolerance') ans = 1.0000e-008