I need to create exponential arrivals in minutes according to certain hours of the day
??
I need to create exponential arrivals in minutes according to certain hours of the day
??
Flexsim chooses randomly the next arrival time when an item leaves the source. If the chosen time to create an item is already in the next time or the second or third slot of your table, how should this time to be used? Should the item still be created. Should the source create an item at the beginning of the next time interval. These questions occur because the exponential function values exceed the 14th times of the mean.
In the past we used a technique called acceptance/rejection sampling.
The basic idea is to find a common frequency for all rows, for example, in your dataset, 5 min/client. You set your source to generate arrivals at this frequency, and then reject them with a probability proportional to the ratio between the actual frequency and the common frequency. So between 08:00 and 10:00 you would 6 times more arrivals than you want, so for each arrival, you let it through with probability 5/30 and reject it with probability 25/30. Then between 10:00 and 12:00 you accept the arrival with probability 5/60, between 12:00 and 17:00 with probability 5/100, etc. In FlexSim you can use uniform(0, 1) or a bernoulli for this.
We went through the exercise once of proving mathematically that for exponential distributions this gives correct statistics, and implementation is a bit of work the first time but is quite straightforward.
Another option is generating all arrivals of one period at the same time. Than delay each arrival with a time sampled from a uniform distribution between 0 and the following time slot (for instance in a processor with high capacity). The inter-arrival times of the items arriving in the time slot will then also be exponential distributed. Advantage (or disadvantage) is that the number of arrivals within the time slot is fixed (!).
6 People are following this question.
How to Setup the source by an input value
How to control the inputs and outputs of a production line?
Why is my second source not creating any items?
how to use source to generate trucks as task executors to be loaded with containers ?
How to create a reject - source connection and sort through queues to find matches to combine?
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved