Главная / Моделирование систем / Отчет по лабораторной работе №7 «система имитационного моделирования gpss/h»

Отчет по лабораторной работе №7 «система имитационного моделирования gpss/h»

1. Схемы модели:

2. Текст программы:

SIMULATE

INTEGER &KOL,&ZATR,&PLATA,&OPTKOL

REAL &INT,&PRIB,&PUAS,&MAXPRIB

LET &MAXPRIB=0

PUTPIC LINES=1

VVEDITE PLATU ZA MINUTU RAB KANALA SVAZI:

GETLIST &PLATA

PUTPIC LINES=1

VVEDITE ZATRATY NA SODERJ 1 KANALA:

GETLIST &ZATR

PUTPIC LINES=1

VVEDITE INTENSIVNOST VHOD POTOKA:

GETLIST &INT

DO &KOL=1,6

CLEAR

RMULT 5,10

BUF STORAGE 10

SPD STORAGE &KOL

LET &PUAS=(1/&INT)*60

START 1

LET &PRIB=XL$PRIBUL

IF &PRIB>&MAXPRIB

LET &MAXPRIB=&PRIB

LET &OPTKOL=&KOL

ENDIF

ENDDO

PUTPIC LINES=2,&OPTKOL,&MAXPRIB

OPT KOL:**

MAX PRIB:*****.**

GENERATE RVEXPO(1,&PUAS),,,,,1PL

ASSIGN 1,RVNORM(2,40,5),PL

GATE SNF BUF, MET1

ENTER BUF

ENTER SPD

ADVANCE PL1

LEAVE SPD

LEAVE BUF

SAVEVALUE PRIBUL+,(&PLATA*PL1)/60,XL

SAVEVALUE RESHZAD+,1,XH

TRANSFER, KON

MET1 SAVEVALUE OTKAZ+,1,XH

KON TERMINATE

GENERATE 36000

SAVEVALUE PRIBUL-,&KOL*&ZATR*10

TERMINATE 1

END

2. Вывод: в результате мы определили количество каналов связи при котором прибыль владельца будет максимальной. Оно равно 3.

3. Результаты моделирования:

1 конал связи

—AVG-UTIL-DURING—

STORAGE TOTAL AVAIL UNAVL ENTRIES AVERAGE CURRENT PERCENT CAPACITY AVERAGE CURRENT MAXIMUM

TIME TIME TIME TIME/UNIT STATUS AVAIL CONTENTS CONTENTS CONTENTS

BUF 0.809 896 325.230 AVAIL 100.0 10 8.095 9 10

SPD 0.995 888 40.327 AVAIL 100.0 1 0.995 1 1

NON-ZERO FULLWORD SAVEVALUES: (NAME : VALUE)

PRIBUL: -200

NON-ZERO HALFWORD SAVEVALUES: (NAME : VALUE)

RESHZAD: 887, OTKAZ: 273

NON-ZERO FLOATING POINT SAVEVALUES: (NAME : VALUE)

PRIBUL: 2983.0553

2 конала связи

—AVG-UTIL-DURING—

STORAGE TOTAL AVAIL UNAVL ENTRIES AVERAGE CURRENT PERCENT CAPACITY AVERAGE CURRENT MAXIMUM

TIME TIME TIME TIME/UNIT STATUS AVAIL CONTENTS CONTENTS CONTENTS

BUF 0.182 1169 55.965 AVAIL 100.0 10 1.817 5 8

SPD 0.652 1166 40.240 AVAIL 100.0 2 1.303 2 2

NON-ZERO FULLWORD SAVEVALUES: (NAME : VALUE)

PRIBUL: -400

NON-ZERO HALFWORD SAVEVALUES: (NAME : VALUE)

RESHZAD: 1164

NON-ZERO FLOATING POINT SAVEVALUES: (NAME : VALUE)

PRIBUL: 3905.7398

3 конала связи

—AVG-UTIL-DURING—

STORAGE TOTAL AVAIL UNAVL ENTRIES AVERAGE CURRENT PERCENT CAPACITY AVERAGE CURRENT MAXIMUM

TIME TIME TIME TIME/UNIT STATUS AVAIL CONTENTS CONTENTS CONTENTS

BUF 0.139 1169 42.743 AVAIL 100.0 10 1.388 1 7

SPD 0.436 1169 40.264 AVAIL 100.0 3 1.307 1 3

NON-ZERO FULLWORD SAVEVALUES: (NAME : VALUE)

PRIBUL: -600

NON-ZERO HALFWORD SAVEVALUES: (NAME : VALUE)

RESHZAD: 1168

NON-ZERO FLOATING POINT SAVEVALUES: (NAME : VALUE)

PRIBUL: 3918.6709

4 конала связи

—AVG-UTIL-DURING—

STORAGE TOTAL AVAIL UNAVL ENTRIES AVERAGE CURRENT PERCENT CAPACITY AVERAGE CURRENT MAXIMUM

TIME TIME TIME TIME/UNIT STATUS AVAIL CONTENTS CONTENTS CONTENTS

BUF 0.132 1169 40.750 AVAIL 100.0 10 1.323 1 7

SPD 0.327 1169 40.264 AVAIL 100.0 4 1.307 1 4

NON-ZERO FULLWORD SAVEVALUES: (NAME : VALUE)

PRIBUL: -800

NON-ZERO HALFWORD SAVEVALUES: (NAME : VALUE)

RESHZAD: 1168

NON-ZERO FLOATING POINT SAVEVALUES: (NAME : VALUE)

PRIBUL: 3918.6709

5 конала связи

—AVG-UTIL-DURING—

STORAGE TOTAL AVAIL UNAVL ENTRIES AVERAGE CURRENT PERCENT CAPACITY AVERAGE CURRENT MAXIMUM

TIME TIME TIME TIME/UNIT STATUS AVAIL CONTENTS CONTENTS CONTENTS

BUF 0.131 1169 40.349 AVAIL 100.0 10 1.310 1 7

SPD 0.261 1169 40.264 AVAIL 100.0 5 1.307 1 5

NON-ZERO FULLWORD SAVEVALUES: (NAME : VALUE)

PRIBUL: -1000

NON-ZERO HALFWORD SAVEVALUES: (NAME : VALUE)

RESHZAD: 1168

NON-ZERO FLOATING POINT SAVEVALUES: (NAME : VALUE)

PRIBUL: 3918.6709

6 конала связи

—AVG-UTIL-DURING—

STORAGE TOTAL AVAIL UNAVL ENTRIES AVERAGE CURRENT PERCENT CAPACITY AVERAGE CURRENT MAXIMUM

TIME TIME TIME TIME/UNIT STATUS AVAIL CONTENTS CONTENTS CONTENTS

BUF 0.131 1169 40.265 AVAIL 100.0 10 1.308 1 7

SPD 0.218 1169 40.264 AVAIL 100.0 6 1.307 1 6

NON-ZERO FULLWORD SAVEVALUES: (NAME : VALUE)

PRIBUL: -1200

NON-ZERO HALFWORD SAVEVALUES: (NAME : VALUE)

RESHZAD: 1168

NON-ZERO FLOATING POINT SAVEVALUES: (NAME : VALUE)

PRIBUL: 3918.6709