question

Howard avatar image
0 Likes"
Howard asked Jeanette F commented

Issue to set simulation to end on last item in the sink

I want the simulation to end when the last item enter the sink. Using the similar code from this post but I am not able to stop the simulation.

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

1714571846199.png


Also, the 3rd shift operator never get used. Am I setting this up correctly?


Issue - Process to end, 3rd shfit operator.fsm

FlexSim 24.0.2
shift scheduleendreplicationendtime
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Howard, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

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

In an entry trigger:

if (current.stats.input.value==8)
      endreplication(0);


Operator3 doesn't get a job since it is stopped the whole time. When you stop a dispatcher it will also stop its outobjects. Since you have timetables for the dispatcher and the operator that overlap there is no time when both timetables are 'on shift'. Remove the timetable you don't need, or alter them so that there is a period where no scheduled down time is active on either of them.

5 |100000

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