Fundamentals of Transportation/Queueing

From testwiki
Revision as of 21:06, 6 March 2008 by imported>DavidLevinson (Fundamentals of Transportation/Deterministic Queueing moved to Fundamentals of Transportation/Queueing: Combine Deterministic and Stochastic Queueing into single article)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Queueing[1]


Queues are everywhere: boarding a bus or train or plane, traffic lights and ramp meters, freeway bottlenecks, shopping checkout, exiting a doorway at the end of class, waiting for a computer in the lab, a hamburger at McDonald’s, or a haircut at the barber. Explain why buses come in bunches. The same logic (with different parameters) can be applied to all these phenomena.


Cumulative Input-Output Diagram (Newell Curve)

Based on the departure rate and arrival rate pair data, the delay of every individual vehicle can be obtained. Using the I/O queueing diagram shown in Figure 1, it is possible to find the delay for every individual vehicle: the delay of the ith vehicle is time of departure - time of arrival (t2-t1). Total delay is the sum of the delays of each vehicle, which is the area in the triangle between the A(t) and D(t) curves. Rate of Arrival  0 0 0 0 0 0  Rate of Service

Distributions

Arrival Distribution - Deterministic (uniform) OR Random (e.g. Poisson) Service Distribution - Deterministic OR Random Service Method - First Come First Serve (FCFS) or First In First Out (FIFO) OR Last Come First Served (LCFS) or Last In First Out (LIFO) OR Priority (e.g. HOV bypasses at ramp meters)

Characterizing Queues

Queue Length Characteristics - Finite or Infinite Number of Channels - Number of Waiting Lines (e.g. Ramps = 2, Supermarket = 12)

We use the following notation Arrival Rate = λ Departure Rate = μ

Service time ρ=λμ

Degree of Saturation

Oversaturated: λ>μ

Undersaturated λ<μ

Saturated λ=μ


Uncapacitated Queues (M/D/1) and (M/M/1)

Comparison of M/D/1 and M/M/1 queue properties
' M/D/1 M/M/1
Q (average queue size (#)) Q=ρ22(1ρ) Q=ρ21ρ
w (average waiting time) w=ρ2μ(1ρ) w=λμ(μλ)
t (average total delay) t=2ρ2μ(1ρ) t=1(μλ)

Notes:

  • Average queue size includes customers currently being served (in number of units)
  • Average wait time excludes service time
  • Average delay time is (wait time + service time)

Little's Formula: Q=λw

Example 1

At the Krusty-Burger if the arrival rate is 1 customer every minute, and the service rate is 1 customer every 45 seconds. Find the average queue size, the average waiting time, and average total delay. Assume an M/M/1 process.

Solution

Service time

ρ=λμ=60/6060/45=11.33=0.75

Average queue size (Q)

Q=ρ21ρ=(0.75)210.75=2.25

Q=λw (within rounding error)

Average wait time

w=λμ(μλ)=11.33(1.331)=2.25

Average delay time

t=1(μλ)=1(1.331)=3=w+servicetime=2.25+0.75

Comparison

We can compute the same results using the M/D/1 equations, the results are shown in the Table below.

Comparison of M/D/1 and M/M/1 queue properties
' M/D/1 M/M/1
Q (average queue size (#)) 1.125 2.25
w (average waiting time) 1.125 2.25
t (average total delay) 1.88 3

As can be seen, the delay associated with the more random case (M/M/1, which has both random arrivals and service) is greater than the less random case (M/D/1), which is to be expected.


TO COMPLETE LATER

Uncapacitated queues (M/M/1) (random arrival and random service)

Probability of n units in the system


P(n)=ρn(1ρ)ρ=λμ

Expected number of units in the system E(n)=λμλ

Mean Queue Length E(m)=λ2μ(μλ)

Average waiting time of arrival, including queue and service

E(v)=1(μλ)

Average waiting time in queue

E(w)=λμ(μλ)

Probability of spending time t or less in system

P(vt)=1e(1ρ)λt

Probability of spending time t or less in queue P(wt)=1ρe(1ρ)λt

Probability of more than N vehicles in queue P(n>N)=ρN+1


Key Terms

  • Queueing theory
  • Cumulative input-output diagram (Newell diagram)
  • average queue length
  • average waiting time
  • average total delay time in system
  • arrival rate, departure rate
  • undersaturated, oversaturated
  • D/D/1, M/D/1, M/M/1
  • Channels
  • Poisson distribution,
  • service rate
  • finite (capacitated) queues, infinite (uncapacitated) queues

Variables

  • Arrival Rate = A(t) = λ
  • Departure Rate = D(t) = μ
  • service time = 1/μ
  • Utilization = ρ =λ/ μ
  • Q - average queue size including customers currently being served (in number of units)
  • w - average wait time
  • t = average delay time (queue time + service time)

End Notes

  1. == A Note on Linguistics == American English tends to use “Queueing” (getting 302,000 Google hits), while British English uses “Queuing” (getting 429,000 Google hits) Queueing is the only common English word with 5 vowels in a row. It has been posited: Cooeeing - To call out “cooee,” which is apparently something done in Australia. The uncommon word: archaeoaeolotropic has 6 vowels - a prehistorical item that is unequally elastic in different directions - One suspects it is just made up to have a word with 6 vowels in a row though, and the “ae” is questionable anyway.