question

Clair A avatar image
1 Like"
Clair A asked Adrian Haws edited

FIFO in a patient waiting line

In the attached model, the behavior in a waiting line is not FIFO as expected. A woman arrives first in the waiting line but takes the 2nd position. Then a man arrives later and takes the 1st position in the waiting line. Why is the behavior not FIFO by default ?

FlexSim HC 5.0.12
travelwaiting linepatient trackflexsim hc 5.0.12patient location
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
1 Like"
Matthew Gillespie answered Matthew Gillespie commented

It is FIFO, but it's based on who first "acquires" a spot in the line and not who first arrives at the line. Patients in HC don't start walking to a location until they've acquired a spot for themselves in the location they're walking to.

In your model, the man arrives first, acquires the first spot, and then begins walking the long distance between the arrival object and the waiting line. The woman arrives while the man is in the middle of his walk, acquires the second spot, walks to the waiting line, and arrives first at the waiting line since she had a shorter distance to walk. She waits at the second spot since that's the one she acquired.

· 2
5 |100000

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