2

I have to calculate the probability of a customer waiting more than 5 min in the queue in anylogic. I've already implemented the timemeasureend and-start block, but I have seriously no clue how to compute the probability of a customer waiting longer than 5min? What do I need to write where? Help is highly appreciated

Thanks!

Habenzu
  • 43
  • 6

1 Answers1

1

There are two objects in a process modelling library: TimeMeasureStart and TimeMeasureEnd. You can put those around a queue and record the time for each entity after they exit the queue. Save that time to a Statistics object and from there your probability if waiting more that 5 mins should be (no of samples over 5 mins)/(total number of entities). Also, make sure that your model time unit is set to minute to make it easier.

Artem P.
  • 816
  • 1
  • 6
  • 8
  • Ok thanks, I'm aware of the timemeasurestart and timemeasureend block and have already contributed the average time in the queue. But I'm not quiet sure how I can contribute the number of agents over 5 mins. I mean, where am I supposed to generate this from and how? – Habenzu Apr 28 '21 at 16:10
  • and I have already depict the data from the average number in queue in a histogram – Habenzu Apr 28 '21 at 16:11
  • 1
    Each **TimeMeasureEnd** object has a *dataset* property. In there is a list of *x,y* pairs where *x* is an entry time into **TimeMeasureStart** and *y* is an exit time through **TimeMeasureEnd**. So at any point, it is possible to go through that dataset, calculate the difference *y - x* and count the ones <= 5 mins. You can see more [here](https://help.anylogic.com/topic/com.anylogic.help/html/processmodeling/timemeasureend.html). – Artem P. Apr 29 '21 at 09:39