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.

Joerg Vogel avatar image Joerg Vogel commented ·
@rheem, it is a desired feature to get a deviation if you use a statistical distribution. You get nearer to a ratio for millions of events.
0 Likes 0 ·
rheem avatar image rheem Joerg Vogel commented ·

i was trying to change it but unable to get it work. Could you please modify the file and send it back to me if that possible. I will use it as reference for my project . Please see attached

Set labels by %.fsm

0 Likes 0 ·
set-labels-by.fsm (72.8 KiB)
Joerg Vogel avatar image Joerg Vogel rheem commented ·
@rheem, this is not my intention. Please describe, what your problem is! Maybe someone is able to help.
0 Likes 0 ·
Show more comments
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.

rheem avatar image rheem commented ·

Good catch. Thank you Phil

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

rheem avatar image rheem commented ·
Thank you Jason
0 Likes 0 ·
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.

rheem avatar image rheem commented ·

I didn't accept this answer. It was a general information and didn't help me at all.

0 Likes 0 ·