You are on page 1of 39

COLLECTION OF WAITING

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

 Discuss in detail the Queue entity and its


associated pair of Blocks: QUEUE and
DEPART.
 When a Transaction enters a QUEUE
block, it becomes a member of a QUEUE.
 When a Transaction enters a DEPART
block, it exits the QUEUE.
The QUEUE and DEPART Blocks

 The QUEUE Block has two operands, (A,B).


 A: Specifies the name of the QUEUE that a
Transaction will join.
 B: Specifies the number of unit to be added to
the QUEUE (used to collect weighted time
statistics; the default for B is 1, meaning that all
Transactions will be equally weighted).
The QUEUE and DEPART Blocks
The QUEUE and DEPART Blocks
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

Examples of SNAs for Storages:


 R(BUFFER)
 S(BUFFER)
 Note: R(BUFFER)+S(BUFFER)=The
Storage capacity
 SE(5)
 SF(5)
DISCUSSION OF MODEL
 The GPSS/H model see Fig. 6.3, p.6-6.
 Storage control statement
 Storage WKR2 has a capacity of 2 units
 Storage WKR5 has a capacity of 3 units
 Storage INSPECT has a capacity of 2 units
 Discuss how a Transaction move through the
model
 The Control statements control the overall
execution of the model –SIMULATE, START,
and END.
DISCUSSION OF MODEL
DISCUSSION OF OUTPUT
 The entity dictionary shows that our model
contains two classes of entities, namely,
Facilities and Storages.
 The Facility symbols, SERVER, WKR1, WKR3,
WKR4.
 The Storage symbols, WKR2, WKR5, and
INSPECT.
 The output report: the simulation terminated at
time 446.3301
 The entity summary section: the collected
statistics on all Facilities and Storages.
DISCUSSION OF OUTPUT
DISCUSSION OF OUTPUT
The Answers to the Questions
 (1) 446.3301
 (2) 76.3%
 (3) 0.890

You might also like