question

Marc K avatar image
0 Likes"
Marc K asked Joseph Gillespie commented

Can you have a DECIDE be based on which path is open to accept token?

Can DECIDE be based on which path is open? Example here:

I have material that moves into a room with 3 bays. The token needs to stop at the supply until a bay is open. So I need a token to decide based on if there is an open bay.

FlexSim 19.0.1
decide based on open path
· 3
5 |100000

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

Joseph Gillespie avatar image Joseph Gillespie commented ·

@Marc K

Would you like for each bay to only hold one token at a time?

0 Likes 0 ·
Marc K avatar image Marc K commented ·

I will be putting in RESOURCE requirements into each Bay (People and the Bay as resources).

0 Likes 0 ·
Marc K avatar image Marc K Marc K commented ·

And yes... Only one token at a time.

0 Likes 0 ·

1 Answer

·
Joseph Gillespie avatar image
0 Likes"
Joseph Gillespie answered

@Marc K

One good option would be to set your decide to Send Token To "Shortest Queue". This sends tokens to the bay with the fewest tokens waiting to enter:

Alternatively, as with my previous answer, you could always include the 3 bays as parts of the same resource as long as the bays are identical in behavior to each other.

Here's a model with the same behavior as yours that has tokens acquire the next available bay: acquirebays.fsm

It works by having "Resource: Bays" contain 3 bays, and when a token reaches the "Acquire" activity, it acquires one of the three bay resources, whichever one is available at the time. You'll notice that the "Delay" activity between the "Acquire" and "Release" activities never has more than three tokens in it.

I hope this helps!


capture.png (2.0 KiB)
acquirebays.fsm (21.1 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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