In Simbiology, is it possible to run stochastic simulations with Gillespie’s algorithm?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hassan Hijazi
am 2 Jun. 2020
Bearbeitet: Sietse Braakman
am 2 Jun. 2020
I haven't found an option for stochastic simulation in the simulation tab? What are other options to run such kind of simulation without using the line command?
0 Kommentare
Akzeptierte Antwort
Sietse Braakman
am 2 Jun. 2020
Bearbeitet: Sietse Braakman
am 2 Jun. 2020
Hi Hassan,
You can do this by choosing a stochastic solver. In the user interface, this can be done by going to the 'Simulation settings' and under 'Solvertype' selecting 'stochastic', 'implicit tau', or 'explicit tau' instead of e.g. ode15s or sundials. See the screenshots below. More on the difference between stochastic/implicit tau/explicit tau solvers can be found here: https://www.mathworks.com/help/simbio/ug/stochastic-solvers.html
If you want to do this programmatically, you can use getconfigset to change the solver. E.g. if your model is called m1:
cs = getconfigset(m1);
cs.SolverType = 'ssa'; % use 'ssa' for stochastic, 'expltau' for explicit or 'impltau' for implicit tau
Let me know if that answers your question.
0 Kommentare
Weitere Antworten (0)
Communitys
Weitere Antworten in SimBiology Community
Siehe auch
Kategorien
Mehr zu Scan Parameter Ranges finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!