Cancel
Showing results for
Did you mean:

# average waiting time of movable objects in a buffer

Pioneer

Hi,

I try to read of the average of waiting time in statistic report, but i couldn't find the right value.

Is there another way to find it out?

Best regards

6 REPLIES

# Re: average waiting time of movable objects in a buffer

Gears Esteemed Contributor

you could calculate it by yourself

e.g. calculate the dwell time of the MU in the buffer:

eventController.simTime-@.entryTime

write it into a list or TableFile

at the end of the simulation (e.g. endSim method) calculate the averageValue

--> see help method meanValue

 Steffen Bangsowfreelance simulation specialist  web: www.bangsow.eumail: steffen@bangsow.net

# Re: average waiting time of movable objects in a buffer

Pioneer

Hi,

thanks for the hint.

If I understand it correctly, i have to write a method:

/*

1. safe the entry time

2. safe the exit time for the same MU in a row

3. write the diference of both times in a tbalefile

4.end of simulation calculate the average

*/

Is it correct?

best regards

# Re: average waiting time of movable objects in a buffer

Gears Esteemed Contributor

no

1. calculate the waiting time for each MU (e.g. exit control rear of the buffer) and

2. write it into a table (only one column)

3. at the end calculate the mean waiting time using the method meanValue of the table (see help)

 Steffen Bangsowfreelance simulation specialist  web: www.bangsow.eumail: steffen@bangsow.net

# Re: average waiting time of movable objects in a buffer

Pioneer
Hi,

and this is all written in one method?!
and do i calcuate the MU of ALL buffers i have? is it possible?

# Re: average waiting time of movable objects in a buffer

Gears Esteemed Contributor
Den Mittelwert können Sie erst am Ende der Simulation ermitteln (endSim-Methode).

Und ja, Sie können alle Wartezeiten in eine Tabelle schreiben.
 Steffen Bangsowfreelance simulation specialist  web: www.bangsow.eumail: steffen@bangsow.net

# Re: average waiting time of movable objects in a buffer

Pioneer

Hi,

great to hear that.

So the method is finally:

/*

1. Calculate the waiting of the MUs in the buffer (exitTime-entryTime)

2. Write it in a tablefile

3. at the end of the simulation calculate the averrageValue with the method meanValue

*/

?!

BEst regards