question

Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst asked Matthew Gillespie answered

How to select the shortest waiting line

Hi,

When patients arrive at the entrance of my model it is possible that both registration desks are occupied. In that case they should wait in the waiting line. Is there an easy dropdown option to select the shortest waiting line or something in the wait in line activity? Or do I need to add some code to check which waiting line to select?

Thanks for your help,

Note that I was building the model in 19.1 Beta

FlexSim (other - please specify)
FlexSim (other)
people modulewaiting line
waitingline.png (136.4 KiB)
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

I would just use the Conditional Object pickoption and compare the content of the lines.

content(Model.find("WaitingLine1"))  <=  content(Model.find("WaitingLine2"))

If new people arrive before the person in front of them gets in line then they'll end up going to the same line, but if the arrival rate is that high then it's not really a huge issue.

shortestline.fsm


shortestline.fsm (29.6 KiB)
5 |100000

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