Система без потерь. Граф переходов системы. Программа имитационного моделирования. Система дифференциальных уравнений, страница 6

MET3      TEST E   (F1&F2&F3&~F4|F1&F2&~F3&F4|F1&~F2&F3&F4|~F1&F2&F3&F4),1,MET5

SAVEVALUE   3+,1; три процессора работают

MET5      TEST E   ((F1&F2&F3&F4)&(Q1=1)),1,MET6

SAVEVALUE   5+,1; ЧЕТЫРЕ процессора работают, ОЧЕРЕДЬ РАВНА 1

MET6      TEST E   ((F1&F2&F3&F4)&(Q1=2)),1,MET7

SAVEVALUE   6+,1; ЧЕТЫРЕ процессора работают, ОЧЕРЕДЬ РАВНА 2

MET7 QUEUE 5

QUEUE 1

TRANSFER   ALL,CPU1,CPU4,5

**************************************

CPU1             SEIZE 1

DEPART  1

advance           (Exponential(2,0,(1/MU_)))

release            1

transfer   ,work

**************************************

CPU2              SEIZE            2

DEPART  1

advance          (Exponential(2,0,(1/MU_)))

release  2

transfer   ,work

**************************************

CPU3               SEIZE           3

DEPART  1

advance         (Exponential(2,0,(1/MU_)))

release           3

transfer   ,work

**************************************

CPU4               SEIZE           4

DEPART  1

advance         (Exponential(2,0,(1/MU_)))

release           4

transfer   ,work

**************************************

work DEPART  5

terminate ; Обработаны

**************************************

GENERATE  5000

SAVEVALUE  P_0,(x10/n1)

SAVEVALUE  P_1,(x1/n1)

SAVEVALUE  P_2,(x2/n1)

SAVEVALUE  P_3,(x3/n1)

SAVEVALUE  P_4,(x4/n1)

SAVEVALUE  P_5,(x5/n1)

SAVEVALUE  P_6,(x6/n1)

SAVEVALUE P_00,(X$P_0+X$P_1+X$P_2+X$P_3)

SAVEVALUE P_SUM,(X$P_0+X$P_1+X$P_2+X$P_3+X$P_4+X$P_5+X$P_6)

SAVEVALUE RE_,(0.034#x$P_0)

SAVEVALUE  W_,(L_/MU_)

SAVEVALUE  T_och,(X$RE_/L_)

SAVEVALUE K_,(X$W_+X$RE_)

SAVEVALUE  T_sys,(X$K_/L_)

terminate         1         

START           1

Стандартный отчет

GPSS World Simulation Report - Untitled Model 1.27.1

Monday, December 01, 2008 02:30:37 

START TIME           END TIME  BLOCKS  FACILITIES  STORAGES

0.000           5000.000    57        4          0

NAME                       VALUE 

CPU1                           20.000

CPU2                           25.000

CPU3                           30.000

CPU4                           35.000

K_                          10014.000

L_                              2.000

MET1                            7.000

MET2                            9.000

MET3                           11.000

MET4                            5.000

MET5                           13.000

MET6                           15.000

MET7                           17.000

MU_                             1.800

P_0                         10002.000

P_00                        10009.000

P_1                         10003.000

P_2                         10004.000

P_3                         10005.000

P_4                         10006.000

P_5                         10007.000

P_6                         10008.000

P_SUM                       10010.000

RE_                         10011.000

T_OCH                       10013.000

T_SYS                       10015.000

WORK                           40.000

W_                          10012.000

LABEL              LOC  BLOCK TYPE     ENTRY COUNT CURRENT COUNT RETRY

1    GENERATE          9879             0       0

2    TEST              9879             0       0

3    SAVEVALUE          211             0       0

4    TERMINATE          211             0       0

MET4                5    TEST              9668             0       0

6    SAVEVALUE         3243             0       0

MET1                7    TEST              9668             0       0

8    SAVEVALUE         3621             0       0

MET2                9    TEST              9668             0       0

10    SAVEVALUE         2038             0       0

MET3               11    TEST              9668             0       0

12    SAVEVALUE          766             0       0