Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SIMULATION
CHE 517N Quantitative Methods in Management
Flores, Dharyl C.
01 Introduction: Simulation
Applications
07
SIMULATION
SIMULATION
SIMULATION
simulate means to try to duplicate the
features, appearance, and characteristics
of a real system
to imitate a real-world
situation mathematically, then
to study its properties and
operating characteristics, and,
finally, to draw conclusions
and make action decisions
based on the results of the
simulation
PROCESS OF SIMULATION
Define Problem
Introduce Important
Variables
Construct Simulation
Model
Specify Values of
Variables to Be Tested
Conduct a Simulation
Introduce Important
Variables
In general, the goal of simulation study
is to determine how a system will
Construct Simulation behave under certain conditions.
Model
Conduct a Simulation
Introduce Important
Variables
This involved deciding on the structure of the
model and using a computer to carry out the
Construct Simulation
Model
simulations.
Conduct a Simulation
Introduce Important
Variables
Construct Simulation
Model
Specify Values of
Variables to Be Tested
Conduct a Simulation
Introduce Important
Variables
Construct Simulation
Model
Conduct a Simulation
Introduce Important
Variables The close the approximation of the model to
reality, the less the risk inherent in applying the
Construct Simulation results.
Model
Conduct a Simulation
efforts to
develop nuclear
weapons
1 2 3 4 5
Establishing an Generating
Establishing Building a Simulating a
interval of random
probability cumulative series of trials
random numbers
distributions for probability
numbers for
important input distribution for each variable
variables each variable in
step 1
Five Steps of Monte Carlo Simulation
1 2 3 4 5
Establishing an Generating
Establishing Building a Simulating a
interval of random
probability cumulative series of trials
random numbers
distributions for probability
numbers for
important input distribution for each variable
variables each variable in
step 1
Five Steps of Monte Carlo Simulation
1 2 3 4 5
Establishing an Generating
Establishing Building a Simulating a
interval of random
probability cumulative series of trials
random numbers
distributions for probability
numbers for
important input distribution for each variable
variables each variable in
step 1
Five Steps of Monte Carlo Simulation
1 2 3 4 5
Establishing an Generating
Establishing Building a Simulating a
interval of random
probability cumulative series of trials
random numbers
distributions for probability
numbers for
important input distribution for each variable
variables each variable in
step 1
Five Steps of Monte Carlo Simulation
1 2 3 4 5
Establishing an Generating
Establishing Building a Simulating a
interval of random
probability cumulative series of trials
random numbers
distributions for probability
numbers for
important input distribution for each variable
variables each variable in
step 1
Sample Problem 1:
The manager of a machine shop is concerned about machine
breakdowns. A decision has been made to simulate breakdowns
for a 10-day period. Historical data on breakdowns over the last
100 days are given in the following table:
Number of Frequency
breakdowns (DAYS)
0 10
1 30
2 25
3 20
4 10 Simulate breakdowns for a 10-day period.
5 5 Read two digit random number starting
100 at the top of column 1 and reading
down.
Step 1: Establishing Probability Distributions.
Probability of
The probability, or relative Number of Frequency Occurrence/
frequency, for each possible breakdowns (DAYS) Relative
outcome of a variable is found Frequency
by dividing the frequency of 0 10 10/100 = 0.10
observation by the total 1 30 30/100 = 0.30
number of observations.
2 25 25/100 = 0.25
Number of Cumulative
A cumulative probability is the Probability
breakdowns Probability
probability that a variable (breakdown)
0 10/100 = 0.10 0.10
will be less than or equal to a particular
value. A cumulative distribution lists all 1 30/100 = 0.30 0.40
of the possible values and the
probabilities. 2 25/100 = 0.25 0.65
18 20 84 29 91 73 64 33 15 67 54 07
Read two digit 25 19 05 64 26 41 20 09 88 40 73 34
random number 73 57 80 35 04 52 81 48 57 61 29 35
starting at the top 12 48 37 09 17 63 94 08 28 78 51 23
of column 1 and
54 92 27 61 58 39 25 16 10 46 87 17
reading down.
96 40 65 75 16 49 03 82 38 33 51 20
23 55 93 83 02 19 67 89 80 44 99 72
31 96 81 65 60 93 75 64 26 90 18 59
45 49 70 10 13 79 32 17 98 63 30 05
01 78 32 17 24 54 52 44 28 50 27 68
41 62 57 31 90 18 24 15 43 85 31 97
22 07 38 72 69 66 14 85 36 71 41 58
Step 5: Simulating a series of trials
Simulated number
Interval of Day Random number
Number of of breakdowns
Random
breakdowns 1 18 1
Numbers
2 25 1
0 00 to 09
3 73 3
1 10 to 39
4 12 1
2 40 to 64 5 54 2
3 65 to 84 6 96 5
4 85 to 94 7 23 1
8 31 1
5 95 to 99
9 45 2
10 01 0
17
Simulated number of
Day
breakdowns
1 1 The mean number of breakdowns for this 10-day
2 1 period simulation is 17/10 = 1.7
3 3
Comparing this to expected
4 1 number of breakdowns based on
5 2 the historical data:
6 5
7 1 𝐸𝑥𝑝𝑒𝑐𝑡𝑒𝑑 𝑑𝑎𝑖𝑙𝑦 𝑏𝑟𝑒𝑎𝑘𝑑𝑜𝑤𝑛
5
8 1 =
𝑃𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 𝑜𝑓 𝑖 𝑏𝑟𝑒𝑎𝑘𝑑𝑜𝑤𝑛𝑠
× (𝑏𝑟𝑒𝑎𝑘𝑑𝑜𝑤𝑛 𝑜𝑓 𝑚𝑎𝑐ℎ𝑖𝑛𝑒𝑠)
9 2 𝑖=0
10 0
17
Probability of
Number of Frequency Occurrence/ The mean number of breakdowns for this
breakdowns (DAYS) Relative 10-day period simulation is 17/10 = 1.7
Frequency
Comparing this to expected number of
0 10 10/100 = 0.10 breakdowns based on the historical data:
1 30 30/100 = 0.30
𝐸𝑥𝑝𝑒𝑐𝑡𝑒𝑑 𝑑𝑎𝑖𝑙𝑦 𝑏𝑟𝑒𝑎𝑘𝑑𝑜𝑤𝑛
2 25 25/100 = 0.25 5
𝑃𝑟𝑜𝑏𝑎𝑏𝑖𝑙𝑖𝑡𝑦 𝑜𝑓 𝑖 𝑏𝑟𝑒𝑎𝑘𝑑𝑜𝑤𝑛𝑠
3 20 20/100 = 0.20
=
× (𝑏𝑟𝑒𝑎𝑘𝑑𝑜𝑤𝑛 𝑜𝑓 𝑚𝑎𝑐ℎ𝑖𝑛𝑒𝑠)
𝑖=0
4 10 10/100 = 0.10
𝐸𝑥𝑝𝑒𝑐𝑡𝑒𝑑 𝑑𝑎𝑖𝑙𝑦 𝑏𝑟𝑒𝑎𝑘𝑑𝑜𝑤𝑛
5 5 5/100 = 0.05 = 0.10 0 + 0.30 1 + 0.25 2
100/100 = + 0.20 3 + 0.10 4 + 0.05 5
100
1.00 = 2.05 𝑝𝑒𝑟 𝑑𝑎𝑦
Several points are worth taking:
1. The simple example is intended to illustrate the
basic concept of Monte Carlo simulation.
1 2 3 4 5
Probability of
Demand for Tires Frequency (Days)
Occurence
10
0 10 200
= 0.05
20
1 20 200
= 0.10
40
2 40 200
= 0.20
60
3 60 200
= 0.30
40
4 40 200
= 0.20
30
5 30 200
= 0.15
200 1.0
Step 2: Building a Cumulative Probability Distribution
Cumulative
Daily Demand Probability
Probability
0 0.05 0.05
1 0.10 0.15
2 0.20 0.35
3 0.30 0.65
4 0.20 0.85
5 0.15 1.0
Graphical Representation of the
Cumulative Probability Distribution for Radial Tires
Step 3: Setting Random Number Intervals
Random number intervals is a set of numbers to represent each possible value or outcome
= 2.95 tires
*If this simulation were repeated hundreds or thousands of time, it is much more likely that the average simulated
demand would be nearly the same as the expected demand
Advantages
.
Limitations
Uses of the MCM
Sampling
The objective is to gather information about a
random object by observing many realizations of it.
An example is simulation modeling, where a
random process mimics the behavior of some real-
life system, such as a production line or
telecommunications network. Another example is
found in Bayesian statistics, where Markov chain
Monte Carlo (MCMC) is often used to sample from
a posterior distribution.
Uses of the MCM
Estimation
In this case the emphasis is on estimating
certain numerical quantities related to a
simulation model. An example in the artificial
context is the evaluation of multi-dimensional
integrals via Monte Carlo techniques by writing
the integral as the expectation of a random
variable.
Uses of the MCM
Optimization
In many applications these
functions are deterministic and
randomness is introduced artificially in
order to more efficiently search the
domain of the objective function. Monte
Carlo techniques are also used to
optimize noisy functions, where the
function itself is random — for example,
the result of a Monte Carlo simulation.
Applications
Modelling Biochemical Processes
The biochemical models describing complex and dynamic
metabolic systems are typically multi-parametric and non-linear, thus
the identification of their parameters requires non-linear regression
analysis of the experimental data.
Applications
Computational Statistics
The ever increasing complexity of data (“big
data”) requires radically different statistical models
and analysis techniques from those that were used
20–100 years ago. By using Monte Carlo
techniques, the statistician is no longer restricted
to use basic (and often inappropriate) models to
describe data. Now any probabilistic model that
can be simulated on a computer can serve as the
basis for a statistical analysis.