1、管理系统模拟作业管理系统模拟作业第一次上机作业1.自己输入完整的单窗口排队系统GPSS模拟程序,并运行(1)程序: SIMULATELINE EQU 1JOE EQU 1GENERATE 18,6QUEUE LINESEIZE JOEDEPART LINEADVANCE 16,4RELEASE JOETERMINATE 1START 25(2)输出报告 GPSS World Simulation Report - Untitled Model 1.2.1 Wednesday, April 30, 2014 16:22:42 START TIME END TIME BLOCKS FACILITI
2、ES STORAGES 0.000 466.570 7 1 0 NAME VALUE JOE 1.000 LINE 1.000LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY 1 GENERATE 25 0 0 2 QUEUE 25 0 0 3 SEIZE 25 0 0 4 DEPART 25 0 0 5 ADVANCE 25 0 0 6 RELEASE 25 0 0 7 TERMINATE 25 0 0FACILITY ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY
3、 JOE 25 0.860 16.057 1 0 0 0 0 02.单窗口串联排队系统的模拟(1)题目 某汽车加油站只有一台加油器,加油的汽车到达间隔时间为均匀分布,均值为100秒,方差为10秒。到达加油站后先排队等候,再加油,加油服务时间也为均匀分布,均值为80秒,方差为8秒。加油后司机要去交费窗口排队交费,交费时间也为均匀分布,均值为50秒,方差为30秒。求解:(1)加油站与交费窗口的利用率;(2)加油与交费的平均等候时间。 (2)程序 SIMULATEGENERATE 100,10QUEUE 1SEIZE 1DEPART 1ADVANCE 80,8RELEASE 1QUEUE 2SEIZ
4、E 2DEPART 2ADVANCE 50,30RELEASE 2TERMINATE 1START 100(3)输出报告 GPSS World Simulation Report - Untitled Model 2.1.1 Wednesday, April 30, 2014 16:34:15 START TIME END TIME BLOCKS FACILITIES STORAGES 0.000 10097.682 12 2 0LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY 1 GENERATE 101 0 0 2 QUEUE 101
5、 0 0 3 SEIZE 101 0 0 4 DEPART 101 0 0 5 ADVANCE 101 1 0 6 RELEASE 100 0 0 7 QUEUE 100 0 0 8 SEIZE 100 0 0 9 DEPART 100 0 0 10 ADVANCE 100 0 0 11 RELEASE 100 0 0 12 TERMINATE 100 0 0FACILITY ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY 1 101 0.794 79.395 1 101 0 0 0 0 2 100 0.487 49.13
6、5 1 0 0 0 0 0QUEUE MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME AVE.(-0) RETRY 1 1 0 101 101 0.000 0.000 0.000 0 2 1 0 100 100 0.000 0.000 0.000 0FEC XN PRI BDT ASSEM CURRENT NEXT PARAMETER VALUE 101 0 10169.223 101 5 6 102 0 10192.706 102 0 1(4)题目答案加油站的利用率:79.4% ,交费窗口的利用率:48.7%加油的平均等候时间:79.395秒,交费的平
7、均等候时间:49.135秒3.并联排队系统的模拟(一)(1)题目 如果在2中所模拟的加油站中有两台效率相同的加油器,而加油的汽车排一个队(交费环节略)。通过实验来求解各个加油器的利用率和汽车的平均等候时间。图4.3 (2)程序SIMULATELINE EQU 1FA1 EQU 1FA2 EQU 2 GENERATE 40,10 QUEUE LINE TRANSFER BOTH,FA1D,FA2D FA1D SEIZE FA1 DEPART LINE ADVANCE 80,8 RELEASE FA1 TERMINATE 1FA2D SEIZE FA2 DEPART LINE ADVANCE 80
8、,8 RELEASE FA2 TERMINATE 1 START 100(3)输出报告 GPSS World Simulation Report - Untitled Model 3.1.1 Wednesday, April 30, 2014 16:52:29 START TIME END TIME BLOCKS FACILITIES STORAGES 0.000 4130.746 13 2 0 NAME VALUE FA1 1.000 FA1D 4.000 FA2 2.000 FA2D 9.000 LINE 1.000LABEL LOC BLOCK TYPE ENTRY COUNT CURR
9、ENT COUNT RETRY 1 GENERATE 103 0 0 2 QUEUE 103 0 0 3 TRANSFER 103 2 0FA1D 4 SEIZE 51 0 0 5 DEPART 51 0 0 6 ADVANCE 51 1 0 7 RELEASE 50 0 0 8 TERMINATE 50 0 0FA2D 9 SEIZE 50 0 0 10 DEPART 50 0 0 11 ADVANCE 50 0 0 12 RELEASE 50 0 0 13 TERMINATE 50 0 0FACILITY ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND
10、INTER RETRY DELAY FA1 51 0.985 79.772 1 101 0 0 2 0 FA2 50 0.970 80.138 1 0 0 0 2 0QUEUE MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME AVE.(-0) RETRY LINE 3 2 103 11 1.000 40.087 44.881 0CEC XN PRI M1 ASSEM CURRENT NEXT PARAMETER VALUE 102 0 4071.136 102 3 3 103 0 4106.929 103 3 3FEC XN PRI BDT ASSEM
11、CURRENT NEXT PARAMETER VALUE 104 0 4153.704 104 0 1 101 0 4179.538 101 6 7(4)题目答案 加油器FA1的利用率:98.5%,汽车FA1D平均等候时间:79.772秒 加油器FA2的利用率:97%,汽车FA2D平均等候时间:80.138秒(二)(1)题目 对于例2(一)的系统除将加油器作为设施处理外,我们还可将加油器作为存储器来对待。因为有两台加油器,所以存储器的容量定义为2,名称标号定义为S_1。图4.4(2)程序 SIMULATELINE EQU 1S_1 EQU 1S_1 STORAGE 2 GENERATE 40,
12、10 QUEUE LINE ENTER S_1 DEPART LINE ADVANCE 80,8 LEAVE S_1 TERMINATE 1 START 100(3)输出报告 GPSS World Simulation Report - Untitled Model 4.1.1 Wednesday, April 30, 2014 17:10:45 START TIME END TIME BLOCKS FACILITIES STORAGES 0.000 4130.746 7 0 1 NAME VALUE LINE 1.000 S_1 1.000LABEL LOC BLOCK TYPE ENTRY
13、 COUNT CURRENT COUNT RETRY 1 GENERATE 103 0 0 2 QUEUE 103 1 0 3 ENTER 102 1 0 4 DEPART 101 0 0 5 ADVANCE 101 1 0 6 LEAVE 100 0 0 7 TERMINATE 100 0 0QUEUE MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME AVE.(-0) RETRY LINE 3 2 103 11 1.000 40.087 44.881 0STORAGE CAP. REM. MIN. MAX. ENTRIES AVL. AVE.C. UT
14、IL. RETRY DELAY S_1 2 0 0 2 102 1 1.955 0.977 0 1CEC XN PRI M1 ASSEM CURRENT NEXT PARAMETER VALUE 102 0 4071.136 102 3 4FEC XN PRI BDT ASSEM CURRENT NEXT PARAMETER VALUE 104 0 4153.704 104 0 1 101 0 4179.538 101 5 6(4)题目答案 存储器的利用率:97.7%,汽车平均等候时间:40.078秒 4.具有两个入口的加油站(一)(1)题目与上述两例的系统相似,是一个具有两个入口的加油站,两
15、个入口可同时进车,但是只站一队等候,下面给出模拟程序清单,图4.5为本系统的示意图: (2)程序清单SIMULATELINE EQU 1S_1 EQU 1S_1 STORAGE 2 GENERATE 80,10 QUEUE LINE ENTER S_1 DEPART LINE ADVANCE 80,8 LEAVE S_1 TERMINATE 1 GENERATE 80,10 QUEUE LINE ENTER S_1 DEPART LINE ADVANCE 80,8 LEAVE S_1 TERMINATE 1 START 100(3)输出报告 GPSS World Simulation Repo
16、rt - Untitled Model 5.1.1 Wednesday, April 30, 2014 17:18:28 START TIME END TIME BLOCKS FACILITIES STORAGES 0.000 4140.752 14 0 1 NAME VALUE LINE 1.000 S_1 1.000LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY 1 GENERATE 51 0 0 2 QUEUE 51 0 0 3 ENTER 51 0 0 4 DEPART 51 0 0 5 ADVANCE 51 1 0 6 LEA
17、VE 50 0 0 7 TERMINATE 50 0 0 8 GENERATE 51 0 0 9 QUEUE 51 0 0 10 ENTER 51 1 0 11 DEPART 50 0 0 12 ADVANCE 50 0 0 13 LEAVE 50 0 0 14 TERMINATE 50 0 0QUEUE MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME AVE.(-0) RETRY LINE 2 1 102 17 0.348 14.130 16.956 0STORAGE CAP. REM. MIN. MAX. ENTRIES AVL. AVE.C. UT
18、IL. RETRY DELAY S_1 2 0 0 2 102 1 1.941 0.970 0 0CEC XN PRI M1 ASSEM CURRENT NEXT PARAMETER VALUE 102 0 4127.336 102 10 11FEC XN PRI BDT ASSEM CURRENT NEXT PARAMETER VALUE 103 0 4149.486 103 0 1 101 0 4188.317 101 5 6 104 0 4214.111 104 0 8(4)题目答案存储器的利用效率:97%,队列的平均等待时间:14.130比较: 上述例子4.4程序中有6条模块是重复的,
19、下面给出将此6个模块合并在一起的程序清单及其运行结果:(1)程序 SIMULATELINE EQU 1S_1 EQU 1S_1 STORAGE 2 GENERATE 80,10 TRANSFER ,QU GENERATE 80,10QU QUEUE LINE ENTER S_1 DEPART LINE ADVANCE 80,8 LEAVE S_1 TERMINATE 1 START 100(2)输出报告 GPSS World Simulation Report - Untitled Model 6.1.1 Wednesday, April 30, 2014 17:27:03 START TIM
20、E END TIME BLOCKS FACILITIES STORAGES 0.000 4140.752 9 0 1 NAME VALUE LINE 1.000 QU 4.000 S_1 1.000LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY 1 GENERATE 51 0 0 2 TRANSFER 51 0 0 3 GENERATE 51 0 0QU 4 QUEUE 102 0 0 5 ENTER 102 1 0 6 DEPART 101 0 0 7 ADVANCE 101 1 0 8 LEAVE 100 0 0 9 TERMINA
21、TE 100 0 0QUEUE MAX CONT. ENTRY ENTRY(0) AVE.CONT. AVE.TIME AVE.(-0) RETRY LINE 2 1 102 17 0.348 14.130 16.956 0STORAGE CAP. REM. MIN. MAX. ENTRIES AVL. AVE.C. UTIL. RETRY DELAY S_1 2 0 0 2 102 1 1.941 0.970 0 0CEC XN PRI M1 ASSEM CURRENT NEXT PARAMETER VALUE 102 0 4127.336 102 5 6FEC XN PRI BDT ASS
22、EM CURRENT NEXT PARAMETER VALUE 103 0 4149.486 103 0 1 101 0 4188.317 101 7 8 104 0 4214.111 104 0 35.传输带上质量检查模拟,请做模拟实验,使漏检的零件数量尽可能少(1)题目 若加工后的零件放在传输带上运输,零件到达第一个检查员及每个检查员之间需要输送2分钟,通过模拟分析每个检查员的工作情况,有多少个零件在通过第3个检查员后仍然检查不到?图4.6是这一系统的示意图,下面给出程序清单及运行结果。(2)程序 GENERATE 5 ADVANCE 2 TRANSFER BOTH,NET1,CON1 N
23、ET1 SEIZE 1 ADVANCE 12,9 RELEASE 1 TERMINATE 1 CON1 ADVANCE 2 TRANSFER BOTH,NET2,CON2 NET2 SEIZE 2 ADVANCE 12,9 RELEASE 2 TERMINATE 1 CON2 ADVANCE 2 TRANSFER BOTH,NET3,CON3 NET3 SEIZE 3 ADVANCE 12,9 RELEASE 3 TERMINATE 1 CON3 TERMINATE 1 START 10,NP RESET START 1000(3)输出报告 GPSS World Simulation Repo
24、rt - Untitled Model 1.3.1 Wednesday, April 30, 2014 17:28:03 START TIME END TIME BLOCKS FACILITIES STORAGES 67.075 5066.335 20 3 0 NAME VALUE CON1 8.000 CON2 14.000 CON3 20.000 NET1 4.000 NET2 10.000 NET3 16.000 LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY 1 GENERATE 1000 0 0 2 ADVANCE 1000
25、1 0 3 TRANSFER 999 0 0NET1 4 SEIZE 345 0 0 5 ADVANCE 345 0 0 6 RELEASE 345 0 0 7 TERMINATE 345 0 0CON1 8 ADVANCE 655 0 0 9 TRANSFER 655 0 0NET2 10 SEIZE 300 0 0 11 ADVANCE 301 1 0 12 RELEASE 300 0 0 13 TERMINATE 300 0 0CON2 14 ADVANCE 355 0 0 15 TRANSFER 355 0 0 START TIME END TIME BLOCKS FACILITIES
26、 STORAGES 67.075 5066.335 20 3 0 LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY NET3 16 SEIZE 230 0 0 17 ADVANCE 231 1 0 18 RELEASE 230 0 0 19 TERMINATE 230 0 0CON3 20 TERMINATE 125 0 0FACILITY ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY 1 345 0.833 12.064 1 0 0 0 0 0 2 301 0.7
27、29 12.107 1 1011 0 0 0 0 3 231 0.525 11.360 1 1010 0 0 0 0FEC XN PRI BDT ASSEM CURRENT NEXT PARAMETER VALUE 1013 0 5067.000 1013 2 3 1014 0 5070.000 1014 0 1 1010 0 5074.067 1010 17 18 1011 0 5076.193 1011 11 12(4)题目答案关于3个检查员的工作情况可以从关于设施的模拟结果报告中看到:1号检查员利用率为83.3%,2号检查员利用率为72.9%,3号检查员利用率为52.5%。虽然有125个
28、零件没有受到检查,但是第3号检查员的利用率仅为52.5%,其中一个原因可能是由于设置了运行时间为2分钟所致。(5)改进:可以延长零件到达每个检查员的时间,将2分钟改为5分钟。程序清单如下:GENERATE 5 ADVANCE 5 TRANSFER BOTH,NET1,CON1NET1 SEIZE 1 ADVANCE 12,9 RELEASE 1 TERMINATE 1CON1 ADVANCE 5 TRANSFER BOTH,NET2,CON2NET2 SEIZE 2 ADVANCE 12,9 RELEASE 2 TERMINATE 1CON2 ADVANCE 5 TRANSFER BOTH,N
29、ET3,CON3NET3 SEIZE 3 ADVANCE 12,9 RELEASE 3 TERMINATE 1CON3 TERMINATE 1 START 10,NP RESET START 1000标准输出如下: GPSS World Simulation Report - Untitled Model 1.3.1 Wednesday, April 30, 2014 17:29:03 START TIME END TIME BLOCKS FACILITIES STORAGES 66.281 5069.784 20 3 0 NAME VALUE CON1 8.000 CON2 14.000 CON3 20.000 NET1 4.000 NET2 10.000 NET3 16.000 LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY 1 GENERATE 1000 0 0 2 ADVANCE 1001 1 0 3 TRANSFER 1000 0 0NET1 4 SE
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1