question

Luis Fernando avatar image
0 Likes"
Luis Fernando asked Luis Fernando commented

How to set output of a queue by round robin but in batches

Hi FlexSim team,


How can I set output of a queue by round robin but in batches of 10 pieces, but without distributing them piece by piece to each queue?

I mean, when the pieces are sent to the queue are divided between all the queues conected. I want to send one complete batch of 10 pieces to one QueueA, and then the other batch of then send to the other queueB...

1698274177933.png


Round Robbin by batches.fsm


Thank you,

Luis

FlexSim 23.1.2
batchesround robbin
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

Julio R avatar image
0 Likes"
Julio R answered Luis Fernando commented

You could use a combiner to do the batch and then three separators in each queue.

round-robbin-by-batches_1.fsm

There are other more direct ways to do this without the extra objects, but this is the fastest I can think of


· 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.

Felix Möhlmann avatar image Felix Möhlmann commented ·

The attached model shows how one might do this in the Send to Port code. The princible stays the same from the default Round Robin. The difference is that the counter label/variable is not used as the output port number directly but modified by the batch size.

round-robbin-by-batches-fm.fsm

1 Like 1 ·
Luis Fernando avatar image Luis Fernando Felix Möhlmann commented ·

Thank you Felix, it works for me

0 Likes 0 ·
Luis Fernando avatar image Luis Fernando commented ·
Thank you Julio!
0 Likes 0 ·