管理系统模拟作业.docx
《管理系统模拟作业.docx》由会员分享,可在线阅读,更多相关《管理系统模拟作业.docx(83页珍藏版)》请在冰豆网上搜索。
![管理系统模拟作业.docx](https://file1.bdocx.com/fileroot1/2023-6/20/4aabfa96-1018-41b8-9ea0-57b199a89863/4aabfa96-1018-41b8-9ea0-57b199a898631.gif)
管理系统模拟作业
管理系统模拟作业
第一次上机作业
1.自己输入完整的单窗口排队系统GPSS模拟程序,并运行
(1)程序:
SIMULATE
LINEEQU1
JOEEQU1
GENERATE18,6
QUEUELINE
SEIZEJOE
DEPARTLINE
ADVANCE16,4
RELEASEJOE
TERMINATE1
START25
(2)输出报告
GPSSWorldSimulationReport-UntitledModel1.2.1
Wednesday,April30,201416:
22:
42
STARTTIMEENDTIMEBLOCKSFACILITIESSTORAGES
0.000466.570710
NAMEVALUE
JOE1.000
LINE1.000
LABELLOCBLOCKTYPEENTRYCOUNTCURRENTCOUNTRETRY
1GENERATE2500
2QUEUE2500
3SEIZE2500
4DEPART2500
5ADVANCE2500
6RELEASE2500
7TERMINATE2500
FACILITYENTRIESUTIL.AVE.TIMEAVAIL.OWNERPENDINTERRETRYDELAY
JOE250.86016.057100000
2.单窗口串联排队系统的模拟
(1)题目
某汽车加油站只有一台加油器,加油的汽车到达间隔时间为均匀分布,均值为100秒,方差为10秒。
到达加油站后先排队等候,再加油,加油服务时间也为均匀分布,均值为80秒,方差为8秒。
加油后司机要去交费窗口排队交费,交费时间也为均匀分布,均值为50秒,方差为30秒。
求解:
(1)加油站与交费窗口的利用率;
(2)加油与交费的平均等候时间。
(2)程序
SIMULATE
GENERATE100,10
QUEUE1
SEIZE1
DEPART1
ADVANCE80,8
RELEASE1
QUEUE2
SEIZE2
DEPART2
ADVANCE50,30
RELEASE2
TERMINATE1
START100
(3)输出报告
GPSSWorldSimulationReport-UntitledModel2.1.1
Wednesday,April30,201416:
34:
15
STARTTIMEENDTIMEBLOCKSFACILITIESSTORAGES
0.00010097.6821220
LABELLOCBLOCKTYPEENTRYCOUNTCURRENTCOUNTRETRY
1GENERATE10100
2QUEUE10100
3SEIZE10100
4DEPART10100
5ADVANCE10110
6RELEASE10000
7QUEUE10000
8SEIZE10000
9DEPART10000
10ADVANCE10000
11RELEASE10000
12TERMINATE10000
FACILITYENTRIESUTIL.AVE.TIMEAVAIL.OWNERPENDINTERRETRYDELAY
11010.79479.39511010000
21000.48749.135100000
QUEUEMAXCONT.ENTRYENTRY(0)AVE.CONT.AVE.TIMEAVE.(-0)RETRY
1101011010.0000.0000.0000
2101001000.0000.0000.0000
FECXNPRIBDTASSEMCURRENTNEXTPARAMETERVALUE
101010169.22310156
102010192.70610201
(4)题目答案
加油站的利用率:
79.4%,交费窗口的利用率:
48.7%
加油的平均等候时间:
79.395秒,交费的平均等候时间:
49.135秒
3.并联排队系统的模拟
(一)
(1)题目
如果在2中所模拟的加油站中有两台效率相同的加油器,而加油的汽车排一个队(交费环节略)。
通过实验来求解各个加油器的利用率和汽车的平均等候时间。
图4.3
(2)程序
SIMULATE
LINEEQU1
FA1EQU1
FA2EQU2
GENERATE40,10
QUEUELINE
TRANSFERBOTH,FA1D,FA2D
FA1DSEIZEFA1
DEPARTLINE
ADVANCE80,8
RELEASEFA1
TERMINATE1
FA2DSEIZEFA2
DEPARTLINE
ADVANCE80,8
RELEASEFA2
TERMINATE1
START100
(3)输出报告
GPSSWorldSimulationReport-UntitledModel3.1.1
Wednesday,April30,201416:
52:
29
STARTTIMEENDTIMEBLOCKSFACILITIESSTORAGES
0.0004130.7461320
NAMEVALUE
FA11.000
FA1D4.000
FA22.000
FA2D9.000
LINE1.000
LABELLOCBLOCKTYPEENTRYCOUNTCURRENTCOUNTRETRY
1GENERATE10300
2QUEUE10300
3TRANSFER10320
FA1D4SEIZE5100
5DEPART5100
6ADVANCE5110
7RELEASE5000
8TERMINATE5000
FA2D9SEIZE5000
10DEPART5000
11ADVANCE5000
12RELEASE5000
13TERMINATE5000
FACILITYENTRIESUTIL.AVE.TIMEAVAIL.OWNERPENDINTERRETRYDELAY
FA1510.98579.77211010020
FA2500.97080.13810002
0
QUEUEMAXCONT.ENTRYENTRY(0)AVE.CONT.AVE.TIMEAVE.(-0)RETRY
LINE32103111.00040.08744.8810
CECXNPRIM1ASSEMCURRENTNEXTPARAMETERVALUE
10204071.13610233
10304106.92910333
FECXNPRIBDTASSEMCURRENTNEXTPARAMETERVALUE
10404153.70410401
10104179.53810167
(4)题目答案
加油器FA1的利用率:
98.5%,汽车FA1D平均等候时间:
79.772秒
加油器FA2的利用率:
97%,汽车FA2D平均等候时间:
80.138秒
(二)
(1)题目
对于例2
(一)的系统除将加油器作为设施处理外,我们还可将加油器作为存储器来对待。
因为有两台加油器,所以存储器的容量定义为2,名称标号定义为S_1。
图4.4
(2)程序
SIMULATE
LINEEQU1
S_1EQU1
S_1STORAGE2
GENERATE40,10
QUEUELINE
ENTERS_1
DEPARTLINE
ADVANCE80,8
LEAVES_1
TERMINATE1
START100
(3)输出报告
GPSSWorldSimulationReport-UntitledModel4.1.1
Wednesday,April30,201417:
10:
45
STARTTIMEENDTIMEBLOCKSFACILITIESSTORAGES
0.0004130.746701
NAMEVALUE
LINE1.000
S_11.000
LABELLOCBLOCKTYPEENTRYCOUNTCURRENTCOUNTRETRY
1GENERATE10300
2QUEUE10310
3ENTER10210
4DEPART10100
5ADVANCE10110
6LEAVE10000
7TERMINATE10000
QUEUEMAXCONT.ENTRYENTRY(0)AVE.CONT.AVE.TIMEAVE.(-0)RETRY
LINE32103111.00040.08744.8810
STORAGECAP.REM.MIN.MAX.ENTRIESAVL.AVE.C.UTIL.RETRYDELAY
S_1200210211.9550.97701
CECXNPRIM1ASSEMCURRENTNEXTPARAMETERVALUE
10204071.13610234
FECXNPRIBDTASSEMCURRENTNEXTPARAMETERVALUE
10404153.70410401
10104179.53810156
(4)题目答案
存储器的利用率:
97.7%,汽车平均等候时间:
40.078秒
4.具有两个入口的加油站
(一)
(1)题目
与上述两例的系统相似,是一个具有两个入口的加油站,两个入口可同时进车,但是只站一队等候,下面给出模拟程序清单,图4.5为本系统的示意图:
(2)程序清单
SIMULATE
LINEEQU1
S_1EQU1
S_1STORAGE2
GENERATE80,10
QUEUELINE
ENTERS_1
DEPARTLINE
ADVANCE80,8
LEAVES_1
TERMINATE1
GENERATE80,10
QUEUELINE
ENTERS_1
DEPARTLINE
ADVANCE80,8
LEAVES_1
TERMINATE1
START100
(3)输出报告
GPSSWorldSimulationReport-UntitledModel5.1.1
Wednesday,April30,201417:
18:
28
STARTTIMEENDTIMEBLOCKSFACILITIESSTORAGES
0.0004140.7521401
NAMEVALUE
LINE1.000
S_11.000
LABELLOCBLOCKTYPEENTRYCOUNTCURRENTCOUNTRETRY
1GENERATE5100
2QUEUE5100
3ENTER5100
4DEPART5100
5ADVANCE5110
6LEAVE5000
7TERMINATE5000
8GENERATE5100
9QUEUE5100
10ENTER5110
11DEPART5000
12ADVANCE5000
13LEAVE5000
14TERMINATE5000
QUEUEMAXCONT.ENTRYENTRY(0)AVE.CONT.AVE.TIMEAVE.(-0)RETRY
LINE21102170.34814.13016.9560
STORAGECAP.REM.MIN.MAX.ENTRIESAVL.AVE.C.UTIL.RETRYDELAY
S_1200210211.9410.97000
CECXNPRIM1ASSEMCURRENTNEXTPARAMETERVALUE
10204127.3361021011
FECXNPRIBDTASSEMCURRENTNEXTPARAMETERVALUE
10304149.48610301
10104188.31710156
10404214.11110408
(4)题目答案
存储器的利用效率:
97%,队列的平均等待时间:
14.130
比较:
上述例子4.4程序中有6条模块是重复的,下面给出将此6个模块合并在一起的程序清单及其运行结果:
(1)程序
SIMULATE
LINEEQU1
S_1EQU1
S_1STORAGE2
GENERATE80,10
TRANSFER,QU
GENERATE80,10
QUQUEUELINE
ENTERS_1
DEPARTLINE
ADVANCE80,8
LEAVES_1
TERMINATE1
START100
(2)输出报告
GPSSWorldSimulationReport-UntitledModel6.1.1
Wednesday,April30,201417:
27:
03
STARTTIMEENDTIMEBLOCKSFACILITIESSTORAGES
0.0004140.752901
NAMEVALUE
LINE1.000
QU4.000
S_11.000
LABELLOCBLOCKTYPEENTRYCOUNTCURRENTCOUNTRETRY
1GENERATE5100
2TRANSFER5100
3GENERATE5100
QU4QUEUE10200
5ENTER10210
6DEPART10100
7ADVANCE10110
8LEAVE10000
9TERMINATE10000
QUEUEMAXCONT.ENTRYENTRY(0)AVE.CONT.AVE.TIMEAVE.(-0)RETRY
LINE21102170.34814.13016.9560
STORAGECAP.REM.MIN.MAX.ENTRIESAVL.AVE.C.UTIL.RETRYDELAY
S_1200210211.9410.97000
CECXNPRIM1ASSEMCURRENTNEXTPARAMETERVALUE
10204127.33610256
FECXNPRIBDTASSEMCURRENTNEXTPARAMETERVALUE
10304149.48610301
10104188.31710178
10404214.11110403
5.传输带上质量检查模拟,请做模拟实验,使漏检的零件数量尽可能少
(1)题目
若加工后的零件放在传输带上运输,零件到达第一个检查员及每个检查员之间需要输送2分钟,通过模拟分析每个检查员的工作情况,有多少个零件在通过第3个检查员后仍然检查不到?
图4.6是这一系统的示意图,下面给出程序清单及运行结果。
(2)程序
GENERATE5
ADVANCE2
TRANSFERBOTH,NET1,CON1
NET1SEIZE1
ADVANCE12,9
RELEASE1
TERMINATE1
CON1ADVANCE2
TRANSFERBOTH,NET2,CON2
NET2SEIZE2
ADVANCE12,9
RELEASE2
TERMINATE1
CON2ADVANCE2
TRANSFERBOTH,NET3,CON3
NET3SEIZE3
ADVANCE12,9
RELEASE3
TERMINATE1
CON3TERMINATE1
START10,NP
RESET
START1000
(3)输出报告
GPSSWorldSimulationReport-UntitledModel1.3.1
Wednesday,April30,201417:
28:
03
STARTTIMEENDTIMEBLOCKSFACILITIESSTORAGES
67.0755066.3352030
NAMEVALUE
CON18.000
CON214.000
CON320.000
NET14.000
NET210.000
NET316.000
LABELLOCBLOCKTYPEENTRYCOUNTCURRENTCOUNTRETRY
1GENERATE100000
2ADVANCE100010
3TRANSFER99900
NET14SEIZE34500
5ADVANCE34500
6RELEASE34500
7TERMINATE34500
CON18ADVANCE65500
9TRANSFER65500
NET210SEIZE30000
11ADVANCE30110
12RELEASE30000
13TERMINATE30000
CON214ADVANCE35500
15TRANSFER35500
STARTTIMEENDTIMEBLOCKSFACILITIESSTORAGES
67.0755066.3352030
LABELLOCBLOCKTYPEENTRYCOUNTCURRENTCOUNTRETRY
NET316SEIZE23000
17ADVANCE23110
18RELEASE23000
19TERMINATE23000
CON320TERMINATE12500
FACILITYENTRIESUTIL.AVE.TIMEAVAIL.OWNERPENDINTERRETRYDELAY
13450.83312.064100000
23010.72912.107110110000
32310.52511.360110100000
FECXNPRIBDTASSEMCURRENTNEXTPARAMETERVALUE
101305067.000101323
101405070.000101401
101005074.06710101718
101105076.19310111112
(4)题目答案
关于3个检查员的工作情况可以从关于设施的模拟结果报告中看到:
1号检查员利用率为83.3%,2号检查员利用率为72.9%,3号检查员利用率为52.5%。
虽然有125个零件没有受到检查,但是第3号检查员的利用率仅为52.5%,其中一个原因可能是由于设置了运行时间为2分钟所致。
(5)改进:
可以延长零件到达每个检查员的时间,将2分钟改为5分钟。
程序清单如下:
GENERATE5
ADVANCE5
TRANSFERBOTH,NET1,CON1
NET1SEIZE1
ADVANCE12,9
RELEASE1
TERMINATE1
CON1ADVANCE5
TRANSFERBOTH,NET2,CON2
NET2SEIZE2
ADVANCE12,9
RELEASE2
TERMINATE1
CON2ADVANCE5
TRANSFERBOTH,NET3,CON3
NET3SEIZE3
ADVANCE12,9
RELEASE3
TERMINATE1
CON3TERMINATE1
START10,NP
RESET
START1000
标准输出如下:
GPSSWorldSimulationReport-UntitledModel1.3.1
Wednesday,April30,201417:
29:
03
STARTTIMEENDTIMEBLOCKSFACILITIESSTORAGES
66.2815069.7842030
NAMEVALUE
CON18.000
CON214.000
CON320.000
NET14.000
NET210.000
NET316.000
LABELLOCBLOCKTYPEENTRYCOUNTCURRENTCOUNTRETRY
1GENERATE100000
2ADVANCE100110
3TRANSFER100000
NET14SE