question

chao.g avatar image
2 Likes"
chao.g asked Phil BoBo edited

Distribution Generation Mechanism

Attached is a simple model I am trying to track the quality of downtime distribution I used for Processor 1.(MTTRMTBF1), objective is to make sure the number generated from the distribution would be good quality numbers.

What is the mechanism that Flexsim used to generate certain type of distributions, like when I select exponential(0,1000,0), how can I be sure that the number generated from FlexSim will be good enough to represent the distribution. That is the reason why I am setting different tracked variable to see the actual number generated. It seems good, but I would like to know the mechanism that's behind this.

Thanks,

FlexSim 16.2.0
random streamgeneral
test.fsm (17.7 KiB)
· 4
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

Phil BoBo avatar image
4 Likes"
Phil BoBo answered Phil BoBo edited

Our random number generators are explained this thread: http://www.flexsim.com/community/forum/showthread.php?t=171&p=4318

Also, you can use a variety of stochastic distributions, such as bernoulli, beta, binomial, empirical, erlang, exponential, gamma, geometric, inversegaussian, johnson, loglogistic, loglaplace, lognormal, negbinomial, normal, pearsont, poisson, qstudentt, triangular, uniform, and weibull.

These stochastic functions are coded based on recommendations in the book Simulation Modeling and Analysis by Averill M. Law and W. David Kelton.

If you want to "make sure the number generated from FlexSim will follow normal(100,20) distribution," then write a script loop that samples from that distribution many, many times and output the results. Then input those results into one or more curve-fitting software packages, such as ExpertFit, Stat::Fit, or MATLAB, and then see if the actual sampled values fit back to the input distribution and parameters that generated them.

· 8
5 |100000

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