Gpss (Part II) : Block Statements
Gpss (Part II) : Block Statements
SEIZE RELEASE
1
Example Cafeteria Example
Modify the previous example using storages and People arrive at a cafeteria with an interarrival time of 10±5
seconds. There are two serving areas: one for hot food and the
keeping queue statistics: there are 3 inspectors other for sandwiches. The hot food area is selected by 80% of
GENERATE 5
the customers and it has 6 servers. The sandwich area is selected
QUEUE Insq
by the remaining 20% of the customers and has only one server.
ENTER Ins,1
Hot food takes 1 minute to serve and sandwiches take ½
DEPART Insq
minutes. When they have been served, the customers move into
ADVANCE 4,3
the seating part of the cafeteria which has a seating capacity for
LEAVE Ins,1
200 people. The average time for eating hot food is 30 ±10
TRANSFER 0.1,Acc,Rej
minute and for a sandwich it is 15 ±5 minutes. When they have
Acc TERMINATE 1
finished eating, they leave the seating area and the cafeteria.
Rej TERMINATE 1
Measure the queues for service and simulate the system for 1000
START 1000 people to finish their meal and leave.
Ins STORAGE 3
START 1000
2
Manufacturing Shop Example Revisited
wish to simulate system for T time units and not for k Xacts to finish a service,
for example simulate for 8 hours (base time unit is 1 minute)
GENERATE 5
QUEUE Insq
ENTER Ins,1
DEPART Insq
ADVANCE 4,3
LEAVE Ins,1
TRANSFER 0.1,Acc,Rej
Acc TERMINATE 0
Rej TERMINATE 0
GENERATE 480
TERMINATE 1
Ins STORAGE 3
START 1