question

Paula Andrea B avatar image
0 Likes"
Paula Andrea B asked Benjamin W2 commented

Random por porcentajes

Hola!!

Tengo que enviar 200 unidades a tres diferentes Queue con los siguientes porcentajes:

59.33% al primer queue

20% al segundo queue

20.67% al tercer queue

Pasa que al correr el modelo no me reparte la cantidad en estos porcentajes, incluso en algunas ocasiones me deja sin repartir todas las 200 unidades. Les agradezco si me pueden colaborar!

FlexSim 19.2.4
flexsim 19.2.4flowrandom
· 2
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 ·

a random function gets you the distribution you expect after a huge amount of events. IT is a stochastic principle. a huge amount of events is NOT 1, 10 or 100. A huge amount starts with at least with 1000 events. If you expects a random distributed output with 200 released items, you will always be disappointed by a random statistical distribution. If you need NOT a random BUT an ordered distribution like 5 items go to output port 1, then 2 go to port 2 and 1 go to port 3, then please ask a new question, where you ask how to do an ordered release and give us the discrete relation like 5 to 3 to1.

0 Likes 0 ·
Benjamin W2 avatar image Benjamin W2 commented ·

Hi @Paula Andrea B, was Jörg Vogel's answer helpful? If so, please click the red "Accept" button on their answer!

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered

An object sends items by calling the number of an output port in the Flow tab function Send To Port.

You can start with Picklist Option “by Expression”. The expression is

dempirical(string table name, number stream)

table name is the name of a Global Table formatted and described in manual

number stream is a number of a predefined random stream generator. You can insert for example 33.

Manual: dempirical

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.