Docsity

GPSS Program and Solution, Exercises of Mathematical Modeling and Simulation

Toggle sidebar
bg1
GPSS Problems
1. Parts are being made at the rate of one every 10
minutes. They are of two types, A and B. And are mixed
randomly with about 10% being type B. A separate
inspector is assigned to examine each part. Inspection of
part A takes 6±2 minutes while B takes 10±2 minutes. Both
inspector rejects 10% of parts they inspect. Draw GPSS block
diagram to simulate the the above problem for 100 parts.
2. Why is GPSS called transaction flow oriented language? A machine tool in a manufacturing shop
is turning out parts at the rate of every 5 minutes. When they are finished, the parts are sent to
an inspector, who takes 4±3 minutes to examine each one and rejects 20% of the parts. Draw
and explain a block diagram for it and write a GPSS program to simulate using the concept of
FACILITY.
Solution
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. Therefore GPPS is called transaction
flow oriented language.
The block diagram for given problem using GPSS is given below:
pf3
pf4
pf5
Discount

On special offer

Partial preview of the text

Download GPSS Program and Solution and more Exercises Mathematical Modeling and Simulation in PDF only on Docsity!

GPSS Problems

1. Parts are being made at the rate of one every 10

minutes. They are of two types, A and B. And are mixed

randomly with about 10% being type B. A separate

inspector is assigned to examine each part. Inspection of

part A takes 6±2 minutes while B takes 10±2 minutes. Both

inspector rejects 10% of parts they inspect. Draw GPSS block

diagram to simulate the the above problem for 100 parts.

  1. Why is GPSS called transaction flow oriented language? A machine tool in a manufacturing shop is turning out parts at the rate of every 5 minutes. When they are finished, the parts are sent to an inspector, who takes 4±3 minutes to examine each one and rejects 20% of the parts. Draw and explain a block diagram for it and write a GPSS program to simulate using the concept of FACILITY. Solution 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. Therefore GPPS is called transaction flow oriented language. The block diagram for given problem using GPSS is given below:

A GENERATE block is used to represent the output of the machine by creating one transaction every five units of time. A QUEUE block places the transaction in the queue and SEIZE block allows a transaction to engage a facility if it is available. If more than one inspector is available, the transaction leaves the queue which is denoted by DEPART block and enters into ADVANCE block. An ADVANCE block with a mean of 4 and modifier of 3 is used to represent inspection. The time spent on inspection will therefore be any one of the values 1, 2, 3, 4, 5, 6 or 7, with equal probability given to each value. Upon completion of the inspection, RELEASE block allows a transaction to disengage the facility and transaction go to a TRANSFER block with a selection factor of 0.2, so that 80 % of the parts go to the next location called ACC, to represent accepted parts and 20 % go to another location called REJ to represent rejects. Both locations reached from the TRANSFER block are TERMINATE blocks. Now, Code for simulating the given problem using GPSS:

SEIZE BARBER DEPART SEAT ADVANCE 15, RELEASE BARBER TERMINATE TIMER GENERATE 420 TERMINATE 1

4. Example 3 - Ambulances are dispatched at a rate of one every 15 (+ or -) 10 mins. Fifteen percent of the calls are false alarms, which require 12 (+ or -) 2 mins to complete. All other calls can be one of two kinds. The first kind are classified as serious. They constitute 15% of non false alarms and take 25 (+ or -) 5 mins to complete. The other calls take 20 (+ or -) 10 mins. Simulate the model using GPSS.