排队论经典程序MM1代码.docVIP

  • 77
  • 0
  • 约1.77万字
  • 约 28页
  • 2016-12-18 发布于贵州
  • 举报
修理店仿真报告 一.问题: 修理店空闲的概率; 店内有三个顾客的概率; 店内至少有一个顾客的概率; 在店内顾客的平均数; 顾客在店内的平均逗留时间; 顾客必须在店内消耗15分钟以上的概率。 二.求解问题的方法: ①修理店空闲的概率: (sim_time-area_server_status) / sim_time); ②店内有三个顾客的概率: area_3_in_q/sim_time); ③店内至少有一个顾客的概率: abv_1/sim_time); ④在店内顾客的平均数: area_num_in_h/sim_time); ⑤顾客在店内的平均逗留时间: (total_of_delays+total_of_server)/ num_custs_delayed ); ⑥顾客必须在店内消耗15分钟以上概率: abv_15/num_custs_delayed); 三。求解过程中计算统计量的方法: area_server_status += server_status * time_since_last_event; //店内有三个顾客的概率 if(server_status == BUSY) //服务台忙,则有队列中有两个顾客 if(num_in_q == 2)

文档评论(0)

1亿VIP精品文档

相关文档