全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1756 2
2010-04-16
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
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2010-4-17 13:28:26
You can reference the book << Simulation>>  by S. ROSS, in which the algorithm is presented.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2010-4-18 01:42:44
2# 飘洒

Thanks a lot~~~ {:3_52:}
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群