public abstract class AbstractBaseTauLeaping extends GillespieEnhanced
GillespieEnhanced
because it uses the SSP algorithm, when the timestep candidate is
to small.
Each tau leaping algorithm only works with an AbstractKineticConstantPropensityCalculator
and only if the highest order of a reaction is maximal 3.
For references see Daniel T. Gillespie, Approximate accelerated stochastic simulation of chemically reacting systems, Journal of chemical physics vol 115, nr 4 (2001); Cao et al., Efficient step size selection for the tau-leaping simulation method, Journal of chemical physics 124, 044109 (2006)
GillespieEnhanced
Simulator.FireType
Constructor and Description |
---|
AbstractBaseTauLeaping(Network net)
Create the simulator for a given network.
|
Modifier and Type | Method and Description |
---|---|
double |
getEpsilon()
The epsilon is an error control parameter and bounds the expected change of the propensity
functions by epsilon * a_sum.
|
double |
getLangevinThreshold()
The Langevin threshold determines, when the normal distribution is used as an approximation for
the poisson distribution.
|
String |
getName()
Returns the name of this simulator
|
int |
getNCritical()
The nCritical determines, when a reaction is called critical.
|
int |
getNumSimpleCalls()
The numSimpleCalls determines, how often the SSA is called, when tau leaping is abandoned.
|
double |
getUseSimpleFactor()
The useSimpleFactor determines, when the tau leaping is abandoned and the SSA method is used
(if tau < useSimpleFactor / a_0).
|
boolean |
isVerbose()
Gets if each step is to print to stdout.
|
void |
performStep(SimulationController control)
Performs a tau leaping step.
|
void |
setEpsilon(double epsilon)
The epsilon is an error control parameter and bounds the expected change of the propensity
functions by epsilon * a_sum.
|
void |
setLangevinThreshold(double langevinThreshold)
The Langevin threshold determines, when the normal distribution is used as an approximation for
the poisson distribution.
|
void |
setNCritical(int critical)
The nCritical determines, when a reaction is called critical.
|
void |
setNumSimpleCalls(int numSimpleCalls)
The numSimpleCalls determines, how often the SSA is called, when tau leaping is abandoned.
|
void |
setUseSimpleFactor(double useSimpleFactor)
The useSimpleFactor determines, when the tau leaping is abandoned and the SSA method is used
(if tau < useSimpleFactor / a_0).The default value is 10.
|
void |
setVerbose(boolean verbose)
Sets if each step is to print to stdout.
|
initialize, isEfficientlyAdaptSum, reinitialize, setAmount, setEfficientlyAdaptSum, setVolume
addObserver, getAmount, getNet, getNextThetaEvent, getPropensity, getPropensityCalculator, getTime, getVolume, initializePropensities, isInterpolateTheta, postRun, preRun, registerNewTheta, run, setInterpolateTheta, setStochasticSeed, start, start
public AbstractBaseTauLeaping(Network net)
net
- the simulation networkpublic void performStep(SimulationController control)
numSimpleCalls
steps from the SSP-Algorithm
GillespieEnhanced are perform. Otherwise a second timestep candidate is drawn for the criticals
(such that only one critical reaction is firing and only once in this leap). The smaller
candidate is then used as tau.performStep
in class GillespieEnhanced
control
- the simulators controllerpublic double getLangevinThreshold()
public void setLangevinThreshold(double langevinThreshold)
langevinThreshold
- the langevinThreshold to setpublic double getUseSimpleFactor()
public void setUseSimpleFactor(double useSimpleFactor)
useSimpleFactor
- the useSimpleFactor to setpublic int getNumSimpleCalls()
public void setNumSimpleCalls(int numSimpleCalls)
numSimpleCalls
- the numSimpleCalls to setpublic int getNCritical()
public void setNCritical(int critical)
critical
- the nCritical to setpublic double getEpsilon()
public void setEpsilon(double epsilon)
epsilon
- the epsilon to setpublic boolean isVerbose()
public void setVerbose(boolean verbose)
verbose
- verbosepublic String getName()
getName
in class GillespieEnhanced
Copyright © 2007–2021. All rights reserved.