Смекни!
smekni.com

Моделирование и исследование обрабатывающего участка цеха, производящего обработку деталей (стр. 2 из 4)

2.3 Текст программы на GPSS

TAUEQU 10

ZADEL EQU 3

OHE EQU 20

KRIT VARIABLE (2#N$ABC1+2#N$ABC2)-2#N$OTH-0.5#X$PROST-1#N$OTK

NORM1 VARIABLE (NORMAL(1,40,5))

NORM2 VARIABLE (NORMAL(1,60,10))

ERL3 VARIABLE (GAMMA(1,0,TAU, 3))

RAVNOM VARIABLE (UNIFORM(1,80,120))

GENERATE V$ERL3

ASSIGN 1,0

GATE NU STAN1,BBB

AAA1 SEIZE STAN1

ADVANCE V$NORM1

RELEASE STAN1

UNLINK BUF1,AAA1,1

TRANSFER .04,,DDD

EEE LINK BUF2,FIFO

DDD ASSIGN 1+,1

TEST L P1,2,OTH

TRANSFER ,BBB

OTH TERMINATE

BBB GATE NU STAN2,CCC

AAA2 SEIZE STAN2

ADVANCE V$NORM2

RELEASE STAN2

UNLINK BUF1,AAA2,1

TRANSFER .08,EEE,DDD

CCC TEST L CH$BUF1,OHE,OTK

LINK BUF1,FIFO

OTK TERMINATE

GENERATE 50000

TERMINATE 1

GENERATE ,,,1

FFF MARK

TEST GE CH$BUF2,1

SAVEVALUE PROST+,M1

UNLINK BUF2,ABC1,1

ADVANCE V$RAVNOM

TRANSFER ,FFF

ABC1 TERMINATE

GENERATE ,,,1

KKK MARK

TEST G CH$BUF2,ZADEL

SAVEVALUE PROST+,M1

UNLINK BUF2,ABC2,1

ADVANCE V$RAVNOM

TRANSFER ,KKK

ABC2 TERMINATE

START1

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

Tuesday, November 09, 2010 22:22:19

START TIME END TIME BLOCKS FACILITIES STORAGES

0.000 50000.000 40 2 0

NAME VALUE

AAA1 4.000

AAA2 15.000

ABC1 32.000

ABC2 40.000

BBB 14.000

BUF1 10011.000

BUF2 10008.000

CCC 20.000

DDD 10.000

EEE 9.000

ERL3 10006.000

FFF 26.000

KKK 34.000

KRIT 10003.000

NORM1 10004.000

NORM2 10005.000

OHE 20.000

OTH 13.000

OTK 22.000

PROST 10012.000

RAVNOM 10007.000

STAN1 10009.000

STAN2 10010.000

TAU 10.000

ZADEL 3.000

LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY

1 GENERATE 1680 0 0

2 ASSIGN 1680 0 0

3 GATE 1680 0 0

AAA1 4 SEIZE 1072 0 0

5 ADVANCE 1072 0 0

6 RELEASE 1072 0 0

7 UNLINK 1072 0 0

8 TRANSFER 1072 0 0

EEE 9 LINK 1673 676 0

DDD 10 ASSIGN 111 0 0

11 TEST 111 0 0

12 TRANSFER 105 0 0

OTH 13 TERMINATE 6 0 0

BBB 14 GATE 1384 0 0

AAA2 15 SEIZE 713 0 0

16 ADVANCE 713 1 0

17 RELEASE 712 0 0

18 UNLINK 712 0 0

19 TRANSFER 712 0 0

CCC 20 TEST 1116 0 0

21 LINK 1116 0 0

OTK 22 TERMINATE 0 0 0

23 GENERATE 1 0 0

24 TERMINATE 1 0 0

25 GENERATE 1 0 0

FFF 26 MARK 500 0 0

27 TEST 500 0 0

28 SAVEVALUE 500 0 0

29 UNLINK 500 0 0

30 ADVANCE 500 1 0

31 TRANSFER 499 0 0

ABC1 32 TERMINATE 500 0 0

33 GENERATE 1 0 0

KKK 34 MARK 497 0 0

35 TEST 497 0 0

36 SAVEVALUE 497 0 0

37 UNLINK 497 0 0

38 ADVANCE 497 1 0

39 TRANSFER 496 0 0

ABC2 40 TERMINATE 497 0 0

FACILITY ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY

STAN1 1072 0.858 40.024 1 0 0 0 0 0

STAN2 713 0.855 59.991 1 1683 0 0 0 0

USER CHAIN SIZE RETRY AVE.CONT ENTRIES MAX AVE.TIME

BUF2 676 0 350.002 1673 677 10460.300

BUF1 0 0 0.663 1116 6 29.707

SAVEVALUE RETRY VALUE

PROST 0 458.701

FEC XN PRI BDT ASSEM CURRENT NEXT PARAMETER VALUE

1684 0 50009.181 1684 0 1

1683 0 50045.202 1683 16 17 1 0.000

3 0 50052.009 3 30 31

4 0 50052.368 4 38 39

1685 0 100000.000 1685 0 23

2.5 Дисперсионный анализ

Проведем дисперсионный анализ, чтобы установить, оказывает ли существенное влияние некоторый фактор F [1].

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

TAUEQU 17

ZADEL EQU 3

OHE EQU 20

KRIT VARIABLE (2#N$ABC1+2#N$ABC2)-2#N$OTH-0.5#X$PROST-1#N$OTK

NORM1 VARIABLE (NORMAL(1,40,5))

NORM2 VARIABLE (NORMAL(1,60,10))

ERL3 VARIABLE (GAMMA(1,0,TAU, 3))

RAVNOM VARIABLE (UNIFORM(1,80,120))

GENERATE V$ERL3

ASSIGN 1,0

GATE NU STAN1,BBB

AAA1 SEIZE STAN1

ADVANCE V$NORM1

RELEASE STAN1

UNLINK BUF1,AAA1,1

TRANSFER .04,,DDD

EEE LINK BUF2,FIFO

DDD ASSIGN 1+,1

TEST L P1,2,OTH

TRANSFER ,BBB

OTH TERMINATE

BBB GATE NU STAN2,CCC

AAA2 SEIZE STAN2

ADVANCE V$NORM2

RELEASE STAN2

UNLINK BUF1,AAA2,1

TRANSFER .08,EEE,DDD

CCC TEST L CH$BUF1,OHE,OTK

LINK BUF1,FIFO

OTK TERMINATE

GENERATE 50000

TERMINATE 1

GENERATE ,,,1

FFF MARK

TEST GE CH$BUF2,1

SAVEVALUE PROST+,M1

UNLINK BUF2,ABC1,1

ADVANCE V$RAVNOM

TRANSFER ,FFF

ABC1 TERMINATE

GENERATE ,,,1

KKK MARK

TEST G CH$BUF2,ZADEL

SAVEVALUE PROST+,M1

UNLINK BUF2,ABC2,1

ADVANCE V$RAVNOM

TRANSFER ,KKK

ABC2 TERMINATE

Текстовыйфайл:

RES MATRIX ,3,4

TAU EQU 10

RMULT 411

START 1,NP

MSAVEVALUE RES,1,1,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

RMULT 421

START 1,NP

MSAVEVALUE RES,1,2,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

RMULT 431

START 1,NP

MSAVEVALUE RES,1,3,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

RMULT 441

START 1,NP

MSAVEVALUE RES,1,4,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

TAU EQU 15

RMULT 411

START 1

MSAVEVALUE RES,2,1,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

RMULT 421

START 1,NP

MSAVEVALUE RES,2,2,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

RMULT 431

START 1,NP

MSAVEVALUE RES,2,3,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

RMULT 441

START 1,NP

MSAVEVALUE RES,2,4,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

TAU EQU 20

RMULT 411

START 1,NP

MSAVEVALUE RES,3,1,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

RMULT 421

START 1,NP

MSAVEVALUE RES,3,2,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

RMULT 431

START 1,NP

MSAVEVALUE RES,3,3,V$KRIT

CLEAR OFF

INITIAL X$PROST,0

RMULT 441

START 1,NP

MSAVEVALUE RES,3,4,V$KRIT

Параметр TAU равен10

Tuesday, November 09, 2010 21:19:36

START TIME END TIME BLOCKS FACILITIES STORAGES

0.000 50000.000 40 2 0

NAME VALUE

AAA1 4.000

AAA2 15.000

ABC1 32.000

ABC2 40.000

BBB 14.000

BUF1 10018.000

BUF2 10015.000

CCC 20.000

DDD 10.000

EEE 9.000

ERL3 10006.000

FFF 26.000

KKK 34.000

KRIT 10003.000

NORM1 10004.000

NORM2 10005.000

OHE 20.000

OTH 13.000

OTK 22.000

PROST 10019.000

RAVNOM 10007.000

RES 10008.000

STAN1 10016.000

STAN2 10017.000

TAU 15.000

ZADEL 3.000

LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY

1 GENERATE 1106 0 0

2 ASSIGN 1106 0 0

3 GATE 1106 0 0

AAA1 4 SEIZE 770 0 0

5 ADVANCE 770 1 0

6 RELEASE 769 0 0

7 UNLINK 769 0 0

8 TRANSFER 769 0 0

EEE 9 LINK 1103 99 0

DDD 10 ASSIGN 59 0 0

11 TEST 59 0 0

12 TRANSFER 57 0 0

OTH 13 TERMINATE 2 0 0

BBB 14 GATE 509 0 0

AAA2 15 SEIZE 393 0 0

16 ADVANCE 393 0 0

17 RELEASE 393 0 0

18 UNLINK 393 0 0

19 TRANSFER 393 0 0

CCC 20 TEST 205 0 0

21 LINK 205 0 0

OTK 22 TERMINATE 0 0 0

23 GENERATE 1 0 0

24 TERMINATE 1 0 0

25 GENERATE 1 0 0

FFF 26 MARK 498 0 0

27 TEST 498 0 0

28 SAVEVALUE 498 0 0

29 UNLINK 498 0 0

30 ADVANCE 498 1 0

31 TRANSFER 497 0 0

ABC1 32 TERMINATE 498 0 0

33 GENERATE 1 0 0

KKK 34 MARK 506 0 0

35 TEST 506 0 0

36 SAVEVALUE 506 0 0

37 UNLINK 506 0 0

38 ADVANCE 506 1 0

39 TRANSFER 505 0 0

ABC2 40 TERMINATE 506 0 0

FACILITY ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY

STAN1 770 0.607 39.406 1 1109 0 0 0 0

STAN2 393 0.472 60.067 1 0 0 0 0 0

USER CHAIN SIZE RETRY AVE.CONT ENTRIES MAX AVE.TIME

BUF2 99 0 48.897 1103 101 2216.538

BUF1 0 0 0.066 205 3 16.214

SAVEVALUE RETRY VALUE

PROST 0 361.550

FEC XN PRI BDT ASSEM CURRENT NEXT PARAMETER VALUE

1110 0 50001.385 1110 0 1

1109 0 50016.848 1109 5 6 1 0.000

3 0 50027.743 3 30 31

4 0 50079.118 4 38 39

1111 0 100000.000 1111 0 23

Параметр TAU равен17

Tuesday, November 09, 2010 21:23:40

START TIME END TIME BLOCKS FACILITIES STORAGES

0.000 50000.000 40 2 0

NAME VALUE

AAA1 4.000

AAA2 15.000

ABC1 32.000

ABC2 40.000

BBB 14.000

BUF1 10018.000

BUF2 10015.000

CCC 20.000

DDD 10.000

EEE 9.000

ERL3 10006.000

FFF 26.000

KKK 34.000

KRIT 10003.000

NORM1 10004.000

NORM2 10005.000

OHE 20.000

OTH 13.000

OTK 22.000

PROST 10019.000

RAVNOM 10007.000

RES 10008.000

STAN1 10016.000

STAN2 10017.000

TAU 15.000

ZADEL 3.000

LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY

1 GENERATE 1106 0 0

2 ASSIGN 1106 0 0

3 GATE 1106 0 0

AAA1 4 SEIZE 770 0 0

5 ADVANCE 770 1 0

6 RELEASE 769 0 0

7 UNLINK 769 0 0

8 TRANSFER 769 0 0

EEE 9 LINK 1103 99 0

DDD 10 ASSIGN 59 0 0

11 TEST 59 0 0

12 TRANSFER 57 0 0

OTH 13 TERMINATE 2 0 0

BBB 14 GATE 509 0 0

AAA2 15 SEIZE 393 0 0

16 ADVANCE 393 0 0

17 RELEASE 393 0 0

18 UNLINK 393 0 0

19 TRANSFER 393 0 0

CCC 20 TEST 205 0 0

21 LINK 205 0 0

OTK 22 TERMINATE 0 0 0

23 GENERATE 1 0 0

24 TERMINATE 1 0 0

25 GENERATE 1 0 0

FFF 26 MARK 498 0 0

27 TEST 498 0 0

28 SAVEVALUE 498 0 0

29 UNLINK 498 0 0

30 ADVANCE 498 1 0

31 TRANSFER 497 0 0

ABC1 32 TERMINATE 498 0 0

33 GENERATE 1 0 0

KKK 34 MARK 506 0 0

35 TEST 506 0 0

36 SAVEVALUE 506 0 0

37 UNLINK 506 0 0

38 ADVANCE 506 1 0

39 TRANSFER 505 0 0

ABC2 40 TERMINATE 506 0 0

FACILITY ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY

STAN1 770 0.607 39.394 1 1109 0 0 0 0

STAN2 393 0.472 60.067 1 0 0 0 0 0

USER CHAIN SIZE RETRY AVE.CONT ENTRIES MAX AVE.TIME

BUF2 99 0 48.892 1103 101 2216.312

BUF1 0 0 0.067 205 3 16.247

SAVEVALUE RETRY VALUE

PROST 0 366.591

FEC XN PRI BDT ASSEM CURRENT NEXT PARAMETER VALUE

1110 0 50003.905 1110 0 1

1109 0 50019.368 1109 5 6 1 0.000

3 0 50030.263 3 30 31

4 0 50081.638 4 38 39

1111 0 100000.000 1111 0 23

Параметр TAU равен30

Tuesday, November 09, 2010 21:25:49

START TIME END TIME BLOCKS FACILITIES STORAGES

0.000 50000.000 40 2 0

NAME VALUE

AAA1 4.000

AAA2 15.000

ABC1 32.000

ABC2 40.000

BBB 14.000

BUF1 10018.000

BUF2 10015.000

CCC 20.000

DDD 10.000

EEE 9.000

ERL3 10006.000

FFF 26.000

KKK 34.000

KRIT 10003.000

NORM1 10004.000

NORM2 10005.000

OHE 20.000

OTH 13.000

OTK 22.000

PROST 10019.000

RAVNOM 10007.000

RES 10008.000

STAN1 10016.000

STAN2 10017.000

TAU 15.000

ZADEL 3.000

LABEL LOC BLOCK TYPE ENTRY COUNT CURRENT COUNT RETRY

1 GENERATE 1105 0 0

2 ASSIGN 1105 0 0

3 GATE 1105 0 0

AAA1 4 SEIZE 769 0 0

5 ADVANCE 769 0 0

6 RELEASE 769 0 0

7 UNLINK 769 0 0

8 TRANSFER 769 0 0

EEE 9 LINK 1103 100 0

DDD 10 ASSIGN 59 0 0

11 TEST 59 0 0

12 TRANSFER 57 0 0

OTH 13 TERMINATE 2 0 0

BBB 14 GATE 509 0 0

AAA2 15 SEIZE 393 0 0

16 ADVANCE 393 0 0

17 RELEASE 393 0 0

18 UNLINK 393 0 0

19 TRANSFER 393 0 0

CCC 20 TEST 205 0 0

21 LINK 205 0 0

OTK 22 TERMINATE 0 0 0

23 GENERATE 1 0 0

24 TERMINATE 1 0 0

25 GENERATE 1 0 0

FFF 26 MARK 498 0 0

27 TEST 498 0 0

28 SAVEVALUE 498 0 0

29 UNLINK 498 0 0

30 ADVANCE 498 1 0

31 TRANSFER 497 0 0

ABC1 32 TERMINATE 498 0 0

33 GENERATE 1 0 0

KKK 34 MARK 505 0 0

35 TEST 505 0 0

36 SAVEVALUE 505 0 0

37 UNLINK 505 0 0

38 ADVANCE 505 1 0

39 TRANSFER 504 0 0

ABC2 40 TERMINATE 505 0 0

FACILITY ENTRIES UTIL. AVE. TIME AVAIL. OWNER PEND INTER RETRY DELAY

STAN1 769 0.606 39.427 1 0 0 0 0 0

STAN2 393 0.472 60.067 1 0 0 0 0 0

USER CHAIN SIZE RETRY AVE.CONT ENTRIES MAX AVE.TIME

BUF2 100 0 48.837 1103 101 2213.843

BUF1 0 0 0.066 205 3 16.214

SAVEVALUE RETRY VALUE

PROST 0 421.101

FEC XN PRI BDT ASSEM CURRENT NEXT PARAMETER VALUE

1109 0 50006.438 1109 0 1

4 0 50024.776 4 38 39

3 0 50057.518 3 30 31

1110 0 100000.000 1110 0 23

Результаты дисперсионного анализа при TAU = 10, 17, 30:

11/09/10 21:08:33 Model Translation Begun.

11/09/10 21:08:33 Ready.

11/09/10 21:09:08 include "t2.txt"

11/09/10 21:09:08 Simulation in Progress.

11/09/10 21:09:08 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:08 Simulation in Progress.

11/09/10 21:09:08 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:09 Simulation in Progress.

11/09/10 21:09:09 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:09 Simulation in Progress.

11/09/10 21:09:09 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:09 Simulation in Progress.

11/09/10 21:09:09 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:09 Reporting in 1chast.75.1 - REPORT Window.

11/09/10 21:09:09 Simulation in Progress.

11/09/10 21:09:09 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:09 Simulation in Progress.

11/09/10 21:09:09 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:09 Simulation in Progress.

11/09/10 21:09:09 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:09 Simulation in Progress.

11/09/10 21:09:09 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:09 Simulation in Progress.

11/09/10 21:09:09 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:09 Simulation in Progress.

11/09/10 21:09:09 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:10 Simulation in Progress.

11/09/10 21:09:10 The Simulation has ended. Clock is 50000.000000.

11/09/10 21:09:32 SHOW anova (res,2,1)

11/09/10 21:09:32 ______________________________________________

11/09/10 21:09:32 ANOVA

11/09/10 21:09:32 _____________________________________________

11/09/10 21:09:32 Source of Sum of Degrees of Mean Square F Critical Value

11/09/10 21:09:32 Variance Squares Freedom of F (p=.05)

11/09/10 21:09:32 _____________________________________________

11/09/10 21:09:32 A 209051347.522 104525673.761 668.815 4.26

11/09/10 21:09:32 _____________________________________________

11/09/10 21:09:32 Error 1406564.869 9 156284.985

11/09/10 21:09:32 Total 210457912.392 11

11/09/10 21:09:32 ______________________________________________

11/09/10 21:09:32____________________________________________

11/09/10 21:09:32 Treatment

Level Count Mean Minimum Maximum 95% C.I. (SE)

11/09/10 21:09:32 A

11/09/10 21:09:32 ______________________________________________

11/09/10 21:09:32 1 4 1823.386 1786.401 1851.373 (1376.269, 2270.503)

11/09/10 21:09:32 2 4 1776.381 1714.503 1823.598 (1329.264, 2223.498)

11/09/10 21:09:32 3 4 -7054.076 -7908.097 -6476.600 (-7501.193,-6606.959)