NivaarExam PrepOfficial exam papers ↗

16-Civ-A6 Highway Design, Construction, and Maintenance · May 2013

Question 2 of 7: Deterministic queueing at a loading dock

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

Notes on this paper

Paper format. National Examination, 98‑Civ‑A6 Transportation Planning & Engineering (May 2013). Closed book, one two‑sided aid sheet, 3 hours. Seven questions; any five constitute a complete examination and each is of equal value (20 marks). All seven are solved below as a study resource.

Reference texts (subject).



Question 2: Deterministic queueing at a loading dock (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 deterministic (D/D/1) queue at a single dock, measuring time $t$ in minutes after 8:00 am.

Given data
QuantityValue
Arrival rate, 8:00–8:30 ($0\le t\le 30$)8 trucks/min
Arrival rate, after 8:30 ($t\gt 30$)3 trucks/min
Service (departure) rate, from 8:156 trucks/min
Dock opens8:15 am ($t=15$)

Find. The time the queue clears, the maximum queue length, the longest individual waiting time, and the total and average delay from 8:00 am until the queue clears.

01530456080120150240390max queue = 150longest wait 25 minArrivals A(t)Departures D(t)queue clears t=80 (9:20 am)Time t (min after 8:00 am)Cumulative trucks
Cumulative arrival $A(t)$ and departure $D(t)$ curves. The vertical gap is the queue length; the horizontal gap is a truck’s wait. The queue is maximum at $t=30$ and clears where the curves meet, at $t=80$ min.

Approach. Build the cumulative arrival and departure functions, then read the queue length as the vertical gap and the delay as the area between the curves; the queue clears where cumulative arrivals equal cumulative departures.

  1. Write the cumulative arrival curve. Arrivals accumulate at 8/min then 3/min:
    $$A(t)=\begin{cases}8t, & 0\le t\le 30\\ 240+3\,(t-30), & t\gt 30\end{cases}$$
    so $A(30)=240$ trucks have arrived by 8:30.
  2. Write the cumulative departure curve. The dock is closed until $t=15$, then serves 6/min:
    $$D(t)=\begin{cases}0, & 0\le t\le 15\\ 6\,(t-15), & t\gt 15\end{cases}$$
  3. Find when the queue clears. After 8:30 arrivals (3/min) fall below service (6/min), so the queue drains. Setting $A(t)=D(t)$ on that branch:
    $$240+3(t-30)=6(t-15)\;\Rightarrow\;150+3t=6t-90\;\Rightarrow\;t=80\ \text{min}.$$
    Check: $A(80)=150+240=390$ and $D(80)=6(65)=390$. The queue clears
    $$\boxed{t=80\ \text{min after 8:00 am} = 9\!:\!20\ \text{am}.}$$
  4. Maximum queue length (b). The queue grows while arrivals exceed departures. For $15\le t\le 30$ the net rate is $8-6=+2$/min; for $t\gt 30$ it is $3-6=-3$/min, so the queue peaks at the break point $t=30$:
    $$Q_{\max}=A(30)-D(30)=240-6(15)=240-90=\boxed{150\ \text{trucks}.}$$
  5. Longest waiting time (c). With first‑in‑first‑out service the wait is the horizontal gap. The critical truck is the last to arrive during the build‑up, the 240th (arriving at $t=30$). It departs when $D=240$: $6(t_d-15)=240\Rightarrow t_d=55$. Hence
    $$w_{\max}=t_d-t_a=55-30=\boxed{25\ \text{min}.}$$
  6. Total delay (d‑1). Total delay is the area between the two curves. Using the queue function $Q(t)=A(t)-D(t)$ over its three linear segments:
    $$W=\int_0^{15}\!8t\,dt+\int_{15}^{30}\!(2t+90)\,dt+\int_{30}^{80}\!(240-3t)\,dt=900+2025+3750.$$
    $$\boxed{W=6675\ \text{truck-minutes}.}$$
  7. Average delay (d‑2). A total of $A(80)=390$ trucks pass through, so
    $$\bar w=\frac{W}{N}=\frac{6675}{390}=\boxed{17.12\ \text{min per truck}.}$$
Question 2 — results
QuantityResult
(a) Queue clears at$t=80$ min → 9:20 am
(b) Maximum queue length150 trucks (at 8:30 am)
(c) Longest waiting time25 min (truck arriving 8:30 am)
(d‑1) Total delay6 675 truck‑minutes
(d‑2) Average delay per truck17.12 min