question

Stephanie Y avatar image
0 Likes"
Stephanie Y asked tannerp commented

How do I create a source with different label types at fixed percentages?

I have reviewed existing answers and they are not working for me. I would like a source to generate 3 different label types at fixed percentages. Labels and percentages are: A = 47.5%, B= 5%, C= 47.5%. I am using 3D modeling (not process flow).

FlexSim 20.0.0
percentagesconveyancesource labels
· 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.

1 Answer

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered tannerp commented

It is a discrete empirical distribution.

  1. int returnVal = dempirical(global table name, number random stream);
You set a column of percentage values that sum up to 100. The second column row contain a discrete value that is returned in the probability of the percentage value.
You assign the return value to a label.
You use this value to translate it into other attributes like string or color. You find picklist options which are called like “color by case”. The case value is your label value.
· 3
5 |100000

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