Fundamentals of Transportation/Queueing
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)
| ' | M/D/1 | M/M/1 |
|---|---|---|
| Q (average queue size (#)) | ||
| w (average waiting time) | ||
| t (average total delay) |
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:
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
Average queue size (Q)
(within rounding error)
Average wait time
Average delay time
Comparison
We can compute the same results using the M/D/1 equations, the results are shown in the Table below.
| ' | 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
Expected number of units in the system
Mean Queue Length
Average waiting time of arrival, including queue and service
Average waiting time in queue
Probability of spending time t or less in system
Probability of spending time t or less in queue
Probability of more than N vehicles in queue
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
- ↑ == 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.