question

Zacy Garcia avatar image
0 Likes"
Zacy Garcia asked Felix Möhlmann answered

I want to specify the number of boxes by color

I am making a model where I have two sources that supply me with 4 types of boxes per color, those from source 1 go through the processor and then are put together on the rack together with those from source 2 but I need 200 and in the end my floor warehouse of blue boxes is empty thus preventing my entire production from sending the 4 boxes together on a pallet, I don't know how to do it so that they give me the quantities I need and there are no boxes left in either the rack or the floor storage

1744057621686.png

FlexSim 23.2.1
sourcefloor storageset color by case
1744057621686.png (139.8 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.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

To create a fixed number of items per type but in a non-trivial or random order I would create an array with all types that need to assigned. For a random distribution choose a random element from this array for each item and assign it that type, then remove that element from the array.

For a fixed pattern, create the entries in the array with that pattern and always choose and remove the first/last element.

fixed-totals-random-order.fsm


5 |100000

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