You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-simpy
Hi,
I am a research student using SimPy for multicore resource management simulations. Have been using SimPy 3.0.5 for a while now.
Does SimPy have capability to pause/restart simulations ? restart - meaning if a simulation crashes for some reason, to restart from the crash point ?
Many thanks Rosh
Stefan Scherfke
unread,
Dec 22, 2015, 1:24:30 PM12/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Hashan Mendis, python-simpy
Hi Rosh,
unfortunately, this is not possible. SimPy relies heavily on Python
generators and you can not (re)store a certain state for generators (you
cannot even pickle them).
Maybe you can find a workaround by storing the state state of your processes
(e.g. from instance attributes) and manually restoring it.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-simpy
Why are you trying to restart? Or rather, what is the cause of the crash?
You can use a random seed to make your code deterministic and repeatable, so if you have a failure of some kind you can redo all the exact same steps. That would only work if you don't have external data sources or interfaces that are beyond your control (can't be seeded).
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python-simpy
Hi, I am also interested in restart simulation. I want to pause the simulation and change its schedule path and restart it again, like rerouting in computer network. Have you found any available solution for this? Thanks!