Skip to Main Content Skip to Search
Product Documentation

ErrorTolerance - Specify explicit or implicit tau error tolerance

Description

The ErrorTolerance property specifies the error tolerance for the explicit tau and implicit tau stochastic solvers. It is a property of the SolverOptions object. SolverOptions is a property of the configset object. The explicit and implicit tau solvers automatically chooses a time interval (tau) such that the relative change in the propensity function for each reaction is less than the user-specified error tolerance.

A propensity function describes the probability that the reaction will occur in the next smallest time interval, given the conditions and constraints.

If the error tolerance is too large, there may not be a solution to the problem and that could lead to an error. If the error tolerance is small, the solver will take more steps than when the error tolerance is large leading to longer simulation times. The error tolerance should be adjusted depending upon the problem, but a good value for the error tolerance is between 1 % to 5 %.

Characteristics

Applies toObject: SolverOptions
Data typedouble
Data values>0, <1. The default is 3e-2.
AccessRead/write

Examples

This example shows how to change ErrorTolerance settings.

  1. Retrieve the configset object from the modelObj and change the SolverType to expltau.

    modelObj  = sbiomodel('cell');
    configsetObj = getconfigset(modelObj);
    set(configsetObj, 'SolverType', 'expltau')
  2. Change the ErrorTolerance to 1e-8.

    set(configsetObj.SolverOptions, 'ErrorTolerance', 5.0e-2);
    get(configsetObj.SolverOptions, 'ErrorTolerance')
    
    
    ans =
    
      5.000000e-002

See Also

LogDecimation, RandomState

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS