question

Khalid Kayal avatar image
1 Like"
Khalid Kayal asked Khalid Kayal commented

how to add a stopping condition to an experiment?

In my main model, there is no run stopping time, therefore, the simulation run ends when there are no longer items flowing. I would like to have the same condition in the experimenter tool or Optquest. That is, I don't want the experiment run to end by time, I would like it to end with a condition such as all items are processed. Is there such way to set the experiment run time ?

FlexSim 16.2.0
experimenteroptquestrun time
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

Matthew Gillespie avatar image
3 Likes"
Matthew Gillespie answered Khalid Kayal commented

You can use the endreplication() command. Calling this function will stop that experimenter replication. You could, for example, put it in the OnEntry trigger of your sink and call it when the last item is destroyed.

· 1
5 |100000

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

Khalid Kayal avatar image Khalid Kayal commented ·

It worked, thanks Matthew

0 Likes 0 ·