Professional Documents
Culture Documents
Week 06 Simulation Using GPSS
Week 06 Simulation Using GPSS
TIME STATISTICS
Week 06
INTRODUCTION
How to collect statistics on waiting lines,
transit times, and other delays and
blockages within a model.
The Queue entity is implemented with pair
of Blocks QUEUE and DEPART.
The SEIZE block causes Transactions to
be delayed and form waiting lines, but the
QUEUE Block does not.
INTRODUCTION
To record time statistics of Transactions spends in
Queue using blocks QUEUE and DEPART.
Example:
QUEUE LINE
SEIZE SERVER
DEPART LINE
(To record amount of time (statistics) of a Transaction
spends in Queue LINE).
EXAMPLE 5.1
Consider again Example 3.1 and suppose
that we are interested in the average time
a cloth bundle has to wait for the line
server before it is serviced.
Other statistics of interest are
The average time-in-system of a cloth bundle
The average number of a cloth bundles in the
system
The QUEUE and DEPART Blocks
Examples:
QUEUE LINE
SEIZE SERVER
DEPART LINE
SNA FOR QUEUES
SNA FOR QUEUES
Examples:
Q(1)
QM(5)
Q(LINE)
QM(SYSQ)
SIMULATION OUTPUT
Facilities Report: [The Report on Queues]
The Answers To The Three Questions
1.311 minutes
7.091 minutes
1.794 bundles
MODELLING MULTIPLE,
PARALLEL SERVERS
Chapter 6
INTRODUCTION
A Storage entity provides a way to model
multiple, parallel servers.
The number of servers = Storage capacity
Each server is called a unit of the Storage.
Another use of a Storage is to model the
limited capacity of waiting line.
A Storage entity can also be used to
model a group of identical machines, a
conveyor and a warehouse or storeroom.
INTRODUCTION
A Storage is a resource having the
capacity to service multiple Transactions
simultaneously.
Implemented in a model with the ENTER-
LEAVE pair of Blocks.
Storage capacity is defined by the
STORAGE Control statement.
Example 6-1
Example 3-1 will now be expanded to include a
sewing line for T-shirt.
Sewing a T-shirt consists of 5 operations:
Close first shoulder
Sew collar
Cover seam
Close second shoulder; and
Set sleeves (See Fig. 6.1)
The standard minutes allowed per dozen T-shirt
for each operation are given in Table6.1.
Example 6-1
Questions:
How many time does it take to sew and
inspect 100 dozen T-shirt?
How busy are the inspectors?
Which set work station is the busiest?
Example 6-1
Example 6-1
GPSS/H Model:[Example 6-1]
GPSS/H Model:[Example 6-1]
GPSS/H model listing for Example 6-1,
See EX6-1.GPS
Declaration of Storage Capacity
Format of Storage Capacity:
STORAGE S(sname),scap/…
sname: the name or number of a Storage
scap: its capacity
Examples:
STORAGE S(BUFFER),2
STORAGE S(TOOLS),3/S(5),4
The ENTER and LEAVE Blocks
The ENTER Block models the capture of one or
more units of a Storage.
The LEAVE Block models the release of one or
more units.
The ENTER Block has two operands, A and B
A: specifies the name or number of the Storage
entity
B: specifies the number of units requested by a
Transaction.
The ENTER and LEAVE Blocks
Examples:
ENTER BUFFER
ENTER TOOLS,2
LEAVE BUFFER
LEAVE TOOLS,2
(See Storage BUFFER represent a waiting
line on page 6-10)
SNA for Storages
SNA for Storages