Skip to Main Content Skip to Search
Product Documentation

SolverOptions - Specify model solver options

Description

The SolverOptions property is an object that holds the model solver options in the configset object. Changing the property SolverType changes the options specified in the SolverOptions object.

Properties of SolverOptions are summarized in Property Summary.

Property Summary

AbsoluteToleranceSpecify largest allowable absolute error
ErrorToleranceSpecify explicit or implicit tau error tolerance
LogDecimationSpecify frequency to log stochastic simulation output
MaxIterationsSpecify nonlinear solver maximum iterations in implicit tau
MaxStepSpecify upper bound on ODE solver step size
OutputTimesSpecify times to log deterministic simulation output
RandomStateSet random number generator
RelativeToleranceSpecify allowable error relative to component
SensitivityAnalysisEnable or disable sensitivity analysis
TypeDisplay SimBiology object type

Characteristics

Applies toObject: configset
Data typeObject
Data valuesSolver options depending on SolverType. Default is SolverOptions for default SolverType (ode15s).
AccessRead-only

Examples

This example shows the changes in SolverOptions for various SolverType settings.

  1. Retrieve the configset object from the modelObj.

    modelObj  = sbiomodel('cell');
    configsetObj = getconfigset(modelObj);
  2. Configure the SolverType to ode45.

    set(configsetObj, 'SolverType', 'ode45');
    get(configsetObj, 'SolverOptions')
    
    
    Solver Settings: (ode)
    
         AbsoluteTolerance:    1.000000e-006
         RelativeTolerance:    1.000000e-003
  3. Configure the SolverType to ssa.

    set(configsetObj, 'SolverType', 'ssa');
    get(configsetObj, 'SolverOptions')
    
    
    Solver Settings: (ssa)
    
         LogDecimation:        1
         RandomState:          []
    
  4. Configure the SolverType to impltau.

    set(configsetObj, 'SolverType', 'impltau');
    get(configsetObj, 'SolverOptions')
    
    
    Solver Settings: (impltau)
    
         ErrorTolerance:       3.000000e-002
         LogDecimation:        1
         AbsoluteTolerance:    1.000000e-002
         RelativeTolerance:    1.000000e-002
         MaxIterations:        15
         RandomState:          []
  5. Configure the SolverType to expltau.

    set(configsetObj, 'SolverType', 'expltau');
    get(configsetObj, 'SolverOptions')
    
    
    Solver Settings: (expltau)
    
         ErrorTolerance:       3.000000e-002
         LogDecimation:        1
         RandomState:          []

See Also

addconfigset, getconfigset

  


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