question

Jungeun W avatar image
0 Likes"
Jungeun W asked Jason Lightfoot edited

How to send item by label and by percentage?

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

FlexSim 21.1.5
labelby percentagesendtoport
example.fsm (40.4 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 Jungeun W commented

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


· 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.

Jungeun W avatar image Jungeun W commented ·

Thanks alot! It helped so much!!

0 Likes 0 ·

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.