question

juan_esteban.sanchez avatar image
0 Likes"
juan_esteban.sanchez asked Ben Wilson edited

Combiner, Last pack with remaining flowitems

I have a process that uses a Combiner to pack flow items from 3 different queues, 10 flow items from each queue. At the end of the process there are some flow items remaining (less than 10 per queue).

How could I do a last pack with the remaining flow items if the quantity of those remaining items varies?

FlexSim 16.1.0
combinercomponent list
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

Ben Wilson avatar image
2 Likes"
Ben Wilson answered Ben Wilson edited

Please see the attached model for an example.

On the 3 queues, if you enable batching, you can use the On End Collecting trigger, where you'll find an option for Change Combiner's batch quantity to this object's batch. This option doesn't have any user-configurable options. You just set it and go.

For your batching, set the batch quantity to 10. Flush the contents between batches. Set some timeout period after which the combiner should just take whatever is left.

This will work as long as all three queues have at least one item to donate to the final combiner pack. If one of the queues is empty for that final pack, then it has not started a batch, so it will not time out, and it will not tell the combiner to take whatever it has left (which would be nothing).

If this may ever be the case for you, we can probably get around it with some custom logic. Let us know.


5 |100000

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