Lecture 2 Queuing Theory (Queuing Models)
Lecture 2 Queuing Theory (Queuing Models)
System
B. Queuing Models
1. Single-Server Models
2. Multiple-Server Models
3. Constant Service Time Models
4. Finite Population Models
13-1
Chapter 1
Queuing Theory
B. Queuing Models
Kendall Notation
characteristics is
v/w/x/y/z
where,
v the arrival pattern
w the service pattern
x the number of available servers
y the systems capacity
z the queue discipline
Kendall Notation
Queue Characteristic
Symbol
Meaning
Interarrival time
or
Service time
D
M
E
G
Deterministic
Exponential / Poisson distribution
Erlang type-k distribution
Gaussian / Normal distribution
Queue discipline
FIFO
LIFO
SIRO
PRIO
Kendall Notation
13-6
n Queuing Equations:
Let
13-7
L=
2
Lq =
( )
Copyright 2012 Pearson Education, Inc. publishing as Prentice Hall
13-8
Wq =
( )
13-9
P0 = 1
Pn> k
k +1
13-10
3 per hour.
n Customers arrive at a rate of 2 per hour.
n So:
= 2 cars arriving per hour
= 3 cars serviced per hour
2
2
L=
=
= = 2 cars in the system
32 1
on average
1
1
W=
=
32
Copyright 2012 Pearson Education, Inc. publishing as Prentice Hall
2
Wq =
= hour
( ) 3
= 40 minutes average
waiting time per car
2
= = = 0.67
3
= percentage of time
mechanic is busy
2
P0 = 1 = 1 = 0.33
13-12
Pn>k = (2/3)k+1
0.667
0.444
0.296
0.198
0.132
0.088
0.058
0.039
13-13
Program 13.1
Copyright 2012 Pearson Education, Inc. publishing as Prentice Hall
13-14
Total
(Number of channels)
=
service cost
x (Cost per channel)
Total
service cost = mCs
13-15
13-16
13-17
13-18
2
2
L=
=
= = 1 car in the system
42 2
on the average
W=
1
1
=
42
1
Wq =
= hour
( ) 4
= 15 minutes average
waiting time per car
2
= = = 0.5
4
= percentage of time
mechanic is busy
2
P0 = 1 = 1 = 0.5
13-20
Pn>k = (2/4)k+1
0.500
0.250
0.125
0.062
0.031
0.016
0.008
0.004
13-21
hour:
Total daily
waiting cost = (8 hours per day)WqCw
= (8)(2)(1/4)($50) = $200.00
hour:
Total daily
service cost = (8 hours per day)mCs
= (8)(1)($20) = $160
13-22
(16 cars per day) x (2/3 hour per car) = 10.67 hours
n It is now is now:
13-23
13-24
13-25
P0 =
n = m 1
n=0
1
n!
1
m
+
m! m
for m >
13-26
L=
P
+
0
( m 1)! ( m )2
( / )m
1 L
W =
P
+
=
2 0
( m 1)! ( m )
13-27
Lq = L
=
m
Copyright 2012 Pearson Education, Inc. publishing as Prentice Hall
13-28
garage bay.
n He would hire a second worker who works at the
same rate as his first worker.
n The customer arrival rate remains the same.
P0 =
P0 =
n = m 1
n =0
1
n!
1
m
+
m! m
1
1
1 2
n =0 n! 3
1 2 2(3)
+
2! 3 2(3) 2
for m >
= 0.5
13-29
( / ) m
L=
P+
2 0
(m 1)!(m )
2(3)(2 / 3) 2 1 2
L=
( ) + = 0.75
2
(1)![2(3) 2] 2 3
n Average time a car spends in the system
3
W = = hour = 22 1 minutes
2
8
Copyright 2012 Pearson Education, Inc. publishing as Prentice Hall
13-30
3 2 1
Lq = L = =
= 0.083
4 3 12
n Average time a car spends in the queue
Wq = W
Lq
0.083
= 0.0415 hour = 2 1 minutes
2
2
13-31
13-32
ONE
MECHANIC
=3
TWO
MECHANICS
= 3 FOR BOTH
ONE FAST
MECHANIC
=4
0.33
0.50
0.50
2 cars
0.75 cars
1 car
60 minutes
22.5 minutes
30 minutes
1.33 cars
0.083 car
0.50 car
40 minutes
2.5 minutes
15 minutes
Table 13.2
Copyright 2012 Pearson Education, Inc. publishing as Prentice Hall
13-33
Program 13.2
13-34
13-35
2
Lq =
2 ( )
2. Average waiting time in the queue
Wq =
2 ( )
13-36
L = Lq +
W = Wq +
13-37
13-38
13-39
Program 13.3
Copyright 2012 Pearson Education, Inc. publishing as Prentice Hall
13-40
13-41
P0 =
1
N
N!
n = 0 ( N n )!
13-42
+
Lq = N
(1 P0 )
3. Average number of customers (units) in the system:
L = Lq + (1 P0 )
4. Average waiting time in the queue:
Wq =
Copyright 2012 Pearson Education, Inc. publishing as Prentice Hall
Lq
( N L)
13-43
W = Wq +
N!
Pn =
P0 for n = 0,1,..., N
( N n)!
13-44
Department of Commerce
n The Department of Commerce has five printers
13-45
P0 =
1
5
5! 0.05
n = 0 (5 n )! 0.5
= 0.564
2.
0.05 + 0.5
Lq = 5
(1 P0 ) = 0.2 printer
0.05
3.
13-46
0.2
0.2
Wq =
=
= 0.91 hour
(5 0.64)(0.05 ) 0.22
1
W = 0.91+
= 2.91 hours
0.50
5.
13-47
Program 13.4
Copyright 2012 Pearson Education, Inc. publishing as Prentice Hall
13-48
(or W = L/)
(or Wq = Lq/)
n And
W = Wq + 1/
Copyright 2012 Pearson Education, Inc. publishing as Prentice Hall
13-49
13-50