194
BEYOND THE GILLESPIE ALGORITHM
2. Calculate the hazards for the fast reactions.
3. Numerically integrate the CLE for the fast reactions from
t to t + t::.t to obtain a
"sample path" for the continuous variables over the interval
(t,
t +
~t].§
4. Using the time-dependent hazards for the slow reactions, decide whether or not a
slow reaction has happened in
(t,
t +
~t].
5.
If
no slow reaction has occurred, set t : = t +
~t
and update the continuous
variables to their proposed values at this time.
6.
If
one slow reaction has occurred, identify the time, t
1
and type, set t : =
h,
and
update the system to
t
1
(using the type
of
the discrete reaction and the appropriate
continuous state).
7.
If
more than one slow reaction has occurred, reduce
l::.t
and return to step
3.
8.
If
t <
Trnax•
return to step 2.
Here, steps 6 and 7 could (in principle) be replaced with 6 and
7.
Identify the time
and type
of
the first reaction and 'update accordingly.
The reason the algorithm is presented this way is that it is slow and difficult to
identify the times
of
slow reactions using numerical integration and solution meth-
ods, because the reaction hazards correspond to sample paths
of
unknown stochastic
processes. For this reason, Salis
& Kaznessis (2005a) use approximate numerical
techniques to estimate the reaction times that are more accurate
if
the time is first
narrowed down to a small interval where it is known that only this one reaction
occurs. Salis & Kaznessis (2005a) also present another algorithm (the ANRH algo-
rithm), which is faster but less accurate than the NRH, as it allows multiple slow
reactions to fire without affecting the fast reactions; again, see the paper for further
details.
The NRH and related algorithms that couple a Markov jump process with a Lange-
vin approximation are (in principle) very attractive
as
they are more accurate than the
ODE hybrid algorithms and are likely to scale-up to very large models much better
than the maximal timestep algorithm.
8.4.4 Discussion
There is a clear and pressing need for accurate stochastic simulation algorithms that
are much faster than the exact algorithms. Although the
"pure" approximate algo-
rithms are elegant and appealing, they fail to adequately cope with the common
problem
of
multiple reactions happening on differing time scales. This then moti-
vates the development
of
hybrid algorithms that can address exactly
fuis
issue using
a combination
of
exact and approximate techniques. Unfortunately, all three
of
the
hybrid algorithms presented (and there are other, related algorithms that have not
been explicitly covered here) are somewhat "crude" in terms
of
fueir statistical so-
phistication. The
ODE model is unsatisfactory
as
the jump in scale from discrete
§
Of
course the true sample path is a diffusion process, which cannot be obtained in its entirity, and this
is the main complication for algorithms
of
this type; see the text immediately following the algorithm
for further details.