question

Qiana C avatar image
0 Likes"
Qiana C asked Matthew Gillespie commented

Using a distribution to set labels

I want to use a distribution to set a label to an item, but have there be a finite number of labels that can be assigned. For example, i would want labels 1,2, and 3 where 1 is assigned the most, and 3 is assigned the least. Then later on, I want to use a 'decide' block to choose1 of 3 paths based on item's label. What would be the most efficient way to do this? Thanks

FlexSim 20.1.0
flexsim 20.1.0decision pointlabel assignmentstatistical distribution
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

·
Mischa Spelt avatar image
1 Like"
Mischa Spelt answered Matthew Gillespie commented

If you're using Process Flow, you can use the Assign Labels activity. The dropdown for the label value has a dropdown with several useful options:


* By percentage allows you to specify a simple distribution (e.g. 30% will have value 1, 50% will have value 2 and 20% will have value 3)

* Statistical Distribution gives you a choice from one of the many built-in functions in FlexSim.


If you have something like above but you want to use the same distribution in many different places, you could put it in a Global Table and use the (D)Empirical option from this list.

If you're using a 3D model and you want to do this from, for example, the On Creation trigger of a Source, you will have to use that last option because there is no "By Percentage" option there.


1598448664135.png (39.9 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.

Qiana C avatar image Qiana C commented ·

Thanks! once i do that, how would i program the decide process flow to choose a path based on the label?

0 Likes 0 ·
Mischa Spelt avatar image Mischa Spelt Qiana C commented ·
1 Like 1 ·
Qiana C avatar image Qiana C Mischa Spelt commented ·

Yes, i assumed so, but how can you set the decide activity to have more than 3 options, and decide based on the label value?

0 Likes 0 ·
Show more comments

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.