Queuing Theory
Queuing Theory
Queuing Theory
Measurement of Effectiveness
Overview
Queuing Theory
Arrival distribution
Service time distribution
Kendal notation
Measurement of effectiveness
M/M/1
M/M/s
Queuing Optimization
Optional: Queue with Limits
Objectives
Queuing Model
Banks
Traffic
Hospitals
Go e nment offices
Government
Supermarkets
R t
Restaurants
t
Documents in office
Files
Products queue for Machine
Queueing System
Input:
Output:
Arrival Distribution
Distribution of arrivals
Probability of x arrivals in a specific time
period:
P ( x) =
N ti
Notice:
PMF
x e
x!
, x = 0,1, 2,"
Answer Practice 1
Probability
0.4724
0.3543
0.1329
0.0332
0.0062
5 or more
0 0010
0.0010
Service distribution
Most common
Exponential distribution
P ( service time t ) = 1 e
e = 2.71828
Notice: CDF
Example (Practice 2)
Answer Practice 2
Queueing Discipline
Measurement of Effectiveness
MOE (contd)
Kendall Notation
A = prob.
prob distribution of arrivals
B = prob. distribution of service time
k = number of channels
MOE of M/M/1
Utilization factor
U = = <1
Pn = n P0
P0 = 1 = 1
Wq = W
1
W=
2
Lq = Wq =
( )
L = W = Lq +
Practice 3: M/M/1
U, P0, Lq, L, W, Wq
Pn where n = 0 to (7 or more)
Answer Practice 3
2
0 752
0.75
Lq =
=
= 2.25 customers
( ) 1(1 0.75 )
1
Wq = W = 4 = 3 minutes
1
0.75
= 0.25
P0 = 1 = 1 = 1
1
Pn = P0 = ( 0.75 ) 0.25
n
Numberofcustomers
0
1
2
3
4
5
6
7ormore
Probability
25.00%
18.75%
14.06%
10 55%
10.55%
7.91%
5.93%
4.45%
13.35%
Sum
25.00%
43.75%
57.81%
68 36%
68.36%
76.27%
82.20%
86.65%
100.00%
2
2.
Practice 4: M/M/1
improved service
Answer Practice 4
1
Wq = W = 2
= 1.2 minutes
1.25
0.75
P0 = 1 = 1 = 1
= 0.40
1.25
Pn = P0 = ( 0.60 ) 0.40
n
Numberofcustomers
0
1
2
3
4
5
6
7ormore
Probability
40.00%
24.00%
14.40%
8 64%
8.64%
5.18%
3.11%
1.87%
2.80%
Sum
40.00%
64.00%
78.40%
87 04%
87.04%
92.22%
95.33%
97.20%
100.00%
MOE of M/M/s
Utilization factor
U = 1s
s
+
P0 =
n =0 n ! s ! s
s 1
P0 s +1
Lq =
L = Lq +
( s 1)!( s )
Prob. Of Waiting
Wq =
Lq
W = Wq +
s
Pw =
P0
s ! ( s )
n
P0
for n s
for n > s
Answer practice-5
TC = Cw L + Cs k
= 0.75, = 1.0
Server wages,
g , benefit and other direct costs is
P700/hour
Opportunty cost of losing a customer is P1000/hour
for customer waiting time
Answer Practice 6
MOE of M/M/s/K
U = 1s ( L Lq )
Utilization factor
Lq =
P0 s
s !(1 )
(1
K s
( K s )
K s
n = s +1 s
K
(1 ) ) ,
s 1
L = nPn + Lq + s 1 Pn
n =0
n =0
s 1
ns
Wq =
L
W=
(1 PK )
n
P0
n!
n
Pn = n s P0
s !s
0
(1 PK )
for n = 1, 2," , s
for n = s + 1, s + 2," , K
for n > K
Practice 7
MOE of M/M/s//N
N !
N !
+
P0 =
ns
n =0 ( N n )!n !
N
n
!
s
!
s
(
)
n=s
s 1
Lq = ( n s ) Pn
n=s
s 1
L = nPn + Lq + s 1 Pn
n =0
n =0
s 1
Wq =
L
W=
( N L)
N ! n P0
( N n )!n !
N ! n P
0
Pn =
ns
!
!
N
n
s
s
(
)
( N L)
for 0 < n s
for s < n N
for n > N
Practice 8