TUDelft-CITG / OpenCLSim

Rule driven scheduling of cyclic activities for in-depth comparison of alternative operating strategies.
https://openclsim.readthedocs.io
MIT License
14 stars 17 forks source link

Bug/infinite loop #48

Closed AnneHommelberg closed 5 years ago

AnneHommelberg commented 5 years ago

By setting the conditions in Simulation activities of type "conditional" to the wrong values, it was possible to create a simulation which would run indefinitely. To avoid this, check after each conditional run, whether there actually was some amount of material moved. If there is not material moved for more than 10 times, abort the simulation.

uijl commented 5 years ago

Fine by me!