Tutorial 4 Simulation by Hand
Tutorial 4 Simulation by Hand
Tutorial 4
Simulation by Hand
Question 1
Susan runs a pizza restaurant and each day she needs to decide how many orders of
pizza ingredients to purchase from the wholesaler. The number of pizza sales each
day is between 1 to 7, and the frequency distribution of pizza sales (X) is obtained
using sales from previous 100 days:
Pizza Sales (X) 1 2 3 4 5 6 7
Number of 5 12 16 25 20 16 6
days
In this question, you will design a SIMULATION BY HAND experiment over 10 days
(i.e. 10 trials). The random numbers from 00-99 have already been generated in
List 1 shown on the next page.
1
CB2203 Data-Driven Business Modeling
4. Suppose Susan orders 5 pizza ingredients on each day and makes all the
ingredients into pizza at the beginning of the day (i.e., Pizza supply is fixed at
5 each day). Each pizza is sold for $10, and unsold pizza will be donated to
local charity and receive $0. The cost of each pizza is $5. How would you
calculate the average profit over the 10-day period simulated in question 2?
Notes: Unsold pizza will bring $0 revenue. In days of pizza shortages,
customers will just switch to other pizza stores for purchasing pizza.
[Profit = $10*max(5,0) - 5*5]
Day Random # of pizza Cost Revenue Profit
Number sales ($5/pizza) ($10/pizza) (Cost-Revenue)
1 21 3 $5*5=25 3*$10=30 30-25=5
2 85 6 25 5*$10=50 50-25=25
3 71 5 25 5*$10=50 50-25=25
4 48 4 25 4*$10=40 40-25=15
5 39 4 25 4*$10=40 40-25=15
6 31 3 25 3*$10=30 30-25=5
7 35 4 25 4*$10=40 40-25=15
8 12 2 25 2*$10=20 20-25= -5
9 73 5 25 5*$10=50 50-25=25
10 41 4 25 4*$10=40 40-25=15
Average profit: sum(all profit column)/total number of tdy
(5+25+25+15+15+5+15-5+25+15)/10
= $14
2
CB2203 Data-Driven Business Modeling
3
CB2203 Data-Driven Business Modeling
4
CB2203 Data-Driven Business Modeling
List 3 – Random numbers to determine the service time. Start from the top
of the list. There may be more random numbers than you need.
52
37
82
69
98
96
33
50
88
90
50
27
45
81
66
74
30
59
67
60
(a) Calculate the cumulative probability based on above data tables (Service Time
& Customer Arrivals), assign the corresponding 2-digit random numbers and
then fill in the following two forms.
Data for Service Time
Service Time Probability Cumulative Random Number
(Minutes) (Frequency) Probability Assignment
0 0.00 0.00 (impossible)
1.0 0.25 0.25 01-25
2.0 0.20 0.45 26-45
3.0 0.40 0.85 46-85
4.0 0.15 1 89-00
Data for Customer Arrivals
Time between Probability Cumulative Random Number
Successive (Frequency) Probability Assignment
Customer Arrivals
0 0.10 0.1 01-10
1.0 0.35 0.45 11-45
2.0 0.25 0.7 46-70
3.0 0.15 0.85 71-85
4.0 0.10 0.95 86-95
5.0 0.05 1 96-00
(b) Assume the bank will open at 9:00 am and there is only one teller available, fill
in the following form to design a SIMULATION BY HAND experiment over 15
customers (i.e. 15 trials).
Custome Rando Interval Time of Random Servic Start End Wait Idle
5
CB2203 Data-Driven Business Modeling
(c) Given the existing service level, does the drive-in window meet this criterion?
6
CB2203 Data-Driven Business Modeling
Question 3
The Three Hills Power Company provides electricity to a large metropolitan area
through a series of almost 200 hydroelectric generators. Management recognizes
that even a well-maintained generator will have periodic failures or breakdowns. As
expensive as the maintenance staff salaries are, breakdown expenses are even
higher. For each hour that one of its generators is down, Three Hills loses
approximately $75. Stephanie Robbins is the Three Hills Power Company
management analyst assigned to simulate maintenance costs. Robbins identifies two
important maintenance system components. First, the time between successive
generator breakdowns varies historically from as little as 0.5 hour to as much as 3
hours. For the past 100 breakdowns, she tabulates the frequency of various times
between machine failures:
The simulation of 15 generator breakdowns and the repair times required when one
repairperson was on duty per shift. The total simulated maintenance cost of the
previous system was $4,320. Robbins would now like to examine the relative cost-
effectiveness of adding one more repairing worker per shift. Each new repairperson
would be paid $30 per hour, the same rate as the first is paid. Robbins makes one
vital assumption as she begins—that repair times with two repairing workers will be
exactly one-half the times required with only one repairperson on duty per shift. In
the following table, she performs a statistical analysis of past repair times:
7
CB2203 Data-Driven Business Modeling
8
CB2203 Data-Driven Business Modeling
(a) Assume the first day begins at midnight (00:00 hours), fill in the following three
tables to design a SIMULATION BY HAND proposed maintenance system change
over a 15-generator breakdown period. Select the random numbers needed for
time between breakdowns from List 4. Select random numbers for generator
repair times from List 5.
9
CB2203 Data-Driven Business Modeling
(b) Calculate the cost of labor hours and cost of machine downtime. Measure the
simulated total maintenance cost.
10
CB2203 Data-Driven Business Modeling
Question 4
Dr. Mark Coleman is a dentist who owns his dental clinic. Coleman tries hard to
schedule appointments so that patients do not have to wait beyond their
appointment time. His October-20th schedule is shown in the following table.
Unfortunately, not every patient arrives exactly on schedule, and expected times to
examine patients are just that—expected. Some examinations take longer than
expected, and some take less time.
List 6 – Random numbers to determine the patients’ arrival time. Start from
the top of the list. There may be more random numbers than you need.
60
08
19
29
36
72
30
27
50
64
11
CB2203 Data-Driven Business Modeling
List 7 – Random numbers to determine the examination time. Start from the
top of the list. There may be more random numbers than you need.
80
45
86
99
02
34
87
08
86
84
(a) Assume that Dr. Coleman is ready to start his workday at 9:30 a.m. and that
patients are treated in order of their scheduled exam, fill in the following forms
to design a SIMULATION BY HAND.
(b) Dr. Coleman has to leave at 12:10 p.m. on October 20 to catch a flight to a
dental convention in New York, otherwise he will miss his flight. Will he be able
12
CB2203 Data-Driven Business Modeling
to make the flight? Comment on this simulation and explain what factor
contributes to this situation? (Hint: did patient(s) arrive on time? Is the
estimated examination time accurate?)
13