NivaarExam PrepOfficial exam papers ↗

16-Civ-B10 Traffic Engineering · May 2017

Question 2 of 7: Single-Channel Queueing at a Drive-Thru

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

Notes on this paper

Paper format. National Examinations, May 2017 — 16-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 for each 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 as they appear 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” and “the candidate is urged to submit… a clear statement of any assumptions made” — so every assumed value 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 stopping-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); Webster, F. V. & Cobbe, B. M., Traffic Signals, Road Research Technical Paper 56 (HMSO). Canadian practice governs wherever the paper does not name a standard.

Question 2: Single-Channel Queueing at a Drive-Thru (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.

Question 2 — given data
Quantity Symbol Value
Arrival rate (Poisson) $\lambda$ 125 cars/h
Service rate (negative exponential) $\mu$ 138 cars/h
Number of service channels $N$ 1 (single drive-thru lane)
Queue discipline — FIFO, unlimited waiting room
Back-up threshold $n \gt 6$ 6 vehicles

Given. A single-channel drive-thru with Poisson arrivals and negative-exponential service times, as tabulated above.

Find. The idle probability, the mean queue length and the mean system content, the mean waiting time and the mean time in system, and the probability that more than six vehicles are present.

M/M/1 queue schematiclambda = 125 cars/hPoisson arrivalscars waiting to be servedunlimited waiting room, FIFODrive-thru windowmu = 138 cars/hdeparturesnegative-exponentialservice timestraffic intensity rho = lambda / mu = 125 / 138 = 0.9058 < 1 (the queue is stable)M / M / 1 single-channel queue
M/M/1 single-channel queue. The traffic intensity 0.906 is below 1, so the queue is stable and the steady-state formulae apply.

Approach. Confirm stability from the traffic intensity, then apply the standard M/M/1 (single-channel, undersaturated) results in the order utilisation, queue content, time in queue, tail probability.

  1. Establish the traffic intensity and hence stability. The traffic intensity is the ratio of demand to service capability, $$\rho = \frac{\lambda}{\mu} = \frac{125}{138} = 0.9058$$ Because $\rho \lt 1$ the queue does not grow without bound and the steady-state M/M/1 expressions may be used. It is worth noting how close to 1 this is: the worker is busy 90.6 per cent of the peak hour, which is exactly why the queue lengths below come out so large for such a modest arrival rate.
  2. Part (a) — probability the worker is free. The probability of an empty system is the complement of the utilisation, $$P_0 = 1 - \rho = 1 - 0.9058 = \boxed{0.0942}$$ so the worker is free of any order for only about 9.4 per cent of the peak hour — roughly 5.7 minutes in 60.
  3. Part (b) — average number waiting to be processed. The mean number in the queue, excluding the vehicle being served, is $$L_q = \frac{\lambda^{2}}{\mu(\mu - \lambda)} = \frac{125^{2}}{138(138 - 125)} = \frac{15\,625}{1794} = \boxed{8.71 \text{ veh}}$$ Equivalently $L_q = \rho^{2}/(1-\rho) = 0.8205/0.0942$, which returns the same 8.71 veh and is a useful independent check.
  4. Part (c) — average number of cars in line. Taking “in line” as the whole system — the car at the window plus those behind it — the mean content is $$L = \frac{\lambda}{\mu - \lambda} = \frac{125}{13} = \boxed{9.62 \text{ veh}}$$ The two answers must differ by exactly the utilisation, and they do: $9.62 - 8.71 = 0.91 = \rho$, because the server is occupied a fraction $\rho$ of the time and holds one vehicle when occupied.
  5. Part (d) — average wait, and average time in the system. Little's law converts each content into a time. The time spent queueing is $$W_q = \frac{L_q}{\lambda} = \frac{8.71}{125} = 0.06968 \text{ h} = \boxed{4.18 \text{ min}}$$ and the total time from joining the line to driving away with the order is $$W = \frac{L}{\lambda} = \frac{1}{\mu - \lambda} = \frac{1}{13} \text{ h} = \boxed{4.62 \text{ min}}$$ The difference, 0.43 min, is precisely the mean service time $1/\mu = 1/138$ h, which confirms both figures at once.
  6. Part (e) — probability of backing up onto the street. For an M/M/1 queue the probability that more than $N$ vehicles are present is $$P(n \gt N) = \rho^{\,N+1}$$ The line backs onto Main Street once it is longer than six vehicles, so with $N = 6$, $$P(n \gt 6) = 0.9058^{7} = \boxed{0.500}$$ Half of the peak hour is spent with the line spilling onto the street. Summing $P_n = (1-\rho)\rho^{n}$ over $n = 0 \ldots 6$ and subtracting from unity reproduces the same 0.500, which is the cleanest check available on a tail probability.

Check: parts (b) and (c) are distinguished by reading “waiting to be processed” as the queue proper and “in line” as the whole system, and part (d) likewise as $W_q$ then $W$; that reading is the one that makes the four answers a non-redundant set. If (e) is instead read as six vehicles waiting in addition to the one at the window, the threshold becomes $n \gt 7$ and the probability falls to $0.9058^{8} = 0.453$. The 6-or-more reading gives $\rho^{6} = 0.552$. All three are within 10 percentage points, and the design conclusion — that the single lane spills onto an arterial for something like half the peak hour and needs a second order point or a longer storage lane — is unchanged.

Question 2 — final results
Part Quantity Result
— Traffic intensity $\rho$ 0.9058 (stable)
(a) Probability the server is idle, $P_0$ 0.0942 (9.42 %)
(b) Mean number waiting, $L_q$ 8.71 veh
(c) Mean number in the system, $L$ 9.62 veh
(d) Mean time queueing, $W_q$ 4.18 min
(d) Mean time in the system, $W$ 4.62 min
(e) $P(n \gt 6)$ — spill onto Main Street 0.500 (50.0 %)