Simulation and Modelling - Old Questions
11. 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.
The block diagram for given problem using GPSS is given below:
Code for simulating the given problem using GPSS:
GENERATE 10, 0
TRANSFER 0.1 A B
A ADVANCE 6, 2
B ADVANCE 10, 2
A TRANSFER 0.1 ACC REJ
B TRANSFER 0.1 ACC REJ
A ACC TERMINATE 1
REJ TERMINATE 1
B ACC TERMINATE 1
REJ TERMINATE 1
START 100