Hey, guys!
I am doing a simple queuing simulator in R. I try to find how many people would be in the queue for every new arrival customer. The data set is as follows, including every new arrival customer's arrival time, service start time and service complete time. Assuming there is only one server in the system, how can I solve this problem? Thank you in advance.
arrival start complete
[1,] 0.01345365 0.01345365 0.2597020
[2,] 0.08503941 0.25970205 0.2833175
[3,] 0.16385728 0.28331749 0.4847888
[4,] 0.25902751 0.48478879 0.5314222
[5,] 0.31898485 0.53142223 0.5654170
[6,] 0.40407514 0.56541703 0.9726132
[7,] 0.50859047 0.97261320 1.0238480
[8,] 0.74716389 1.02384802 1.1002212
[9,] 0.86826212 1.10022116 1.6096047
[10,] 1.00333670 1.60960469 2.0518446
[11,] 1.40441984 2.05184461 2.2781671
[12,] 1.46731743 2.27816712 2.5551803
[13,] 1.52208345 2.55518031 2.6200017
[14,] 1.68627805 2.62000170 2.7759630
[15,] 1.75709257 2.77596302 2.8701898
[16,] 1.80958804 2.87018982 2.9144444
[17,] 1.84152929 2.91444444 2.9508584
[18,] 1.90996644 2.95085839 2.9653229
[19,] 1.97449630 2.96532292 3.1571920
[20,] 2.02588923 3.15719198 3.1707705