Professional Documents
Culture Documents
Queuing Theory
Queuing Theory
Queuing Theory
Examples are:
waiting to pay in the supermarket
waiting at the telephone for information
planes the circle before they can land
Example questions:
what is the average waiting time of a customer?
how many customers are waiting on average?
how long is the average service time?
what is the chance that one of the servers has
nothing to do?
Queuing system
Target group of
potential customers
queue
server(s)
customers
queuing system
2
Kendalls notation
A/B/c/N/K where:
A the interarrival distribution
B the service time distribution
C the number of parallel servers
N the system capacity
K the size of the target group.
Kendalls notation
Example:
M/M/1//
single-server system with unlimited queuing capacity and
an infinite target group. The arrival intervals and the service
times are distributed exponentially
If N and K are infinite, they can be left out of the notation.
M/M/1// is abbreviated to M/M/1
Kendalls notation
Exercises:
Output variables
Transient behaviour
time
10
Markov models
11
Utilisation of server
12
utilisation of M/../1 is r =l /m
Littles equation
13
Littles equation: L = l * w
P0 * l
P1 * l
P2 * l
P3 * l
Pn-1 * l
Pn * l
.
0
P1 * m
14
P2 * m
P3 * m
State
P4 * m
Steady state, so P0 * l = P1 * m
But also: P0 * l + P2 * m= P1 * (l + m)
Pn = l n/mn* P0
Pn* m
Pn+1* m
!P
=1
n=0
n ="
()%
()%
&& ## * P0 = 1 = P0 ! && ##
!
n =0 ' $
n =0 ' $
15
1
1" ! /
n="
()%
&& ##
!
n =0 ' $
n=)
& *# &*#
L = ( n * Pn = ( n * $$1 ' !! * $$ !!
n =0
n =0
% " %"
16
'
=
L=
!
"!
17
=
L
!
1
wQ = w "
LQ =
Pn
! wQ
!
"!
1
"!
!
( "! )
!2
( "! )
! ! n
= (1" )( )
18
What is:
average time in system?
Average waiting time?
Average number of customers in the queue?
probability there are exactly 5 customers in the
system?
L
w=
=
L
#
wQ = w $
19
LQ =
P0
=
1
# wQ
=
=
=
$2
# ( +" )
!+
2 (1$ ! )
$2
2
1 # ( +" )
+
2 (1$ ! )
$2
2
# ( +" )
2 (1$ ! )
2
$2
2
# ( +" )
2 (1$ ! )
1$ !
=
L
20
LQ =
#1
= +
"
1
"w Q
wQ = w#
!+
1+ k ! 2
2k 1# !
1+ k ! -1
2k 1# !
1+ k ! -1
2k 1# !
1+ k ! 2
2k 1# !
21
=
L
"
wQ = w#
22
LQ =
"w Q
!+
1 !2
2 1# !
-1
#1 1 !
= +
2 1# !
-1
1 !
=
2 1# !
2
1 !
=
2 1# !
23
Variable
M/D/1
24
# "1
L=#+
2(1 " # )
M/G/1
Sta
dardd=1/15
M/G/1
Sta
dardd=1/10
M/G/1
# 2 (1 + $ 2 2 )
L=#+
2(1 " # )
0,73
L 1
wQ = "
!
0.01
L 1
wQ = "
!
0.13
# 2 (1 + $ 2 2 )
L=#+
2(1 " # )
2.83
L 1
wQ = "
!
0.22
Standardd=1/5
# 2 (1 + $ 2 2 )
L=#+
2(1 " # )
7.33
L 1
wQ = "
!
0.67
M/E1/1
k=1
# 2 (1 + k )
L=#+
2k (1 " # )
L 1
wQ = "
!
0.13
M/E2/1
k=2
# 2 (1 + k )
L=#+
2k (1 " # )
1.67
L 1
wQ = "
!
0.1
M/E3/1
k=3
# 2 (1 + k )
L=#+
2k (1 " # )
1.55
L 1
wQ = "
!
0.09
25
1 ! PN
'e
(
w
'e
'=
'&
'=
wQ
w!
LQ
' e w Q = L ! (1 ! P0 )
Pn
" (1 ! a)a n
$$
1 ! a N +1
#
1
$
$% N + 1
26
'&
'&
n = 0, 1, K , N
' =
27
more servers
if umber of customers in system n < c then new arrival
can be served immediately
stable system if l < cm
utilisation rate is not r = l /mbut r = l /cm
if r > 1 then system grows with (l -cm)
28
29
30
31