NivaarExam PrepOfficial exam papers ↗

16-Civ-B10 Traffic Engineering · May 2016

Question 2 of 7: Single-Channel Queueing at a Customs Booth

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

Notes on this paper

Paper format. National Examinations, May 2016 — 98-Civ-B10 Traffic Engineering. Three-hour duration; OPEN BOOK, any non-communicating calculator permitted. Seven questions, all of equal value (20 marks each) with the mark split printed in the paper's own grading scheme; the paper states that a total of five solutions is required and that only the first five in the answer book will be marked. All seven questions are solved here, because this set is a study resource rather than a sitting. The paper also permits assumptions: “Any data required, but not given, can be assumed” — every assumption made below is stated explicitly where it is used.

Reference texts. Garber, N. J. & Hoel, L. A., Traffic and Highway Engineering, 5th ed. (Cengage) — the core reference for this exam code; Transportation Association of Canada, Geometric Design Guide for Canadian Roads (TAC GDG); AASHTO, A Policy on Geometric Design of Highways and Streets (the “Green Book”, 2001 edition — the source of the sight-distance table printed on this paper); Transportation Research Board, Highway Capacity Manual (HCM); Transportation Association of Canada, Manual of Uniform Traffic Control Devices for Canada (MUTCDC). Canadian practice governs wherever the paper does not name a specific standard.

Question 2: Single-Channel Queueing at a Customs Booth (20 marks — 4 each)

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.

Quantity Symbol Value
Arrival rate (Poisson) $\lambda$ 25 cars/h
Service rate (negative-exponential service times) $\mu$ 28 cars/h
Number of service channels $N$ 1 (single booth)
Queue discipline — FIFO, unlimited waiting room
Traffic intensity $\rho = \lambda/\mu$ $25/28 = 0.8929$

Find. The idle probability, the mean queue length and mean number in the system, the mean waiting and service times, and the probability that more than five vehicles are present (the trigger for opening a second booth).

M/M/1 queue schematiclambda = 25 cars/hPoisson arrivalsqueueunlimited waiting room, FIFOCustoms boothmu = 28 cars/hdeparturesnegative-exponentialservice timestraffic intensity rho = lambda / mu = 25 / 28 = 0.8929 < 1 (the queue is stable)M / M / 1 single-channel queue
Figure 2.1 — The customs booth as an M/M/1 system. Because $\rho = 0.8929 \lt 1$ the queue is stable, but at 89 per cent utilisation the queue statistics are very sensitive to $\lambda$.

Approach. Poisson arrivals, negative-exponential service and a single channel make this a standard M/M/1 queue, so every part follows from $\rho = \lambda/\mu$ and the steady-state relations; part (e) uses the geometric distribution of system state.

  1. Part (a) — Probability the booth is free. The booth is idle whenever the system holds zero vehicles, and for M/M/1 the state probabilities are geometric, $P(n) = \rho^{n}(1-\rho)$. Setting $n = 0$, $$P(0) = 1 - \rho = 1 - \frac{25}{28} = \boxed{0.1071}$$ so the officer is free about 10.7 per cent of the time, and correspondingly busy 89.3 per cent of the time — the utilisation factor $\rho$ is exactly the fraction of time the server is occupied.
  2. Part (b) — Average number waiting to be processed. The mean queue length excludes the vehicle at the booth, $$L_{q} = \frac{\lambda^{2}}{\mu(\mu - \lambda)} = \frac{25^{2}}{28(28-25)} = \frac{625}{84} = \boxed{7.44\ \text{cars}}$$ Cross-checking with the equivalent form $L_{q} = \rho^{2}/(1-\rho) = 0.7972/0.1071 = 7.44$ confirms the arithmetic.
  3. Part (c) — Average number of cars in line. Reading “in line” as the whole system — those waiting plus the one being processed — the mean number in the system is $$L = \frac{\lambda}{\mu - \lambda} = \frac{25}{28 - 25} = \boxed{8.33\ \text{cars}}$$ The two answers are tied together by $L = L_{q} + \rho$: $7.44 + 0.893 = 8.33$, which is simply the statement that on average $\rho$ of a vehicle is at the booth. That identity is the cleanest way to keep parts (b) and (c) straight.
  4. Part (d) — Waiting time and service time. Applying Little's law to the queue alone gives the mean wait before service, $$W_{q} = \frac{L_{q}}{\lambda} = \frac{7.44}{25} = 0.2976\ \text{h} = \boxed{17.9\ \text{min}}$$ The mean time actually spent being processed is the reciprocal of the service rate, $$\overline{t}_{s} = \frac{1}{\mu} = \frac{1}{28}\ \text{h} = \boxed{2.14\ \text{min}}$$ so the total time in the system is $W = W_{q} + 1/\mu = 20.0$ min, which also equals $L/\lambda = 8.33/25 = 0.3333$ h — a second independent check. Note the proportions: a driver spends about eight times as long waiting as being served, which is the practical argument for the second booth in part (e).
  5. Part (e) — Probability a second booth is opened. A second booth is opened when the line exceeds five vehicles. Using the geometric state distribution, the probability of more than $n$ vehicles in the system is $$P(\gt n) = \rho^{\,n+1}$$ With $n = 5$, $$P(\gt 5) = \left(\frac{25}{28}\right)^{6} = (0.8929)^{6} = \boxed{0.507}$$ so the trigger is met roughly 50.7 per cent of the time. That is the substantive engineering conclusion: at 89 per cent utilisation a single booth is over the second-booth threshold for about half of every hour, so the “overflow” booth is not an exception but the normal operating state, and the border crossing should be staffed for two channels during this demand period.
Question 2 — final results
Part Quantity Result
(a) Probability the booth is free, $P(0)$ $0.1071$ (10.7 % of the time)
(b) Mean number waiting, $L_{q}$ $7.44$ cars
(c) Mean number in the system, $L$ $8.33$ cars
(d) Mean wait before service, $W_{q}$ $0.2976$ h $= 17.9$ min
(d) Mean processing time, $1/\mu$ $0.0357$ h $= 2.14$ min
(d) Mean total time in the system, $W$ $0.3333$ h $= 20.0$ min
(e) $P(\text{more than five in the system})$ $0.507$

Check — two wording ambiguities, resolved and stated. First, parts (b) and (c) both ask for a count; they are only distinct if one excludes and the other includes the vehicle at the booth, which is the standard textbook pairing of $L_{q}$ and $L$ used above. Second, “the line of cars is longer than five vehicles” is taken to mean more than five vehicles in the system, giving $\rho^{6} = 0.507$. Two neighbouring readings are worth recording because a marker may accept either: five or more in the system gives $\rho^{5} = 0.567$, and more than five waiting (i.e. more than six in the system) gives $\rho^{7} = 0.452$. All three exceed 45 per cent, so the conclusion — a second booth is needed for much of the hour — does not depend on the reading.