question

Byron H2 avatar image
0 Likes"
Byron H2 asked Patrick Zweekhorst answered

What does the value in the "assign labels" mean? (Image in description)

I need to simulate a restaurant and in the restaurant enters groups of 2,3,4 etc. How would be the value if I want that the group of people enters in percentage. For example: groups of 3 persons will be 45%, groups of 4 persons will be 10% and so on.

FlexSim 19.1.0
process flowassign labelsvaluepercentage
screenshot-665.png (1.2 MiB)
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

·
Patrick Zweekhorst avatar image
0 Likes"
Patrick Zweekhorst answered

Hi @Byron H2,

I guess you might want to use the "By percentage option" in the assign labels activities drop down. If you use that option you can do precisely what you want.

What the value means that is currently in the box is this:
Math.ceil() is used to round the number up to an integer.
gamma( .., .., .., .. ) is a function that gets a random number from the gamma distribution with the selected parameters.
% 6 is for taking the modulo function. Which is the same as Math.fmod( Gamma(), 6 ).
This makes sure you only get numbers between 0-5.
The + 1 is to make sure you only get numbers between 1-6.

I hope this helps you further.

5 |100000

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

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.