Simulation
Simulation
Simulation
Modeling
To accompany
Quantitative Analysis for Management, Twelfth Edition,
by Render, Stair, Hanna and Hale
Power Point slides created by Jeff Heyl Copyright ©2015 Pearson Education, Inc.
Introduction
• Simulation is one of the most widely used
quantitative analysis tools
• To simulate is to try to duplicate the features,
appearance, and characteristics of a real
system
– Build a mathematical model that comes as close
as possible to representing the reality of the
system
– Physical models can also be built to test systems
– Problems can range from simple to extremely
complex
Specify Values of
Variables to Be Tested
Conduct the
Simulation
Examine the
Results
FREQUENCY PROBABILITY OF
DEMAND FOR TIRES
(DAYS) OCCURRENCE
0 10 10/200 = 0.05
1 20 20/200 = 0.10
2 40 40/200 = 0.20
3 60 60/200 = 0.30
4 40 40/200 = 0.20
5 30 30/200 = 0.15
200 200/200 = 1.00
Numbers
Random
0.40 – 0.35
– 36
35
0.15
0.20 – – 16
15 Represents 1
0.05 06 Tire Demanded
–
– 05
– 01
0.00 –
0 1 2 3 4 5
Daily Demand for Radials
CUMULATIVE INTERVAL OF
DAILY DEMAND PROBABILITY PROBABILITY RANDOM NUMBERS
0 0.05 0.05 01 to 05
1 0.10 0.15 06 to 15
2 0.20 0.35 16 to 35
3 0.30 0.65 36 to 65
4 0.20 0.85 66 to 85
5 0.15 1.00 86 to 00
52 06 50 88 53 30 10 47 99 37
37 63 28 02 74 35 24 03 29 60
82 57 68 28 05 94 03 11 27 79
69 02 36 49 71 99 32 10 75 21
98 94 90 36 06 78 23 67 89 85
96 52 62 87 49 56 59 23 78 71
33 69 27 21 11 60 95 89 68 48
50 33 50 95 13 44 34 62 64 39
88 32 18 50 62 57 34 56 62 31
90 30 36 24 69 82 51 74 30 35
Expected
daily
demand
(0.05)(0) + (0.10)(1) + (0.20)(2) + (0.30)(3)
+ (0.20)(4) + (0.15)(5)
2.95 tires
Hardware Has
order
arrived?
Yes Increase beginning
inventory by
quantity ordered
Store No
Select random number
to generate today’s
demand
FIGURE 13.3 – Is
Yes Record
Flow Diagram for demand greater
number of
than beginning
Simkin’s Inventory inventory lost sales
Example ?
No
Compute ending inventory Record ending
= Beginning inventory inventory = 0
– Demand
Is Has
ending inventory Yes order been No Place
less than reorder placed that hasn’t order
point? arrived yet
?
No Have Yes Select random
No enough days number to
of this order policy generate lead
been simulated time
?
Yes
Compute average ending inventory,
average lost sales, average number of End
Copyright ©2015 Pearson Education, Inc. orders placed, and corresponding costs 13 – 27
Simkin’s Hardware Store
• Using the table of random numbers, the
simulation is conducted using a four-step
process
1. Begin each day by checking whether an ordered
inventory has arrived (column 2). If it has,
increase the current inventory (in column 3) by
the quantity ordered.
2. Generate a daily demand from the demand
probability distribution by selecting a random
number. This random number is recorded in
column 4. The demand simulated is recorded in
column 5.
Average
lost sales
Average
number of
orders placed
Copyright ©2015 Pearson Education, Inc. 13 – 31
Analyzing Simkin’s
Inventory Cost
• Simkin’s store is open 200 days a year
• Estimated ordering cost is $10 per order
• Holding cost is $6 per drill per year
• Lost sales cost $8
Average number of
nightly arrivals
Is
repairperson free No Wait until previous
to begin repair? repair is completed
FIGURE 13.4 –
Three Hills Flow Yes
Diagram
Generate random number for repair
time required
No Enough
breakdowns
simulated?
Yes
Compute downtime and comparative End
costs data
TIME BETWEEN
RECORDED NUMBER RANDOM
MACHINE OF TIMES CUMULATIVE NUMBER
FAILURES (HRS) OBSERVED PROBABILITY PROBABILITY INTERVAL
0.5 5 0.05 0.05 01 to 05
1.0 6 0.06 0.11 06 to 11
1.5 16 0.16 0.27 12 to 27
2.0 33 0.33 0.60 28 to 60
2.5 21 0.21 0.81 61 to 81
3.0 19 0.19 1.00 82 to 00
Total 100 1.00
NUMBER RANDOM
REPAIR TIME OF TIMES CUMULATIVE NUMBER
REQUIRED (HRS) OBSERVED PROBABILITY PROBABILITY INTERVAL
1 28 0.28 0.28 01 to 28
2 52 0.52 0.80 29 to 80
3 20 0.20 1.00 81 to 00
Total 100 1.00