question

Rex R. B avatar image
0 Likes"
Rex R. B asked Rex R. B commented

How to combine a pallet with varying content and the right number of items?

demand-pallet-item.fsm

The model that I am working on has a varying demand. To simulate the varying demand, a pallet generator was made and as a pallet is generated, it is labeled with a number following the distribution function of the demand. It is then fed to the combiner together with the item. My problem is how to match the number of items that should be combined with the pallet label.

Attached is the model that I created.

FlexSim 19.1.0
combineritempallets
5 |100000

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

David Chan avatar image
0 Likes"
David Chan answered Rex R. B commented

Rax

Please try this.

David

pull-based-on-demand.fsm


· 1
5 |100000

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

Rex R. B avatar image Rex R. B commented ·

Thanks, David. This works really well.

0 Likes 0 ·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Joerg Vogel edited

You use a picklist option to update the component list by a global table. Unfortunately it is hard coded to use the label Type at the item to get the column of by the Type value. There are three easy variants:

(1) You can evaluate your label "demand" instead of "Type" in the source code of the Picklist Option.

(2) You can add a global table that has got only on column to update the component list. You change the column to look for update in the source code to column 1 (source code line 33 and 34). And you insert a code line to set the table cell value by the value of the demand label value (source code line 25)

(3) You can assign the label value directly (source code line 31 and 32)


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.