








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









General Purpose Simulation System (GPSS) is a discrete time simulation general-purpose programming language, where a simulation clock advances in discrete steps. In GPSS, a system is modelled as transactions that enter the system and are passed from one service to another. This Language is particularly well-suited for simulation of queuing models such as a facility station or factory. GPSS features a software package that is designed to simplify matters for the user:
A = average value of inter arrival time B = modifier time B <= A C = start delay time, before first transaction is generated D = maximum number of transactions generated E = priority allocated to transactions
TERMINATE Block:
DEPART BLOCK
TRANSFER BLOCK
B = proportion of (1-A) transactions transferred to this labelled location C = proportion A transactions transferred to this labelled location
A machine tool in a manufacturing shop is turning out parts at the rate of every 5 minutes. As they are finished, the parts are turned over to an inspector who takes 4±3 minutes to examine each one and rejects about 10% of the parts as faulty. Each part will be represented by a transaction and the base time unit for the system is chosen as 1 minute. Simulate for 100 parts to leave the system. Answer: GENERATE 5 ADVANCE 4, TRANSFER 0.1, ACC, REJ ACC TERMINATE 1 REJ TERMINATE 1
Customers arrive at mechanic shop at the rate of 300 ± 200. Mechanic serves each customer at the rate of 200 ± 50 minutes. Simulate system for queue of customer and measure of waiting time for 1000 customers. Answer: GENERATE 300 200 QUEUE MECHANIC SEIZE MECHANIC DEPART MECHANIC ADVANCE 200 50 RELEASE MECHANIC TERMINATE 1
Output:
Customers arrive at barber shop at the rate of 18 ± 6. Mechanic serves each customer at the rate of 16 ± 4 minutes. Simulate system for queue of customer and measure of waiting time for 1000 customers for one day (i.e. 8 hours). Answer:
GENERATE 18, 6 //Customer arrive every 18±6 min QUEUE Chairs // Enter the line SEIZE Joe //Capture the barber DEPART Chairs //Leave the line ADVANCE 16, 4 //Get a haircut in 16±4 min RELEASE Joe //Free the barber TERMINATE //Leave the shop
GENERATE 480 //Timer arrives at time = 480 min TERMINATE 1 //Shut off the run START 1 // Start one run
Output:
Spectators arrive at a turnstile of a football stadium every 7±7 seconds and queue for admittance. The time to pass through is evenly distributed at 5±3 seconds. A model is required to determine the time taken by 300 people to pass through the turnstile. Answer: GENERATE 7, 7 QUEUE Turn SEIZE Turn DEPART Turn ADVANCE 5, 3 RELEASE Turn TERMINATE 1
Output: