How to end simulation run after last flow item being processed?

How to end simulation run after last flow item being processed?

ejust
Not applicable
239 Views
4 Replies
Message 1 of 5

How to end simulation run after last flow item being processed?

ejust
Not applicable

[ FlexSim 22.2.0 ]

I have this model that a specific number of orders created in an OrderQueue < picked by operators to processors < finished processing < transported to conveyor/dispatcher.

I want my model run to stop once the last order is dispatched. I need this for my statistics.

0 Likes
Accepted solutions (1)
240 Views
4 Replies
Replies (4)
Message 2 of 5

jason_lightfoot_adsk
Autodesk
Autodesk
Accepted solution

Call endreplication() when you evaluate the stop condition to be true.

0 Likes
Message 3 of 5

ejust
Not applicable
sorry @Jason Lightfoot can you be more explicit?
0 Likes
Message 4 of 5

ejust
Not applicable

I tried this and it worked.

1689166421377.png

0 Likes
Message 5 of 5

jason_lightfoot_adsk
Autodesk
Autodesk

If that's a trigger on the sink you can just replace the sink reference with 'current' so:

current.stats.input.value>=85
0 Likes