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?

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.

Hi thanks for the link, however instead of customers being frustrated and leave without getting processed, my model is that customers will still get processed at the cashier (processor) even though they are unhappy. After that if they are unhappy then they will go to the unhappy sink. So i would like to find out how do i use the waiting time for the waiting queue as the variable instead of the processor time.


0 Likes 0 ·

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.

Thanks for your answer it helped me alot! Thank you
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.