Краткое практическое руководство по GPSS



             

"Пример моделирования 2А. Система с одним прибором и очередью " - часть 3


Какие меры следует предпринять, чтобы сделать вывод более точным? Рис. 2А.1. Блок-схема для примера моделирования 2А

Рис. 2А.2.Пример моделирования 2A. Модель и распечатка программы:
а -заполненный бланк для перфорации модели;
б - распечатка программы для модели, представленной в части а. На бланке показаны поля имени (LOCATION), операции (OPERATION) и операндов (помечено символами А, В, С, D,Е, F, G). На распечатке поле имени отмечено символами * LOC.
а)

LOCATION&nbspOPERATIONA,B,C,D,E,F ------------------------>
1234567891 01 11 21 31 41 51 61 71 81 92 02 12 22 32 42 52 62 72 82 93 03 13 23 33 43 53 63 73 83 94 04 14 24 34 44 54 6
&nbsp&nbsp&nbsp&nbsp&nbspSIMULATE&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
*&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
*&nbsp&nbsp&nbsp&nbspMODEL&nbspSEGMENT&nbsp1&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
*&nbsp&nbsp&nbsp&nbspGENERATE&nbsp18,6&nbspПРИХОД&nbspКЛИЕНТОВ&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp&nbspQUEUE&nbsp&nbsp&nbsp&nbspJOEQ&nbspПРИСОЕДИНЕНИЕ&nbspК&nbspОЧЕРЕДИ&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp&nbspSEIZE&nbsp&nbsp&nbsp&nbspJOE&nbsp&nbspПРИХОД&nbspВ&nbspКРЕСЛО&nbspПАРИКМАХЕРА
&nbsp&nbsp&nbsp&nbsp&nbspDEPART&nbsp&nbsp&nbspJOEQ&nbspУХОД&nbspИЗ&nbspОЧЕРЕДИ&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp&nbspADVANCE&nbsp&nbsp16,4&nbspОБСЛУЖИВАНИЕ&nbspУ&nbspПАРИКМАХЕРА&nbsp
&nbsp&nbsp&nbsp&nbsp&nbspRELEASE&nbsp&nbspJOE&nbsp&nbspОСВОБОЖДЕНИЕ&nbspПАРИКМАХЕРА&nbsp&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp&nbspTERMINATE&nbsp&nbsp&nbsp&nbsp&nbspУХОД&nbspИЗ&nbspПАРИКМАХЕРСКОЙ&nbsp&nbsp&nbsp&nbsp&nbsp
*&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
*&nbsp&nbsp&nbsp&nbspMODEL&nbspSEGMENT&nbsp2&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&n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p&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
*&nbsp&nbsp&nbsp&nbspSTART&nbsp1&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp&nbspEND&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
б)
BLOCK NUMBER *LOG OPERATION A,B,C,D,E,F,G COMMENTS SIMULATE * * MODEL SEGMENT 2 * 1 GENERATE 460 TIMER ARRIVES AT TIME 460 2 TERMINATE 1 SMUT OFF THE RUN * * MODEL SEGMENT 1 * 3 GENERATE 16,6 CUSTOMERS ARRIVE 4 QUEUE JOEQ ENTER THE LINE 5 SEIZE JOE CAPTURE THE BARBER 6 DEPART JOEQ LEAVE THE LINE 7 ADVANCE 16,4 USE THE BARBER 8 RELEASE JOE FREE THE BARBER 9 TERMINATE LEAVE THE SHOP * * CONTROL CARDS * START 1 START THE RUN END RETURN CONTROL TO OPERATING SYSTEM

Рис. 2А.3. Часть распечатки примера моделирования 2А:



Содержание  Назад  Вперед