question

Solar avatar image
0 Likes"
Solar asked Matthew Gillespie answered

Need help in coding in People module

Hi, I'm using people module to simulate customer service. In our simulation, customer comes in and take a sit at the seating area. They have to wait until there is no queue then they go to the counter. I need help at the "Decide", what is the coding to see if there is a queue at the WaitingLine1? Thanks model-1.fsm

FlexSim 18.2.2
process flowcodepeople moduledecidepeople flow
model-1.fsm (251.5 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.

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Student commented

You don't need to do anything extra with decides or delays, the Acquire activity does this all for you. Only one thing can acquire the Registration Desk at a time, so just have everyone try to acquire the desk. If two people both try to acquire the desk, only one will get it and the other one will wait until the desk is released before getting it second.

I've updated your model as shown in the picture.

model-1-fixed.fsm


acquire.png (35.8 KiB)
model-1-fixed.fsm (249.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.

Sebastian Hemmann avatar image
0 Likes"
Sebastian Hemmann answered Student commented

Hey, I would not use a loop and see if there is a line but make a Zone that allowes only a given number of tokens to enter a part of your Process Flow. This way you can have a look if there is space and if not, decide to let people do anything else.

As a hint: I would prefer using the "Max Wait Timer" in the Enter Zone ;-)

5 |100000

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