Chapter 11 Waiting Line Models
Chapter 11 Waiting Line Models
John
Loucks
St. Edward’s
University
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 1
Chapter 11, Part A: Waiting Line Models
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 2
Structure of a Waiting Line System
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 3
Structure of a Waiting Line System
Distribution of Arrivals
• Generally, the arrival of customers into the system
is a random event.
• Frequently the arrival pattern is modeled as a
Poisson process.
Distribution of Service Times
• Service time is also usually a random variable.
• A distribution commonly used to describe service
time is the exponential distribution.
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 4
Structure of a Waiting Line System
Queue Discipline
• Most common queue discipline is first come, first
served (FCFS).
• An elevator is an example of last come, first
served (LCFS) queue discipline.
• Other disciplines assign priorities to the waiting
units and then serve the unit with the highest
priority first.
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 5
Structure of a Waiting Line System
Single-Server System
Customer Waiting line Customer
arrives S1 leaves
Multiple-Server System
S1
S3
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 6
Queuing Systems
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 7
Queuing Systems
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 8
Queuing System Input Characteristics
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 9
Queuing System Operating Characteristics
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 10
Steady-State Operation
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 11
Analytical Formulas
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 12
Single-Server Waiting Line Model with
Poisson Arrivals and Exponential Service Times
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 13
Example: SJJT, Inc. (A)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 14
Example: SJJT, Inc. (A)
Answer
P (x = 0) = (50e -5)/0! = e -5 = .0067
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 15
Example: SJJT, Inc. (A)
Answer
P (x = 3) = (53e -5)/3! = 125(.0067)/6 = .1396
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 16
Example: SJJT, Inc. (A)
Answer
P (x > 6) = 1 - P (x = 0) - P (x = 1) - P (x = 2)
- P (x = 3) - P (x = 4) - P (x = 5)
- P (x = 6)
= 1 - .762 = .238
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 17
Example: SJJT, Inc. (A)
Answer
Since Joe Ferris can process an order in an
average time of 2 minutes (= 2/60 hr.), then the mean
service rate, µ, is µ = 1/(mean service time), or 60/2.
m = 30/hr.
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 18
Example: SJJT, Inc. (A)
Answer
Since the units are expressed in hours,
P (T < 1 minute) = P (T < 1/60 hour).
Using the exponential distribution, P (T < t ) = 1 - e-µt.
Hence, P (T < 1/60) = 1 - e-30(1/60)
= 1 - .6065 = .3935 = 39.35%
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 19
Example: SJJT, Inc. (A)
Answer
Since the exponential distribution is a continuous
distribution, the probability a service time exactly
equals any specific value is 0.
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 20
Example: SJJT, Inc. (A)
Answer
The percentage of orders requiring more than 3
minutes to process is:
P (T > 3/60) = e-30(3/60) = e -1.5 = .2231 = 22.31%
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 21
Example: SJJT, Inc. (A)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 22
Example: SJJT, Inc. (A)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 23
Example: SJJT, Inc. (A)
Utilization Factor
Question
What percentage of the time is Joe processing
orders?
Answer
The percentage of time Joe is processing orders
is equivalent to the utilization factor, /m. Thus, the
percentage of time he is processing orders is:
/m = 20/30
= 2/3 or 66.67%
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 24
Example: SJJT, Inc. (A)
Formula Spreadsheet
A B C D E F G H
1 Poisson Arrival Rate 20
2 Exponential Service Rate m 30
3 Operating Characteristics
4 Probability of no orders in system Po =1-H1/H2
5 Average number of orders waiting Lg =H1^2/(H2*(H2-H1))
6 Average number of orders in system L =H5+H1/H2
7 Average time an order waits Wq =H5/H1
8 Average time an order is in system W =H7+1/H2
9 Probability an order must wait Pw =H1/H2
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 25
Example: SJJT, Inc. (A)
Spreadsheet Solution
A B C D E F G H
1 Poisson Arrival Rate 20
2 Exponential Service Rate m 30
3 Operating Characteristics
4 Probability of no orders in system Po 0.333
5 Average number of orders waiting Lg 1.333
6 Average number of orders in system L 2.000
7 Average time an order waits Wq 0.067
8 Average time an order is in system W 0.100
9 Probability an order must wait Pw 0.667
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 26
Improving the Waiting Line Operation
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 27
Multiple-Server Waiting Line Model with
Poisson Arrivals and Exponential Service Times
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 28
M/M/k Example: SJJT, Inc. (B)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 29
M/M/k Example: SJJT, Inc. (B)
Answer
Since Joe Ferris processes orders at a mean rate
of µ = 30 per hour, then = µ = 30 and the utilization
factor is 1.
This implies the queue of orders will grow
infinitely large. Hence, Joe alone cannot handle this
increase in demand.
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 30
M/M/k Example: SJJT, Inc. (B)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 31
M/M/k Example: SJJT, Inc. (B)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 32
Example: SJJT, Inc. (B)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 33
Example: SJJT, Inc. (B)
𝜆𝜇 𝜆Τ𝜇 𝑘 30 30 30Τ30 2
𝐿𝑞 = 2
𝑃0 = 2
1Τ3 = 1/3
𝑘 − 1 ! 𝑘𝜇 − 𝜆 1! 2 30 − 30
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 34
Example: SJJT, Inc. (B)
Answer
The average number of orders waiting to be filled
is Lq. This was calculated earlier as 1/3.
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 35
Some General Relationships For Waiting Line Models
L = W and Lq = Wq
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 36
Example: SJJT, Inc. (C)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 37
Example: SJJT, Inc. (C)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 38
Economic Analysis of Waiting Lines
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 39
Example: SJJT, Inc. (C)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 40
Example: SJJT, Inc. (C)
P0 = 1 / [1+(1/1!)(40/30)]+[(1/2!)(40/30)2(60/(60-40))]
= 1 / [1 + (4/3) + (8/3)]
= 1/5
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 41
Example: SJJT, Inc. (C)
Thus,
𝜆𝜇 𝜆Τ𝜇 𝑘 40 30 40Τ30 2
𝐿𝑞 = 2 𝑃0 = 2 1Τ5 = 16/15
𝑘 − 1 ! 𝑘𝜇 − 𝜆 1! 2 30 − 40
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 42
Example: SJJT, Inc. (C)
P0 = 1/[[1+(1/1!)(40/30)+(1/2!)(40/30)2]+
[(1/3!)(40/30)3(90/(90-40))] ]
= 1 / [1 + 4/3 + 8/9 + 32/45]
= 15/59
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 43
Example: SJJT, Inc. (C)
𝜆𝜇 𝜆Τ𝜇 𝑘 30 40 40Τ30 3
𝐿𝑞 = 2
𝑃0 = 2
15Τ59 = .1446
𝑘 − 1 ! 𝑘𝜇 − 𝜆 2! 3 30 − 40
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 44
Example: SJJT, Inc. (C)
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 45
End of Chapter 11, Part A
© 2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted
in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use. 46