question

ejust avatar image
0 Likes"
ejust asked Jason Lightfoot edited

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

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.

FlexSim 22.2.0
run timesimulation run
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

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

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

· 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.

ejust avatar image ejust commented ·
sorry @Jason Lightfoot can you be more explicit?
0 Likes 0 ·
ejust avatar image ejust commented ·

I tried this and it worked.

1689166421377.png

0 Likes 0 ·
1689166421377.png (322.1 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ ejust commented ·

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 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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