Como crear elementos desde la fuente

ricardo_g9
Not applicable
0 Views
4 Replies
Message 1 of 5

Como crear elementos desde la fuente

ricardo_g9
Not applicable

[ FlexSim 19.2.4 ]

Por favor me podrian ayudar, necesito simular 13729 cajas en 53 tipos los cuales tienen porcentajes con decimales, he tratado de realizarlo desde triggers one creation set item type by percetage o por la global table y no he tenido resultados ejemplo para un tipo de caja tengo como porcentaje el 1.6% el cual deberian ser 220 cajas y cuando lo simulo en flexsim solo me saca 193 les agradeceria que me explicaran como realizar bien este proceso.31334-captura.png

0 Likes
Accepted solutions (1)
1 View
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel
Not applicable

I assume you create products by a statistical distribution. Statistically means it has got a more randomly than absolute static character. On the other hand you want to replicate a given fixed input in a model but with a nearly perfect matching ratio during the run time. This is not easily to implement because the ratio will not fit perfectly until the input of products reaches the sum of all least common denominators of the ratio or the multiple of it during the simulation run time. You can build a logic that creates a defined order of types which fits best suited to your probabilities by code or a list. Or you choose randomly values from a list and decrement them until the list gets empty to start with a new full list again.

0 Likes
Message 3 of 5

joerg_vogel
Not applicable
Accepted solution

I push the Type of each empirical data product onto a list and create a random chosen number as a field. While I create an item I choose a value from the list which is my Type. Because I want to get a random Type value I order the list by the random field value. If the list gets empty, I run the reset trigger function again by source code which has filled initially the list.

draw_Type_by_emprical_sample.fsm

31343-repeat-empirical-data-without-variance.png

0 Likes
Message 4 of 5

joerg_vogel
Not applicable

You find here a model which draws from a table, that I update continously, while the model runs, to keep the available Types limited to a standard range.

draw_Type_by_emprical_sample_table.fsm

31336-choose-type-from-sample.png You may improve it still, if you replace the duniform statistical distribution by another discrete function, which take into account the available amount of same Types.

0 Likes
Message 5 of 5

ben_wilson5K2EV
Autodesk
Autodesk

Hi @ricardo.g9, was joerg.vogel's or joerg.vogel's answer helpful? If so, please click the red "Accept" button on one of their answers. Or if you still have questions, add a comment and we'll continue the conversation.

0 Likes

Type a product name