question

rheem avatar image
0 Likes"
rheem asked rheem commented

Set labels by % is inaccurate

Set labels by %.fsm Trying to set labels by percentage and get the exact percentage (80% & 20%) but never get it. Also, the throughput chart has 3 types instead of 2 , I don't know why. I was trying many times but never succeed. Please see attached


Any help or modify the model is appreciated.
FlexSim 23.2.2
set labelset percentage
set-labels-by.fsm (72.8 KiB)
· 4
5 |100000

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

Phil BoBo avatar image
0 Likes"
Phil BoBo answered rheem commented

Your Station19 and Station7 objects have an On Process Finish trigger that sets the item's Type label to a random number 1-3.

1702677726303.png

So any items that go to those stations have their type overridden as a random value uniformly distributed between 1 and 3.

Remove those Set Label triggers to fix your problem.


1702677726303.png (1.2 MiB)
· 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.

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered rheem commented

You can only get an exact percentage that matches 80/20 split in multiples of 5 items. One way of making that happen for as few items as possible is to create a repeating schedule like this:

1702677427834.png

The reason you have 3 types is that Station7 and 19 are relabelling items from a uniform distribution:

1702677500619.png

Changed model attached.

set-labels-byPercent_jl.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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered rheem commented
· 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.