How to get dempirical label assignment function to recognize string?

How to get dempirical label assignment function to recognize string?

joey_a
Not applicable
17 Views
2 Replies
Message 1 of 3

How to get dempirical label assignment function to recognize string?

joey_a
Not applicable

[ FlexSim 23.0.5 ]

Hi,


In my "Create Object" process flow I am trying to get a sku label based on a dempirical distribution. I keep getting 0 for my "Sku" label and I can't figure out why. I changed my "Sku" values from values with consonants (I'm assuming they are being seen as strings) to integers in my excel sheet and the function started working. I'm assuming the dempirical function I'm using doesn't like string values.

Function: dempirical("IB_Dempirical")

How can I get the dempirical function to assign a string value for my "sku" label?


Thank you for any help you can provide!


Joey

dempirical help.fsm

0 Likes
Accepted solutions (1)
18 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Observer
Observer
Accepted solution

As you say, the function only numeric values (despite the documentation never explicitly stating this). You could store the string values in a third column, have the distribution return the row number and then read the respective value from the extra column.

1711094376885.png

0 Likes
Message 3 of 3

joey_a
Not applicable
Thank you!!!
0 Likes