    GPSS/H MS-DOS STUDENT/DEMO RELEASE 2.0 (OV079)     27 Mar 2000   12:45:35     FILE: g6n.gps

    LINE# STMT#  IF DO  BLOCK#  *LOC	OPERATION	A,B,C,D,E,F,G	COMMENTS  
 
        1     1                  
        2     2                 *Origin: System simulation, Figure 12-4/10-2
        3     3                 *Author: G. Gordon
        4     4                 *Description: Simulation of a supermarket
        5     5                  
        6     6                        SIMULATE
        7     7                  
        8     8                 *
        9     9                 *      GPSS/H Block Section (model)
       10    10                 *
       11    11                  
       12    12                 *
       13    13                 *      SIMULATION OF A SUPERMARKET
       14    14                 *
       15    15                 IARR   FUNCTION    RN1,C24             Function for i/a interval
       16    16                 0.0,0.0/0.1,0.104/0.2,0.222/0.3,0.355/0.4,0.509/0.5,0.69/
       17    17                 0.6,0.915/0.7,1.2/0.75,1.38/0.8,1.6/0.84,1.83/0.88,7.12/
       18    18                 0.9,2.3/0.92,2.52/0.94,2.81/0.95,2.99/0.96,3.2/0.97,3.5/
       19    19                 0.98,3.9/0.99,4.6/0.995,5.3/0.998,6.2/0.999,7/0.9997,8
       20    20                  
       21    21              1         GENERATE    36,FN$IARR,,,,1     Create shoppers with 1 parameter
       22    22              2         TRANSFER    BOTH,,AWAY          Check for available basket
       23    23              3         ENTER       BSKTS               Get a basket
       24    24              4         ASSIGN      1,FN$ITEMS          Determine no. of items
       25    25              5         ADVANCE     1,FN$SHOPT          Shop
       26    26              6         QUEUE       WAIT                Wait for counter space
       27    27              7         ENTER       CTRS                Get counter space
       28    28              8         DEPART      WAIT                Leave queue
       29    29              9         ADVANCE     V$CKTT              Check-out
       30    30             10         LEAVE       CTRS                Free counter space
       31    31             11         TABULATE    TRT                 Tabulate transit time
       32    32             12         TABULATE    ITM                 Tabulate no. of items
       33    33             13         LEAVE       BSKTS               Return basket
       34    34             14         TERMINATE   1
       35    35             15  AWAY   TERMINATE                       Lost customers
       36    36                  
       37    37                 TRT    TABLE       M1,500,500,10       Transit time table
       38    38                 ITM    TABLE       P1,5,5,4            item count table
       39    39                  
       40    40                 CTRS   STORAGE     5                   Number of counters
       41    41                 BSKTS  STORAGE     10                  Number of baskets
       42    42                  
       43    43                 ITEMS  FUNCTION    RN1,D4            Distr. of no. of items
       44    44                 .2,5/.5,10/.9,15/1.0,20
       45    45                  
       46    46                 SHOPT  FUNCTION    P1,C5               Shopping time distr.
       47    47                 0,0/5,400/10,900/15,1500/20,2250
       48    48                  
       49    49                 CKTT   VARIABLE    P1*10+25            Check-out time
       50    50                  
       51    51                  
       52    52                 *
       53    53                 *      GPSS/H Control Statements (experiment(s))
       54    54                 *
       55    55                        START       50,NP               Initialise
       56    56                        RESET                           Wipe out statistics

    GPSS/H MS-DOS STUDENT/DEMO RELEASE 2.0 (OV079)     27 Mar 2000   12:45:35     FILE: g6n.gps

    LINE# STMT#  IF DO  BLOCK#  *LOC	OPERATION	A,B,C,D,E,F,G	COMMENTS  
 
       57    57                        START       1000                Main run
       58    58                  
       59    59                        END

ENTITY DICTIONARY (IN ASCENDING ORDER BY ENTITY NUMBER; "*" => VALUE CONFLICT.)

           Queues: 1=WAIT

         Storages: 1=BSKTS         2=CTRS

           Tables: 1=TRT           2=ITM

        Functions: 1=IARR          2=ITEMS         3=SHOPT

     (F)variables: 1=CKTT

       Parameters: 1

   Random Numbers: 1

SYMBOL   VALUE   EQU DEFNS  CONTEXT      REFERENCES BY STATEMENT NUMBER
 
