question

wtj-thu avatar image
0 Likes"
wtj-thu asked Felix Möhlmann answered

How to set the maximum capacity of a queue?

test.fsm

Hello!

I have a question when using Flexsim HC. The object Waiting Line in Flexsim HC doesn't have the choice to set maximum capacity. I want to set the maximum capacity and let patients exit directly when the queue is full.

For example, in the below flowchart, I want to set the capacity of Pharmacy Waiting Line to 30 and let new patients leave directly when the queue is full.

1714057031617.png

The test model is in test.fsm

Thank you in advance.


FlexSim 22.2.0
maximum capacity of a queue
1714057031617.png (46.2 KiB)
test.fsm (69.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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

The easiest solution would probably be to limit the number of tokens that can enter the activity with a zone. Similar to what is done in this tutorial the token is send to a different activity if it can't enter the zone within the maximum wait time.

limit-zone-fm.fsm


limit-zone-fm.fsm (69.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.