Time of arrival between batches

ludovic_s2
Not applicable
0 Views
4 Replies
Message 1 of 5

Time of arrival between batches

ludovic_s2
Not applicable

[ FlexSim 19.0.2 ]

Hi,

I would like to measure the time of arrival between batches (both the mean and variance). The batches are triggered by the racks and created in processor 3. Then they flow from queue 1 right to queue4. I was wondering if someone knows how to measure the time of arrival between batches? Both the meand and variance.

Is there maybe some way where I can see the time logging from all the messages send from the racks? Based on this I would be able to calculate the time of arrival between batches.

Thank you in advance

Kind regards

model-with-variation.fsm

Ludovic

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

tanner_p
Not applicable

Your question seems to be related to this one. It would help if you could simplify the model so it's easier to dissect what's going on.

In order to track the time between batches, I created a script on a trigger of Queue 1. This isn't anything fancy, but essentially it takes the current time and subtracts the time of the last batch collected then outputs that value. There appears to be multiple batches collecting within a second of each other, which may or may not be what you are intending. Either way, the information in the Output Console should help you determine if you have the right number of batches at the right times.

18805-model-with-variation-1.fsm

0 Likes
Message 3 of 5

jordan_johnsonPM57V
Autodesk
Autodesk
Accepted solution

Here's a model I made that gathers the statistics you wanted:

18874-batch-mean-variance-by-rack.png

model-with-variation-with-stats.fsm

It uses a Process Flow to listen to when the batches are made, and it measures the time between batches, per rack.

Then I used a Statistics Collector to log those values, so that every inter-batch time is recorded in the table.

Finally, I used a Calculated Table to calculate the mean and variance of the the inter-batch time by rack.

.


Jordan Johnson
Principal Software Engineer
>

0 Likes
Message 4 of 5

ludovic_s2
Not applicable

Hi jordan,

Thank you for your answer. It looks great, but I would need to know the behaviour arrival of the batches in queue1. This way I would be able to evaluate with what kind of queue I am dealing here (f.i. M/G/1 or something else).

Kind regards

Ludovic

0 Likes
Message 5 of 5

jordan_johnsonPM57V
Autodesk
Autodesk

In the model I created, I measure the time between when a batch is created, and when the next batch is created. Is that the correct way to look at this problem? I also broke down the statistics by Rack that sent the message. If you don't want that, and just want the overall average, you can edit the query in CalculatedTable1 to say this:

SELECT AVG(Time) AS Mean, VAR(Time) AS Variance
FROM StatisticsCollector1

That will update the table to look as follows:

18921-batch-variance-overall.png

.


Jordan Johnson
Principal Software Engineer
>

0 Likes

Type a product name