question

Kuilin S avatar image
0 Likes"
Kuilin S asked Kuilin S commented

How to make the model automatically restart when it finishes running?

Hello everyone,

Now I want my simulation restart as soon as the "stop()" is triggered. Also, I set the "stop times" for the model. I want to restart it when it stops. It means that when my model stops, I want it to reset and then run automatically. Is there any functions or methods to accomplish this command? Please help me.stop.pngstop-times.png

FlexSim 22.0.4
loopresetrestart
stop.png (4.5 KiB)
stop-times.png (13.9 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jason Lightfoot commented

Doing multiple model runs automatically would generally be done by using the experimenter. Apart from setting a fixed stop time for the replications you can also use the command 'endreplication()' to stop a run by some other condition.

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.