question

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

How to send two types of source equally to 4 racks

How to send two types of source equally to the first one to rack 1 and 3, and the second one to rack 2 and 4練習_1.fsm748764623.745389.mp4

FlexSim 24.2.1
racksoutput portsendtoport
練習-1.fsm (68.3 KiB)
748764623745389.mp4 (672.7 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

Start with the "Port By Case" option to differentiate between the different item types. Since you only have two racks per type, you can use the command bernoulli to send the items to one of the two randomly.

1727693497081.png

For more complex rules, you can open the code editor with the scroll icon and customize the code to fit your needs. For example defining arrays of valid ports per item type and then choosing a random entry from them.


1727693497081.png (16.7 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.