Lecture 19 - Common Queue Models
Lecture 19 - Common Queue Models
Lecture 19
Dr. Hedi Haddad
Objectives
1
Outline
Little’s Law
Common resolved systems
Common unresolved systems
Networks of Queues
Advantages / disadvantages of QT
QT vs. DES
2
Outline
Little’s Law
Common resolved systems
Common unresolved systems
Networks of Queues
Advantages / disadvantages of QT
QT vs. DES
Little’s Law
Also called the Conservation equation.
3
Little’s Law (Cont.)
Common models
Infinite population
Single server
M/G/1 G/G/1
M/M/1 G/M/1
Multi-server
M/M/m G/G/n
Finite population
M/M/c/K/K
Resolved systems: systems for which Unresolved systems: systems for which
we have a solution in QT there are no solutions in QT
8
4
Outline
Little’s Law
Common resolved systems
Common unresolved systems
Networks of Queues
Advantages / disadvantages of QT
QT vs. DES
M/G/1 Queues
Single-server queues with Poisson arrivals & unlimited capacity.
Suppose service times have mean 1/µ and variance σ2 and ρ = λ/µ <
1, the steady-state parameters of M/G/1 queue are:
ρ = λ / µ , P0 = 1 − ρ
ρ 2 (1 + σ 2 µ 2 ) ρ 2 (1 + σ 2 µ 2 )
L=ρ+ , LQ =
2(1 − ρ ) 2(1 − ρ )
1 λ (1 / µ 2 + σ 2 ) λ (1 / µ 2 + σ 2 )
w= + , wQ =
µ 2(1 − ρ ) 2(1 − ρ )
10
5
M/G/1 Queues (Cont.)
No simple expression for the steady-state probabilities P1, …
Average length of queue, LQ, can be rewritten as:
ρ2 λ2σ 2
LQ = +
2(1 − ρ ) 2(1 − ρ )
11
(1 / 30) 2 [ 24 2 + 400]
LQ = = 2.711 customers
2(1 − 4 / 5)
The proportion of arrivals who find Able idle and thus experience no delay is P0
= 1-ρ = 1/5 = 20%.
Baker: 1/µ = 25 minutes and σ2 = 22 = 4 minutes2:
(1 / 30) 2 [ 25 2 + 4]
LQ = = 2.097 customers
2(1 − 5 / 6)
The proportion of arrivals who find Baker idle and thus experience no delay is
P0 = 1-ρ = 1/6 = 16.7%.
Although working faster on average, Able’s greater service variability
results in an average queue length about 30% greater than Baker’s.
12
6
M/M/1 Queues
Suppose the service times in an M/G/1 queue are
exponentially distributed with mean 1/µ, then the variance
is σ2 = 1/µ2.
M/M/1 queue is a useful approximate model when service
times have standard deviation approximately equal to their
means.
The steady-state parameters (see lecture 18)
13
14
7
Other common single server queue models
M/M/1/N/∞: Fixed length queue, means customer will not get into
the system if the maximum system capacity is filled up.
15
16
8
Multi-server Queue (Cont.)
M/M/c/∞/∞ queue: c channels operating in parallel.
Each channel has an independent and identical exponential
service-time distribution, with mean 1/µ.
To achieve statistical equilibrium, the offered load (λ/µ) must
satisfy λ/µ < c, where λ/(cµ) = ρ is the server utilization.
Steady-state parameters (see lecture 18)
17
18
9
Steady-State Behavior of Finite-Population
Models
When the calling population is small, the presence of one or
more customers in the system has a strong effect on the
distribution of future arrivals.
Consider a finite-calling population model with K customers
(M/M/c/K/K):
The time between the end of one service visit and the next call for
service is exponentially distributed, (mean = 1/λ).
Service times are also exponentially distributed.
c parallel servers and system capacity is K.
19
∑ ∑
K!
P0 = +
n −c µ
n = 0 n µ n = c ( K − n)!c!c
K λ n
P0 , n = 0,1,..., c − 1
n µ
Pn = n
K! λ
( K − n)!c!c n − c µ , n = c, c + 1,...K
K
L= ∑ nP ,
n=0
n w = L / λe , ρ = λe / cµ
where λe is the long run effective arrival rate of customers to queue (or entering/exiting service)
K
λe = ∑ ( K − n)λ P
n=0
n
20
10
Steady-State Behavior of Finite-Population
Models
Example: two workers who are responsible for10 milling
machines.
Machines run on the average for 20 minutes, then require an
average 5-minute service period, both times exponentially
distributed: λ = 1/20 and µ = 1/5.
All of the performance measures depend on P0:
−1
2 −1 10 5 n 10 5
n
∑ ∑
10!
P0 = + n−2
= 0.065
n = 0 n 20 n = 2 (10 − n)!2!2 20
Then, we can obtain the other Pn.
Expected number of machines in system:
10
L= ∑ nP
n =0
n = 3.17 machines
22
11
Outline
Little’s Law
Common resolved systems
Common unresolved systems
Networks of Queues
Advantages / disadvantages of QT
QT vs. DES
23
G/G/n
24
12
G/G/1 & G/M/1
G/G/1
Approximated as a M/G/1 system, its closest resolved
system
G/M/1
Approximated as a M/M/1 system, its closet resolved
system
25
Outline
Little’s Law
Common resolved systems
Common unresolved systems
Networks of Queues
Advantages / disadvantages of QT
QT vs. DES
26
13
Networks of Queues
Many systems are naturally modeled as networks of single
queues: customers departing from one queue may be routed
to another.
The following results assume a stable system with infinite
calling population and no limit on system capacity:
Provided that no customers are created or destroyed in the
queue, then the departure rate out of a queue is the same as the
arrival rate into the queue (over the long run).
If customers arrive to queue i at rate λi, and a fraction 0 ≤ pij ≤ 1 of
them are routed to queue j upon departure, then the arrival rate
form queue i to queue j is λipij (over the long run).
27
Networks of Queues
The overall arrival rate into queue j:
λj = aj + ∑λ p
all i
i ij
If queue j has cj < ∞ parallel servers, each working at rate µj, then
the long-run utilization of each server is ρj=λj/(cµj) (where ρj < 1
for stable queue).
If arrivals from outside the network form a Poisson process with
rate aj for each queue j, and if there are cj identical servers
delivering exponentially distributed service times with mean 1/µj,
then, in steady state, queue j behaves like an M/M/cj queue with
arrival rate λ j = a j +
∑
λi pij
all i
28
14
Network of Queues: Example
self-service
40%
80/hour
60%
29
Network of Queues
Discount store example:
Suppose customers arrive at the rate 80 per hour and 40%
choose self-service. Hence:
Arrival rate to service center 1 is λ1 = 80(0.4) = 32 per hour
ρ3 = 80/90 = 0.89
30
15
Outline
Little’s Law
Common resolved systems
Common unresolved systems
Networks of Queues
Advantages / disadvantages of QT
QT vs. DES
31
Advantages / Disadvantages of QT
Positives Negatives
Quick, accurate, and easy Oversimplification of
solutions reality
Applicable to a wide range of
domains Like mathematical models, it
puts a restriction on finding
real world solutions
Ex: Often assume infinite
customers and queue
capacity, parallel servers, in
reality there are such
limitations
32
16
Outline
Little’s Law
Common resolved systems
Common unresolved systems
Networks of Queues
Advantages / disadvantages of QT
QT vs. DES
33
Comparative exercise
34
17