question

Ousmane avatar image
0 Likes"
Ousmane asked Ousmane commented

How to send item to one of the empty queue in a group of queue?

I have a model that simulates a supply arrival to a set of 3 queues. I want the model to send 10 pallets to the empty queues until there is nothing left to supply. and if there is no empty queue, supplies wait for a queue to empty. I put the queues in a group and limit their capacity to 10 so that it works but it doesn't work as I want because the queues exceed their capacity and there are no waiting line. in addition for the storage the trolley moves to another queue before returning to the queue where it must load the pallets. Someone can help me with this please ?


attached my model for more detail

Approvisionnement.fsm

FlexSim 23.0.2
queueempty queuesupply
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 Ousmane commented

You can have the queues on a list and have the token that creates the pallets pull a queue with content < 10 from that list.

If the content is still less than 10 after the pallet is moved there, the token pushes the queue back immediately, so others can pull it. Otherwise the token waits until the queue is empty.

1676987141261.png

approvisionnement-fm.fsm


· 4
5 |100000

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

Ousmane avatar image Ousmane commented ·

Thank you, but my trolley still move to another queue before returning to the queue where it must load the pallets, do you know why?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Ousmane commented ·

The transporter is moving the pallets in FIFO order.

First fill up one queue before moving items into the next. There are numerous ways to do this. For example instead of creating 35 tokens that each create one pallet, create 4 tokens that create 10 (or 5) pallets each and move them into a single queue.

You could also batch the tokens in the flow that controls the transporter into batches of ten based on the queue. Then move all ten items with a single token (utilizing subflow)

1676998592911.png

1676998605668.png

1676998618242.png

0 Likes 0 ·
1676998592911.png (26.6 KiB)
1676998605668.png (19.6 KiB)
1676998618242.png (20.1 KiB)
Ousmane avatar image Ousmane commented ·

thank you, can you tell me more about the first example? the second, 5 tokens will be left beacause the batch is at 10

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Ousmane commented ·

Its the same principle: Have one token that acquires/pulls the queue, which then creates 10 pallets in it.

1677003334977.png

You could also set a max wait timer in the Batch activity to release a partial batch after X seconds even if there are fewer than 10 tokens.

1677003427449.png

0 Likes 0 ·
1677003334977.png (35.2 KiB)
1677003427449.png (19.9 KiB)

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.