Simulation and modeling - Old Questions

9.  Draw and describe the different types of GPSS blocks that are used to gather statistics?

5 marks | Asked in 2073

GPSS (General Purpose Simulation System) is a highly structured and special purpose simulation language based on process interaction approach and oriented toward queuing systems.
- The system being simulated is described by the block diagram using various GPSS blocks.
- Each block represents events, delays or other actions that affect the transaction flow.

The general blocks used in GPSS are given below:

GENERATE BLOCK:

This block will produce a flow of transactions with inter-arrival times determined by the attribute values. The distribution of inter-arrival times follows a uniform probability distribution.


SYNTAX: GENERATE A,B,C,D,E

ATTRIBUTES:  A = average value of uniform distribution, B = half-width of uniform distribution, C = time delay before first transaction is generated, D = maximum number of transactions generated, E = priority allocated to transactions

QUEUE BLOCK:

This block will instruct GPSS to start gathering queuing statistics on the queue named in its attribute value.


SYNTAX: QUEUE A

ATTRIBUTES:  A = name of queue (for example: garage)

DEPART BLOCK:

This block instructs GPSS that a transaction is leaving the queue named in it‟s attribute value. This is necessary in order to compile the statistics on the queue. 


SYNTAX: DEPART A

ATTRIBUTES: A = name of the queue (for example: checkout)

SEIZE BLOCK:

This blocks allows the transaction to seize a facility if it is free.


SYNTAX: SIZE A

ATTRIBUTES: A = name of facility (for example: pump)

RELEASE BLOCK:

A transaction entering this block informs GPSS that it is giving up ownership of the facility named in its attribute value. 


SYNTAX: RELEASE A

ATTRIBUTES: A = name of facility (for example: runaway)

ADVANCE BLOCK:

This block represents the servicing of a transaction. The servicing times follow a uniform probability distribution. 


SYNTAX: ADVANCE A,B

ATTRIBUTES: A = average value of uniform distribution, B = half-width of uniform distribution

TERMINATE BLOCK:

This block destroys any transaction entering it and removes it from computer memory. Each time a transaction enters this block it decrements a counter by an amount equal to its attribute value. The counter is set by the user upon starting the simulation.


SYNTAX: TERMINATE A

ATTRIBUTES:  A = decrements simulation counter by this amount

etc.