Search code examples
javatimeanylogic

How can I record the average time of a process in Anylogic?


I am doing a medical-related simulation. As the picture shows, I want to record the average time people spent from timeMeasureStart to timeMeasureEnd. I only know how to make a simple Histogram distribution but how can I get the average time?

enter image description here

enter image description here


Solution

  • Each TimeMeasureEnd block has a build-in DataSet with all data. Use that to access the mean, mode, min, max, whatever you like. Simply use myTimeMeasureEnd.dataset. and access getYMean(): enter image description here