Help with Gillespie algorithm

Hello,

I am doing a project which will use a Gillespie algorithm. I am new to coding in general but can do simple things. I have been trying to find examples of Gillespie code and have been unable to do so. Does anyone happen to have a simple example of code for this algorithm? I have found plenty of explanations regarding what it is and what it does. But I am struggling to actually write a code that works properly. Thank you for any help!



This looks like you can port this into C++
http://lennarthilbert.com/2013/11/16/simple-example-of-gillespie-algorithm-in-matlab/

You might need GMP bignum if your numbers are big.
https://gmplib.org/

Edit found this..
http://thejohnreed.com/code/cpp/
Last edited on
Topic archived. No new replies allowed.