NivaarExam PrepOfficial exam papers ↗

23-Ind-A1 Operations Research · Undated paper

Question 8 of 10: Monte Carlo Simulation — Machine Repair Workload

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

Notes on this paper

National Exams — May 2019 — 17-Ind-A1 Operations Research. Three-hour, open-book exam (any non-communicating calculator permitted); the paper totals 175 marks across 10 questions and only 100 marks are required, so a candidate would normally answer a subset — all ten are solved below for completeness.

Reference texts: Hillier & Lieberman, Introduction to Operations Research (11th ed., McGraw-Hill) — linear programming & the simplex method (ch. 3–4), duality & sensitivity analysis (ch. 6), dynamic programming (ch. 11), network optimization & CPM/PERT project crashing (ch. 9–10), queueing theory incl. finite-source (machine-repair) models (ch. 17), decision analysis & the value of information (ch. 15–16), Markov chains (ch. 16), Monte Carlo simulation (ch. 20). Nahmias, Production and Operations Analysis — deterministic EOQ inventory models with and without planned shortages.

Question 8: Monte Carlo Simulation — Machine Repair Workload (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 data — repair-time and breakdown-count distributions
Repair time (hr)123
Probability0.300.300.40
Breakdowns/day012
Probability0.500.300.20

Given. Repair-time distribution and daily-breakdown-count distribution as tabulated; a 34-digit random-number string to drive a hand simulation.

Find. (a) A flowchart for the simulation procedure. (b) Simulate 2 days using the given random numbers; compare the simulated and theoretical average daily repair work.

Approach. Split the digit string into 2-digit random numbers (00–99), map each to a cumulative-probability interval, and for each day first draw the breakdown COUNT, then draw one repair-time number per breakdown that day.

Start: day = 1,total = 0, cum_work = 0Draw RN → no. of breakdowns b(cumulative breakdown-% table)i = 1, day_work = 0i ≤ b ?yesDraw RN → repair time(cumulative repair-time table)day_work += repair time;i += 1nocum_work += day_workday ≤ 2 ?yesday += 1nosim. avg = cum_work / 2 days;compare to theoretical avgStopTwo-day Monte-Carlo simulation of daily crane/machine repair work
Flowchart (part a): for each of the 2 days, draw one random number for breakdown count, then one further random number PER breakdown for its repair time.
  1. Assign 2-digit random-number ranges (00–99) by cumulative probability:
    RN assignment (00–99)
    Breakdowns/day0 → 00–491 → 50–792 → 80–99
    Repair time (hr)1 → 00–292 → 30–593 → 60–99
    Splitting the given 34-digit string into 2-digit numbers: 13, 51, 60, 48, 66, 29, 61, 14, 28, 04, 22, 36, 66, 65, 43, 99, 75 (17 numbers — only as many as needed for 2 days are used below).
  2. Day 1. Draw RN = 13 → falls in 00–49 → $b_1=0$ breakdowns. No repair-time draw needed. $$\text{Day 1 work}=0\text{ hr}$$
  3. Day 2. Draw RN = 51 → falls in 50–79 → $b_2=1$ breakdown. Draw one repair-time RN = 60 → falls in 60–99 → repair time = 3 hr. $$\text{Day 2 work}=3\text{ hr}$$ (3 random numbers — 13, 51, 60 — fully determine both simulated days; the remaining 14 numbers in the list are unused.)
  4. Simulated 2-day average vs. theoretical average ($E[\text{breakdowns/day}]\times E[\text{repair time}]$, since repair time per breakdown is independent of the day's breakdown count): $$\text{sim. avg}=\frac{0+3}{2}=1.5\text{ hr/day}$$ $$E[\text{breakdowns}]=0(.5)+1(.3)+2(.2)=0.7;\quad E[\text{repair time}]=1(.3)+2(.3)+3(.4)=2.1$$ $$\text{theoretical avg}=0.7\times 2.1=\boxed{1.47\text{ hr/day}}$$ The 2-day simulated average (1.50 hr/day) is close to the theoretical long-run average (1.47 hr/day) — the small gap is ordinary sampling variability from using only 2 simulated days.
Final results — Question 8
ItemValue
Day 1: breakdowns / work0 / 0 hr
Day 2: breakdowns / work1 / 3 hr
Simulated 2-day average1.50 hr/day
Theoretical average1.47 hr/day