Queuing Theory
Queuing Theory
Queuing
Outline
1. Fundamentals
2. Poisson Distribution
3. Notation
4. Applications
5. Analysis
a. Graphical
b. Numerical
6. Example
1
03/12/2024
Poisson Distribution
• Count distribution
– Uses discrete values
– Different than a continuous distribution
P(n ) =
(lt )n e - lt
n!
P(n) = probability of exactly n vehicles arriving over time t
n = number of vehicles arriving over time t
λ = average arrival rate
t = duration of time over which vehicles are counted
2
03/12/2024
Poisson Ideas
P(0) = P(h ³ t ) =
(lt )0 e - lt
= e -lt = e - qt 3600
0!
P(n ) =
(0.20 veh min ´ t ) e - (0.20veh min )t
n
n!
3
03/12/2024
Example Calculations
Example Graph
0.25
0.20
Probability of Occurance
0.15
0.10
0.05
0.00
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
4
03/12/2024
Example Graph
0.25
0.15
0.10
0.05
0.00
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
0.9
Mean = 0.2 vehicles/minute
0.8 Mean = 0.5 vehicles/minute
Probability of Excedance
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
0 2 4 6 8 10 12 14 16 18 20
Time Between Arrivals (minutes)
5
03/12/2024
Queue Notation
Number of
Arrival rate nature service channels
X /Y / N
Departure rate nature
• Popular notations:
– D/D/1, M/D/1, M/M/1, M/M/N
– D = deterministic distribution
– M = exponential distribution
6
03/12/2024
Maximum delay
t1 Time
• M/D/1
r 2
– Average length of queue Q=
2(1 - r )
1 æ r ö
– Average time waiting in queue w = ç ÷
2µ çè 1 - r ÷ø
1 æ 2 - r ö
– Average time spent in system t= ç ÷
2 µ çè 1 - r ÷ø
7
03/12/2024
• M/M/1
r 2
– Average length of queue Q=
(1 - r )
1 æ l ö
– Average time waiting in queue w = ç ÷
µ çè µ - l ÷ø
1
– Average time spent in system t=
µ - l
• M/M/N
P0 r N +1 é 1 ù
– Average length of queue Q= ê 2 ú
N! N ë (1 - r N ) û
r + Q 1
– Average time waiting in queue w = -
l µ
r + Q
– Average time spent in system t=
l
8
03/12/2024