23-Ind-A6 Systems Simulation · December 2017
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
National Exams — December 2017 — 98-Ind-A6 Systems Simulation. Three-hour, closed-book exam; one of two permitted calculators (Sharp or Casio), two 8.5″×11.0″ aid sheets (both sides). Format: eight questions of equal value (10 marks each); candidates complete SIX of the EIGHT (only the first six as they appear in the answer book are marked). All eight questions are solved below for completeness (the paper's own Q6 is printed with an orphan leading "6." followed by "2. Consider an M/M/1 system…" and is answered as the paper's sixth question). Common Discrete/Continuous Distribution tables, Student-t and Chi-square tables were supplied with the exam; the values below are the same table values obtained by direct computation.
Reference texts: Banks, Carson, Nelson & Nicol, Discrete-Event System Simulation (5th ed., Pearson) — random-number/random-variate generation, input data analysis, output analysis (replications), comparing alternative systems, queueing simulation, and the simulation study life cycle.
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 server, non-preemptive priority: whenever the server frees up, it picks the highest-priority customer currently waiting (FCFS within a priority class). Five arriving customers:
| Customer | Priority | Interarrival | Arrival | Service Time |
|---|---|---|---|---|
| 1 | High | — | 0 | 0.7 |
| 2 | Low | 0.3 | — | 1.0 |
| 3 | Low | 0.5 | — | 0.8 |
| 4 | High | 0.3 | — | 1.0 |
| 5 | Low | 1.2 | — | 0.5 |
Find. (a) the completed Start/End-Service table; (b) mean waiting time for the two High-priority customers; (c) time-average queue length (waiting only, both priorities pooled in one physical line).
Approach. Chain the interarrival times into absolute arrival times, then hand-step the single server: at each service completion, serve the highest-priority customer among those already arrived and waiting (ties broken by earliest arrival).
| Customer | Priority | Arrival | Start Service | End Service |
|---|---|---|---|---|
| 1 | High | 0.0 | 0.0 | 0.7 |
| 2 | Low | 0.3 | 0.7 | 1.7 |
| 3 | Low | 0.8 | 2.7 | 3.5 |
| 4 | High | 1.1 | 1.7 | 2.7 |
| 5 | Low | 2.3 | 3.5 | 4.0 |
(b) Average waiting time, High-priority. Customer 1 waits $0.0-0.0=0$; Customer 4 waits $1.7-1.1=0.6$. $$\overline{W}_{High} = \frac{0+0.6}{2} = \boxed{0.3}.$$
(c) Average queue length (both priorities, single physical line, waiting only). Tracking the number of customers waiting (excludes whoever is currently in service) against the clock over the whole $[0,4.0]$ run and time-weighting:
| Interval | Waiting | Duration |
|---|---|---|
| [0, 0.3) | 0 | 0.3 |
| [0.3, 0.7) | 1 | 0.4 |
| [0.7, 0.8) | 0 | 0.1 |
| [0.8, 1.1) | 1 | 0.3 |
| [1.1, 1.7) | 2 | 0.6 |
| [1.7, 2.3) | 1 | 0.6 |
| [2.3, 2.7) | 2 | 0.4 |
| [2.7, 3.5) | 1 | 0.8 |
| [3.5, 4.0) | 0 | 0.5 |
| Quantity | Result |
|---|---|
| Average waiting time, High priority | 0.3 |
| Average queue length (waiting-only, pooled) | 1.025 |