AWAY        15          35  Block           22
 
WAIT         1              Queue           26    28
 
BSKTS        1          41  Storage         23    33
CTRS         2          40  Storage         27    30
 
ITM          2          38  Table           32
TRT          1          37  Table           31
 
IARR         1          15  Function        21
ITEMS        2          43  Function        24
SHOPT        3          46  Function        25
 
CKTT         1          49  (F)variable     29
 
1            1              Parameter       24    38    46    49
 
1            1              Random Nmbr     15    43



STORAGE REQUIREMENTS (BYTES)

COMPILED CODE:     1286
COMPILED DATA:      832
MISCELLANEOUS:        0
ENTITIES:           834
COMMON:           10000
-----------------------
TOTAL:            12952



Simulation begins.

RELATIVE CLOCK: 1.3995E+05   ABSOLUTE CLOCK: 1.4734E+05



BLOCK CURRENT     TOTAL  BLOCK CURRENT     TOTAL  
1                  3360  11                 1000 
2                  3360  12                 1000 
3                  1000  13                 1000 
4                  1000  14                 1000 
5           8      1000  AWAY               2360 
6                   999 
7                   999 
8                   999 
9           1       999 
10                 1000 



          --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
   BSKTS  0.951                      1009    1319.416    AVAIL   100.0           10       9.512           9          10
    CTRS  0.208                      1001     145.619    AVAIL   100.0            5       1.042           1           5



   QUEUE     MAXIMUM      AVERAGE       TOTAL        ZERO     PERCENT      AVERAGE      $AVERAGE     QTABLE     CURRENT
            CONTENTS     CONTENTS      ENTRIES     ENTRIES     ZEROS      TIME/UNIT    TIME/UNIT     NUMBER    CONTENTS
    WAIT           1        0.000         999         999      100.0         0.000         0.000                      0



TABLE      TRT

ENTRIES IN TABLE   MEAN ARGUMENT   STANDARD DEVIATION   SUM OF ARGUMENTS
       1000.0000       1329.9500             592.2616         1.3300E+06   NON-WEIGHTED

       UPPER    OBSERVED     PERCENT  CUMULATIVE  CUMULATIVE    MULTIPLE   DEVIATION
       LIMIT   FREQUENCY    OF TOTAL  PERCENTAGE   REMAINDER     OF MEAN   FROM MEAN
    500.0000    194.0000       19.40       19.40       80.60      0.3760     -1.4013
        ...
   1500.0000    297.0000       29.70       49.10       50.90      1.1279      0.2871
   2000.0000    408.0000       40.80       89.90       10.10      1.5038      1.1313
   2500.0000    101.0000       10.10      100.00       -0.00      1.8798      1.9756



TABLE      ITM

ENTRIES IN TABLE   MEAN ARGUMENT   STANDARD DEVIATION   SUM OF ARGUMENTS
       1000.0000         12.0800               4.5656         12080.0000   NON-WEIGHTED

       UPPER    OBSERVED     PERCENT  CUMULATIVE  CUMULATIVE    MULTIPLE   DEVIATION
       LIMIT   FREQUENCY    OF TOTAL  PERCENTAGE   REMAINDER     OF MEAN   FROM MEAN
      5.0000    194.0000       19.40       19.40       80.60      0.4139     -1.5507
     10.0000    297.0000       29.70       49.10       50.90      0.8278     -0.4556
     15.0000    408.0000       40.80       89.90       10.10      1.2417      0.6396
    OVERFLOW    101.0000       10.10      100.00        0.00

AVERAGE VALUE OF OVERFLOW IS      20.0000

  RANDOM    ANTITHETIC     INITIAL     CURRENT      SAMPLE   CHI-SQUARE
  STREAM      VARIATES    POSITION    POSITION       COUNT   UNIFORMITY
       1           OFF      100216      104576        4360      0.84



STATUS OF COMMON STORAGE

    8832 BYTES AVAILABLE
    1168 IN USE
    1360 USED (MAX)

Simulation terminated.  Absolute Clock: 1.4734E+05



Total Block Executions: 22120

Blocks / second:        100545

Microseconds / Block:   9.95



Elapsed Time Used (SEC)
 
PASS1:           0.11
PASS2:           0.06
LOAD/CTRL:       0.16
EXECUTION:       0.22
---------------------
TOTAL:           0.55
