How to send item by label and by percentage?

How to send item by label and by percentage?

jungeun_w
Not applicable
464 Views
2 Replies
Message 1 of 3

How to send item by label and by percentage?

jungeun_w
Not applicable

[ FlexSim 21.1.5 ]

Hi 🙂

I want to send item by both label and percentage

for example: i have flowitem by label.type 1 and 2; and 3 outputs.

100% of label.type ==2 and 10% of label.type ==1 go to output 1

30% of label.type ==1 go to output 2

60% of label.type ==1 go to output 3

this is the attatched file..: example.fsm

can i setting them in the output>send to port option?

Thx

0 Likes
Accepted solutions (1)
465 Views
2 Replies
Replies (2)
Message 2 of 3

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

You could first split the items by type into separate, intermediate queues and then set each Send To Port according to the type it will receive.

If you want to do this in a single Send To Port option you will have to manually edit the code. Starting from the default "By Percentage" option, you can simply wrap that code in an if-condition that checks the item's type.

Since all items of type 2 should go to port 1, you just return 1 in that case.

1666696040604.pngSendToPortComboOption.fsm

0 Likes
Message 3 of 3

jungeun_w
Not applicable

Thanks alot! It helped so much!!

0 Likes