NivaarExam PrepOfficial exam papers ↗

16-Civ-B7 Transportation Planning and Engineering · May 2017

Question 2 of 7: Deterministic Queueing at a Parking Lot

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

Paper format. National Examination, May 2017 — 16-Civ-B7 Transportation Planning & Engineering. Three hours; closed book with one two-sided aid sheet; seven questions of equal value (20 marks each), of which any five constitute a complete examination. All seven are solved here, because the set is a study resource rather than an exam script.

Reference texts. Garber & Hoel, Traffic and Highway Engineering, 5th ed. (queueing, shock waves, traffic flow theory); Papacostas & Prevedouros, Transportation Engineering and Planning, 3rd ed. (the four-step model); Ortuzar & Willumsen, Modelling Transport, 4th ed. (trip distribution, discrete choice, assignment); Ben-Akiva & Lerman, Discrete Choice Analysis (logit and the IIA property); Meyer & Miller, Urban Transportation Planning, 2nd ed. (land use interaction, travel demand management); Transportation Association of Canada, Geometric Design Guide for Canadian Roads. Canadian practice is assumed throughout: travel-demand work in Canada is done under provincial and regional model frameworks, and this paper is written in SI units.

Note on the paper. The 16-Civ-B7 paper examined here is Transportation Planning & Engineering: travel-demand forecasting, traffic flow theory, discrete choice and network assignment. No pavement, materials or geometric-design question appears.

Question 2: Deterministic Queueing at a Parking Lot (20 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. A single service channel (the attendant) with a piecewise-constant arrival rate and a constant service rate, measured in minutes from 8:00 am.

Given data — arrival and service rates
Interval (from 8:00 am)Clock timeArrival rate $\lambda$ (veh/min)Service rate $\mu$ (veh/min)
$0 \le t < 30$8:00 – 8:30126
$30 \le t < 45$8:30 – 8:4506
$t \ge 45$from 8:4536

Find. The time at which the queue clears, the maximum queue length and the maximum waiting time, and the total and average delay accumulated up to that time.

01020304050607080060120180240300360420480Time from 8:00 am (minutes)Cumulative vehiclesmax queue 180 vehmax wait 30 minArrivals A(t)Departures D(t) - 6 veh/minqueue clears at 9:15 amno arrivals 8:30-8:45shaded area = total delay 6075 veh-min
Figure 2.1 — Cumulative arrival and departure curves at the parking-lot booth. The vertical gap is the queue, the horizontal gap is an individual vehicle's wait, and the shaded area is the total delay of 6075 veh-min.

Approach. Build the cumulative arrival curve $A(t)$ and the cumulative departure curve $D(t)$ as piecewise-linear functions of time, then read every quantity off them geometrically: the queue clears where the curves meet, the queue length is the vertical gap, the waiting time is the horizontal gap, and the total delay is the enclosed area.

Steps 1 to 3 below construct the diagram and answer part (a); steps 4 and 5 answer part (b), the maximum queue length and the maximum waiting time; and steps 6 and 7 answer part (c), the total delay and the average delay per vehicle.

  1. Construct the cumulative arrival curve. Cumulating each rate over its interval, $$A(t) = \begin{cases} 12t, & 0 \le t \le 30 \\ 360, & 30 \le t \le 45 \\ 360 + 3(t-45), & t \ge 45 \end{cases}$$ so that 360 vehicles have arrived by 8:30 and the curve is flat through the 15 minutes in which the access road was blocked.
  2. Construct the cumulative departure curve. Because $\lambda > \mu$ from the first instant, a queue exists continuously and the attendant is never starved, so the server works at its capacity throughout: $D(t) = 6t$ for as long as the queue lasts.
  3. Part (a) — locate the clearance point. The queue vanishes when the two cumulative curves meet. On the third arrival branch, $$360 + 3(t-45) = 6t \;\Longrightarrow\; 360 - 135 = 3t \;\Longrightarrow\; t = 75\ \text{min}$$ Both curves pass through 450 vehicles at that instant, confirming the intersection. Measuring 75 minutes from 8:00 am, $$\boxed{\text{the queue clears at } t = 75 \text{ min}, \text{ i.e. at } 9\text{:}15\text{ am}}$$ The check that matters is the sign of the queue on each branch: the queue grows at $12-6 = 6$ veh/min until 8:30, then falls at 6 veh/min while no vehicles arrive, then falls more slowly at $6-3 = 3$ veh/min after 8:45. It is still 90 vehicles at 8:45, so the queue survives into the third branch and the intersection was correctly sought there.
  4. Part (b) — read the maximum queue length. The queue is the vertical distance $Q(t) = A(t) - D(t)$, which grows monotonically until 8:30 and shrinks thereafter, so its maximum occurs at the moment the arrivals stop: $$Q_{\max} = A(30) - D(30) = 360 - 180 = \boxed{180 \ \text{vehicles}}$$
  5. Part (b) — read the maximum waiting time. Under first-in-first-out service, the wait of a vehicle is the horizontal distance between the curves at its own cumulative number. The vehicle arriving at $t = 30$ is the 360th; it is served when $D = 360$, that is at $t = 360/6 = 60$ min. Its wait is $$w_{\max} = 60 - 30 = \boxed{30 \ \text{minutes}}$$ That this is the worst case can be seen from the branches: a vehicle arriving at time $t \le 30$ waits $12t/6 - t = t$ minutes, which increases up to 30 minutes at $t = 30$; a vehicle arriving after 8:45 waits $15 - 0.5(t-45)$ minutes, which decreases from 15 minutes. The peak wait therefore belongs to the last vehicle to arrive before the access road closed — note that the longest wait and the longest queue occur at the same instant here, but they are different quantities and in general need not coincide.
  6. Part (c)(1) — integrate the queue to obtain the total delay. The total delay is the area enclosed between the two curves, which splits into the three straight-sided regions visible on the diagram: $$D_{0-30} = \tfrac{1}{2}(6)(30)^2 = 2700 \ \text{veh-min}$$ $$D_{30-45} = \tfrac{1}{2}(180 + 90)(15) = 2025 \ \text{veh-min}$$ $$D_{45-75} = \tfrac{1}{2}(90)(30) = 1350 \ \text{veh-min}$$ Adding the three, $$\boxed{\text{total delay} = 2700 + 2025 + 1350 = 6075 \ \text{veh-min}}$$
  7. Part (c)(2) — divide by the number of vehicles delayed. Every vehicle served up to clearance passed through the queue, and $D(75) = 450$ vehicles have been served, so $$\bar{d} = \frac{6075}{450} = \boxed{13.5 \ \text{minutes per vehicle}}$$

The results are internally consistent in a way worth checking on any queueing question: the average delay of 13.5 minutes is well under half of the 30-minute maximum, which is what one expects from a queue that builds sharply and drains slowly, and the average queue length over the 75 minutes, $6075/75 = 81$ vehicles, is less than half the peak of 180 for the same reason.

Final results — Question 2
QuantityValue
Time the queue clears$t = 75$ min after 8:00 am, i.e. 9:15 am
Maximum queue length (at 8:30 am)180 vehicles
Maximum waiting time (vehicle arriving 8:30 am)30 minutes
Total vehicle delay6075 veh-min (101.25 veh-h)
Vehicles served to clearance450
Average delay per vehicle13.5 minutes