stochastic solvers -凯发k8网页登录

main content

stochastic solvers

when to use stochastic solvers

the stochastic simulation algorithms provide a practical method for simulating reactions that are stochastic in nature. models with a small number of molecules can realistically be simulated stochastically, that is, allowing the results to contain an element of probability, unlike a deterministic solution.

model prerequisites for simulating with a stochastic solver

model prerequisites include:

  • all reactions in the model must have their property set to massaction.

  • if your model contains events, you can simulate using the stochastic ssa solver. other stochastic solvers do not support events.

  • your model must not contain doses. no stochastic solvers support doses.

additionally, if you perform an individual or population fitting on a model whose specifies a stochastic solver and options, be aware that during the fitting simbiology® temporarily changes:

  • solvertype property to the default solver of ode15s

  • solveroptions property to the options last configured for a deterministic solver

what happens during a stochastic simulation?

during a stochastic simulation of a model, the software ignores any rate, assignment, or algebraic rules if present in the model. depending on the model, stochastic simulations can require more computation time than deterministic simulations.

tip

when simulating a model using a stochastic solver, you can increase the property of the configset object to record fewer data points and decrease run time.

stochastic simulation algorithm (ssa)

the chemical master equation (cme) describes the dynamics of a chemical system in terms of the time evolution of probability distributions. directly solving for this distribution is impractical for most realistic problems. the stochastic simulation algorithm (ssa) instead efficiently generates individual simulations that are consistent with the cme, by simulating each reaction using its propensity function. thus, analyzing multiple stochastic simulations to determine the probability distribution is more efficient than directly solving the cme.

advantage

  • this algorithm is exact.

disadvantages

  • because this algorithm evaluates one reaction at a time, it might be too slow for models with a large number of reactions.

  • if the number of molecules of any reactants is huge, it might take a long time to complete the simulation.

explicit tau-leaping algorithm

because the stochastic simulation algorithm might be too slow for many practical problems, this algorithm was designed to speed up the simulation at the cost of some accuracy. the algorithm treats each reaction as being independent of the others. it automatically chooses a time interval such that the relative change in the propensity function for each reaction is less than your error tolerance. after selecting the time interval, the algorithm computes the number of times each reaction occurs during the time interval and makes the appropriate changes to the concentration of various chemical species involved.

advantages

  • this algorithm can be orders of magnitude faster than the ssa.

  • you can use this algorithm for large problems (if the problem is not numerically stiff).

disadvantages

  • this algorithm sacrifices some accuracy for speed.

  • this algorithm is not good for stiff models.

  • you need to specify the error tolerance so that the resulting time steps are of the order of the fastest time scale.

implicit tau-leaping algorithm

like the explicit tau-leaping algorithm, the implicit tau-leaping algorithm is also an approximate method of simulation designed to speed up the simulation at the cost of some accuracy. it can handle numerically stiff problems better than the explicit tau-leaping algorithm. for deterministic systems, a problem is said to be numerically stiff if there are “fast” and “slow” time scales present in the system. for such problems, the explicit tau-leaping method performs well only if it continues to take small time steps that are of the order of the fastest time scale. the implicit tau-leaping method can potentially take much larger steps and still be stable. the algorithm treats each reaction as being independent of others. it automatically selects a time interval such that the relative change in the propensity function for each reaction is less than the user-specified error tolerance. after selecting a time interval, the algorithm computes the number of times each reaction occurs during the time interval and makes the appropriate changes to the concentration of various chemical species involved.

advantages

  • this algorithm can be much faster than the ssa. it is also usually faster than the explicit tau-leaping algorithm.

  • you can use this algorithm for large problems and also for numerically stiff problems.

  • the total number of steps taken is usually less than the explicit-tau-leaping algorithm.

disadvantages

  • this algorithm sacrifices some accuracy for speed.

  • there is a higher computational burden for each step as compared to the explicit tau-leaping algorithm. this leads to a larger cpu time per step.

  • this method often dampens perturbations of the slow manifold leading to a reduced state variance about the mean.

references

[1] gibson m.a., bruck j. (2000), “exact stochastic simulation of chemical systems with many species and many channels,” journal of physical chemistry, 105:1876–1899.

[2] gillespie d. (1977), “exact stochastic simulation of coupled chemical reactions,” the journal of physical chemistry, 81(25): 2340–2361.

[3] gillespie d. (2000), “the chemical langevin equation,” journal of chemical physics, 113(1): 297–306.

[4] gillespie d. (2001), “approximate accelerated stochastic simulation of chemically reacting systems,” journal of chemical physics,115(4):1716–1733.

[5] gillespie d., petzold l. (2004), “improved leap-size selection for accelerated stochastic simulation,” journal of chemical physics, 119:8229–8234

[6] rathinam m., petzold l., cao y., gillespie d. (2003), “stiffness in stochastic chemically reacting systems: the implicit tau-leaping method,” journal of chemical physics, 119(24):12784–12794.

[7] moler, c. (2003), “stiff differential equations stiffness is a subtle, difficult, and important concept in the numerical solution of ordinary differential equations,” matlab news & notes.

related examples

    more about

    网站地图