question

Law_teng_yew N avatar image
0 Likes"
Law_teng_yew N asked Law_teng_yew N commented

Supmarket simulation (push pull problem)

My supermarket simulation model has queues, processors and 3 sinks which represents happy, satisfied, and unhappy customers. From the queue, i have to connect them to the processors (counters), and from the processors i send the output into a global list. My 3 sinks will then pull from the global list when the waiting time is < 10mins, >10mins, & >15mins respectively. However, the waiting time is the processor process time, and not the waiting time needed to wait in the queue before getting processed. I am trying to find out what code should i use in the global list so that the waiting time is for the queue and not the processor, even though the output is from the processor?

FlexSim 21.2.3
supermarket queue
· 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.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Law_teng_yew N commented

You can write the staytime in the queue onto label in the on exit trigger of the queue, the same way you determine the time spend in the processor. Then use that label as the condition for pulling off the list.

You should also add a second condition to the "satisfied" sink (>600 and < 900), otherwise it will also pull the unhappy customers depending on the sinks rank in the tree.

ess-project_1.fsm


ess-project-1.fsm (42.2 KiB)
· 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.