An exact Gillespie algorithm for one particle is:
  • Set the current well and time .
  • If is absorbing, stop.
  • Set and draw .
  • Move to if , and otherwise to .
  • Set and repeat, stopping if the jump crosses an absorbing end.
For , simulate particle identities independently and maintain a priority queue of their next event times. For , store occupation numbers and use aggregate event rates and for each well; one population-level Gillespie event then decrements one and increments its neighbor. This replaces work proportional to particle number by work proportional to the number of occupied wells.

Articles by others on the same topic (0)

There are currently no matching articles.