Queueing
Queueing
Purpose
Outline
Calling Population
[Characteristics of Queueing System]
System Capacity
[Characteristics of Queueing System]
Limited capacity, e.g., an automatic car wash only has room for
10 cars to wait in line to enter the mechanism.
Unlimited capacity, e.g., concert ticket sales with no limit on the
number of people allowed to wait to purchase tickets.
Arrival Process
[Characteristics of Queueing System]
Arrival Process
[Characteristics of Queueing System]
First-in-first-out (FIFO)
Last-in-first-out (LIFO)
Service in random order (SIRO)
Shortest processing time first (SPT)
Service according to priority (PR).
10
11
12
Queueing Notation
[Characteristics of Queueing System]
13
Queueing Notation
[Characteristics of Queueing System]
Let Ti denote the total time during [0,T] in which the system
contained exactly i customers, the time-weighted-average number
in a system is defined by:
1
L
T
i 0
i 0
Ti
L
iTi
L(t )dt
0
T i 0
T
iTi
1
L
L(t#)dtin
L as with
T probability
15
1
1 T
Q
LQ
iTi
LQ (t )dt LQ as T
T i 0
T 0
if L(t) 0
0,
L(t ) 1, if L(t) 1
LQ (t )
i 1
where W1, W2, , WN are the individual times that each of the N
customers spend in the system during [0,T].
w w as N
For stable systems:
If the system under
is the queue alone:
1 Nconsideration
Q
w Q Wi w Q as N
N i 1
G/G/1/N/K
example (cont.):
the average system time is
W W ... W
2 (8 3) ... (20 16 )
w
L w
Average
System time
Arrival rate
L w as T and N
Server Utilization
[Characteristics of Queueing System]
19
Server Utilization
[Characteristics of Queueing System]
1
L s
T
T T0
L
(
t
)
L
(
t
)
dt
Q
0
T
T
In example: Ls = 17/20 =
20
Server Utilization
[Characteristics of Queueing System]
E ( s )
Server Utilization
[Characteristics of Queueing System]
Ls
In
23
Services are stochastic, E(Si) = 9.3 min and V(S0) = 0.81 min2.
j 1
$10 * w Q
Wj is the time
customer j spends
in queue
$10 *W jQ
hour
customer
Example
26
For the simple model, the steady-state parameter, L, the timeaverage number of customers in the system is:
L nPn
n 0
Apply Littles equation to the whole system and to the queue alone:
L
1
, wQ w
LQ wQ
M/G/1 Queues
/ , 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 )
L LQ
29
Example
30
M/G/1 Queues
No
2
2 2
LQ
2(1 ) 2(1 )
M/G/1 Queues
The proportion of arrivals who find Able idle and thus experience no delay is P0
= 1- = 1/5 = 20%.
(1 / 30 ) 2 [25 2 4]
customers
2 2.097
2
Baker: 1/ =LQ
25 minutes
and
=
2
=
4 minutes2:
2(1 5 / 6)
32
The proportion of arrivals who find Baker idle and thus experience no delay is
M/M/1 Queues
/ ,
Pn 1 n
2
2
L
, LQ
1
1
1
1
, wQ
(1 )
(1 )
33
M/M/1 Queues
34
For almost all queues, if lines are too long, they can be reduced
by decreasing server utilization () or by decreasing the service
time variability (2).
A measure of the variability of a distribution, coefficient of
variation (cv):
V (X )
2
(cv)
E ( X ) 2
The larger cv is, the more variable is the distribution relative to its
expected value
35
1 (cv) 2
LQ for M/M/1
queue
Corrects the M/M/1
formula to account
for a nonexponential service
time distn
36
Multiserver Queue
c
( / ) 1 c
P0
n
!
c
!
c
n 0
(c ) c 1 P0
P L ( ) c
L c
c(c!)(1 ) 2
1
L
w ;..wQ w (1 / );.. LQ wQ
L LQ / c
37
c 1
Multiserver Queue
Value of P0
for M/M/c
model.
38
Multiserver Queue
Values of
L for
M/M/c
models.
39
Multiserver Queue
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.
41
c 1
K
n 0 n
K
n
P0 ,
P0
Pn
K!
( K n)!c!c
n c
n c
K!
( K n)! c!c n c
nP ,
n
n 0,1,..., c 1
n
w L / e ,
n c, c 1,... K
e / c
n 0
where e is the long run effective arrival rate of customers to queue (or entering/exiting service)
( K n )P
n 0
42
2 1
10
n 0 n
P0
20
10
10!
(10 n)!2!2
n2
n2
20
10 of machines in system:
Expected number
nP
0.065
3.17 machines
n 0
K number
L 10 of
3.17
6.83 machines
The average
running
machines:
43