question

Yunjukuo avatar image
0 Likes"
Yunjukuo asked Yunjukuo commented

How to assign items to machines based on machine constraints

There are four types of products in the following scenario, and the machine that can be used by each product is written in the table "ItemType_Processor". In the table, 1 means this product can be produced by this machine, and 0 means this product cannot be produced by this machine. Example: Product 2 can be produced by Processors 2, 4, and 5.

My question is how to randomly (e.g. uniform) assign which machine an item is produced with according to the "ItemType_Processor" table constraint?

My current idea is to set item lable "Processor" in OnEntry of Queue2, and select "Port By Case" in "Send to Port". But I am not sure how to write an efficient program/code that restricts assignment of machines according to the "ItemType_Processor" table.

1661086116182.png

File link:

https://drive.google.com/drive/folders/1cS5SfJ1H5ccRbyP6GaLKCjoY-KodD5fr?usp=sharing

FlexSim 16.1.2
itemtypesend to portconstraints
1661086116182.png (127.2 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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

In attached picture you see steps for Queue and Processors to accomplish your logic. You will change the value in brackets to translate your table conditions. Naturally you will add a global item list to your model in Toolbox. All tested in FlexSim 16.0

push-to-list-pull-with-in.jpg


· 6
5 |100000

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