How to select the shortest waiting line

How to select the shortest waiting line

patrick_zweekhorst
Advocate Advocate
21 Views
1 Reply
Message 1 of 2

How to select the shortest waiting line

patrick_zweekhorst
Advocate
Advocate

[ FlexSim (other) ]

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?

18333-waitingline.png

Thanks for your help,

Note that I was building the model in 19.1 Beta

0 Likes
Accepted solutions (1)
22 Views
1 Reply
Reply (1)
Message 2 of 2

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

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

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

18342-conditionalobject.png

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



Matthew Gillespie
FlexSim Software Developer

0 Likes