How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
[ 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.
Solved! Go to Solution.
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.
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
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
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.
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.
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Type a product name