Print

Print


Hi all!

I need to solve a problem concerning stopping and restarting a simulation. My bless point is to have a function on a schedule, which in each step checks a condition for ending a given run, if false does nothing,  if true does some reporting, resets simulation parameters to some new values and restarts the simulation.

Now, the condition checking, reporting and resetting values works fine, unfortunately I'm not able to get simulation started once again after finishing the first run (I'm using the start() SimState method).  

Any guidance on having the Mason do multiple runs will be highly appreciated.

Best regards,

Maciek