SlideShare a Scribd company logo
1 of 20
Download to read offline
1
• A. J. Clark School of Engineering •Department of Civil and Environmental Engineering
Third Edition
CHAPTER
11a
Making Hard Decision
Duxbury
Thomson
Learning
ENCE 627 – Decision Analysis for Engineering
Department of Civil and Environmental Engineering
University of Maryland, College Park
MONTE CARLO
SIMULATION
FALL 2003
By
Dr . Ibrahim. Assakkaf
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 1
ENCE 627 ©Assakkaf
2
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 2
ENCE 627 ©Assakkaf
Methodology of Modeling
Uncertainty
The Methodology of Modeling Uncertainty is described in five
chapters that mainly concentrating on how to model uncertainty
using probabilities and information as follows:
Probability Basics: reviews fundamental probability concepts.
Subjective probability: translates beliefs & feelings about
uncertainty in probability for use in decision modeling.
Theoretical Probability Models: helps with representing
uncertainty in decision modeling
Using Data: uses historical data for developing probability
distributions
Monte Carlo Simulation: to give the decision-maker a fair
idea about the probabilities associated with various outcomes.
Value of Information: explores the value of information within
the decision-analysis framework.
Detailed Steps
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 3
ENCE 627 ©Assakkaf
Simulation
Simulation is a very powerful and widely used
management science technique for the analysis
and study of different types of systems.
Because of complexity, stochastic relations, and
so on, not all real-world problems can be
represented adequately in a model form.
Attempts to use analytical models for such
systems usually require so many simplifying
assumptions that the solutions are likely to be
inferior of inadequate for implementation.
Often, in such instances, the only alternative form
of modeling and analysis available to the decision
maker is simulation.
3
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 4
ENCE 627 ©Assakkaf
Simulation
Simulation may be defined as a technique that imitates the
operation of a real-world system as it evolves over time. This is normally
done by developing a simulation model.
A simulation model take the form of a set of assumptions about
the operation of the system, expressed as mathematical or logical
relations between the objects of interest in the system.
In contrast to the exact mathematical solutions available with most
analytical models, the simulation process involves executing or running
the model through time, usually on a computer, to generate
representative samples of the measures of performance. In this respect,
simulation may be seen as a sampling experiment on the real system,
with the results being sample points.
To obtain the best estimate of the mean of the measure of
performance, we average the sample results. Clearly, the sample points
we generate, the better our estimate will be. However, other factors,
such as the starting conditions of the simulation, the length of the period
being simulated, and the accuracy of the model itself, all have a bearing
on how good our final estimate will be.
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 5
ENCE 627 ©Assakkaf
Advantages and Disadvantages
The major advantage of simulation is that
simulation theory is relatively
straightforward.
In general, simulation methods are easier to
apply than analytical methods. Whereas
analytical models may require us to make
many simplifying assumptions, simulation
models have few such restrictions, thereby
allowing much greater flexibility in
representing the real system.
Once a model is built, it can be used
repeatedly to analyze different policies,
parameters, or designs.
4
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 6
ENCE 627 ©Assakkaf
Advantages and Disadvantages
Example:
If a business firm has a simulation model of its
inventory system, various inventory policies can be
tried on the model rather than taking the chance of
experimenting on the real-world system. However, it
must be emphasized that simulation is not an
optimizing technique. It is most often used to
analyze “what if” types of questions. Optimization
with simulation is possible, but it is usually a slow
process. Simulation can also be costly. However,
with the development of special-purpose simulation
languages, decreasing computational cost, and
advances in simulation methodologies, the problem
of cost is becoming less important.
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 7
ENCE 627 ©Assakkaf
Basic Terminology
In order to model a system, we must understand the concept of a
system. Among the many different ways of defining a system,
the most appropriate definition for simulation problems is the
one proposed by Schmidt and Taylor (1970).
Definition:
A system is a collection of entities that act and interact toward
the accomplishment of some logical end.
In practice, however, this definition generally tends to be more
flexible. The exact description of the system usually depends on
the objective of the simulation study. For example, what may be
a system for a particular study may be only a subset of the
overall system for another.
Systems generally tend to be dynamic–their status changes
over time. To describe this status, we use the concept of the
state of a system.
5
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 8
ENCE 627 ©Assakkaf
Basic Terminology (cont’d)
Definition:
The state of a system is the collection of variables necessary
to describe the status of the system at any given time.
As an example of a system, let us consider a bank. Here, the
system consists of the servers and the customers waiting in
line or being served. As customers arrive or depart, the status
of the system changes. To describe these changes in status,
we require a set of variables called the state variables.
Example:
The bank’s customers may be described as the entities, and
the characteristics of the customers (such as the occupation
of a customer) may be defined as the attributes.
Systems may be classified as discrete or continuous.
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 9
ENCE 627 ©Assakkaf
Basic Terminology (cont’d)
Definition:
A discrete system is one in which the state variables change
only at discrete or countable points in time.
A bank is an example of a discrete system, since the state
variables change only when a customer arrives or when a
customer finishes being served and departs. These changes
take place at discrete points in time.
Definition:
A continuous system is one in which the state variables change
continuously over time.
A chemical process is an example of a continuous system.
Here, the status of the system is changing continuously over
time. Such systems are usually modeled using differential
equations. We do not discuss any continuous systems in this
chapter.
There are two types of simulation models, static and dynamic.
6
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 10
ENCE 627 ©Assakkaf
Basic Terminology (cont’d)
Definition:
A static simulation model is a representation of a system at a particular
point in time. We usually refer to a static simulation as a Monte Carlo
Simulation.
Definition:
A dynamic simulation is a representation of a system as it evolves over
time.
Within these two classifications, a simulation may be deterministic or
stochastic.
Definition:
A deterministic simulation model is one that contains no random
variables; e.g. profit = 45 – 20 = $25. A stochastic simulation model
contains one or more random variables; e.g. profit = 45 – 20, 21, 22, 23 =
either $25 or $24 or $23 or $ 22.
Discrete and continuous simulation models are similar to discrete
stochastic models. Such models are called discrete–event simulation
models. Discrete-event simulation concerns the modeling of a stochastic
system as it evolves over time by a representation in which state variables
change only at discrete points in time.
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 11
ENCE 627 ©Assakkaf
An Example of a Discrete-Event
Simulation
A single-server queuing system. Customers arrive into this system
from some population and either go into service immediately if the
server is idle or join a waiting line (queue) if the server is busy.
Examples of this kind of a system are:
a one-person barber shop,
a small grocery store with only one checkout counter, and
a single ticket counter at an airline terminal.
GROCERY STORE
BARBER SHOP
Air World Airlines
7
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 12
ENCE 627 ©Assakkaf
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 13
ENCE 627 ©Assakkaf
Simulation Process and Steps
Statement of objectives
Model Development
Data Collection and Preparation
Solving the Model using Computer Program
Verification
Validation
Documentation
8
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 14
ENCE 627 ©Assakkaf
Steps of Simulation
Formulate the problem
Collect data and develop
a model
Computerize the model
Verified
?
Validated
?
Design the experiment
Perform simulation runs
Analyze output data
Simulation
complete
?
Document and implement runs
YES
NO
NO
NO
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 15
ENCE 627 ©Assakkaf
Statement of the Objectives
The initial stage of any scientific study, including a
simulation project, requires an explicit statement of the
objectives of the study. This should include the
questions to be answered, the hypothesis to be tested,
and the alternatives to be considered.
Without a clear understanding and description of the
problem, the chances of successful completion and
implementation are greatly diminished. Also in this
step, we address issues such as the performance
criteria, the model parameters, and the identification
and definition of the state variables.
It is, of course, very likely that the initial formulation
of the problem will undergo many modifications as the
study proceeds and as we learn more about the
situation being studied. Nevertheless, a clear initial
statement of the objectives is essential.
9
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 16
ENCE 627 ©Assakkaf
Model Development and Data
Collection
The next stage is the development of the model and the
collection of data.
The development of the model is probably the most difficult
and critical part of a simulation study.
Here, we try to represent the essential features of the systems
under study by mathematical or logical relations.
There are a few firm rules to guide an analyst on how to go
about this process.
In many ways, this is as much an art as a science. However,
most experts agree that the best approach is to start with a
simple model and make it more detailed and complex as one
learns more about the system.
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 17
ENCE 627 ©Assakkaf
Developing a Computer Program
Having developed the model, we next put it into a
form in which it can be analyzed on the computer.
This usually involves developing a computer
program for the model. One of the key decisions
here is the choice of the language. As noted earlier,
the special-purpose languages require less
programming than the general-purpose languages
but are less flexible and tend to require longer
computer running times. In either case, the
programming part of the study is likely to be a time-
consuming process, since simulation programs tend
to be long and complex.
10
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 18
ENCE 627 ©Assakkaf
Verification
Once the program has been developed and
debugged, we determine whether the program
is working properly.
In other words, is the program doing what it
is suppose to do?
This process is called the verification step
and is usually difficult, since for most
simulations, we will not have any results with
which to compare the computer output.
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 19
ENCE 627 ©Assakkaf
Validation
If we are satisfied with the program, we now
move to the validation stage.
This is another critical part of a simulation
study. In this step, we validate the model to
determine whether it realistically represents
the system being analyzed and whether the
results from the model will be reliable.
As with the verification stage, this is generally
a difficult process. Each model presents a
different challenge. However, there are some
general guidelines that one can follow.
11
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 20
ENCE 627 ©Assakkaf
Validation (cont’d)
If we are satisfied at this stage with the
performance of the model, we can use the
model to conduct the experiments to answer
the questions at hand. The data generated
by the simulation experiments must be
collected, processed, and analyzed.
The results are analyzed not only as the
solutions to the model but also in terms of
statistical reliability and validity. Finally, after
the results are processed and analyzed, a
decision must be made whether to perform
any additional experiments.
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 21
ENCE 627 ©Assakkaf
12
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 22
ENCE 627 ©Assakkaf
Monte Carlo Simulation
♦Started in the early 1940’s for the
purpose of developing inexpensive
techniques for testing engineering
systems by imitating their real
behavior.
♦These methods are commonly called
Monte Carlo simulation techniques.
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 23
ENCE 627 ©Assakkaf
Monte Carlo Simulation
♦The principle behind the methods is
to develop an analytical model, which
is computer based, that predicts the
behavior of a system. Then, the
model is evaluated, and therefore the
behavior is predicted, several times.
Each evaluation (or called simulation
cycle) is based on some randomly
selected conditions for the input
parameters of the system.
13
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 24
ENCE 627 ©Assakkaf
Monte Carlo Simulation
♦Certain analytical tools are used to
assure the random selection of the
input parameters according to their
respective probability distributions for
each evaluation. As a result, several
predictions of the behavior are
obtained. Then, statistical methods
are used to evaluate the moments
and distribution type for the system’s
behavior.
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 25
ENCE 627 ©Assakkaf
General Procedure
The analytical and computational
steps that are needed for performing
Monte Carlo simulation are:
– Definition of the system
– Generation of random numbers
– Generation of random variables
– Evaluation of the model N times
– Statistical analysis of the resulting
behavior
– Study of efficiency and convergence
14
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 26
ENCE 627 ©Assakkaf
System Definition
The definition of the system should
includes its boundaries, input
parameters, output (or behavior)
measures, architecture, and models that
relate the input parameters and
architecture to the output parameters.
Model for the System
(without variability in the
architecture of the system)
model uncertainty
Input
Parameters
(random)
Output
Parameters
(random system
behavior)
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 27
ENCE 627 ©Assakkaf
Generation of Random Numbers
Random numbers are real values, if
normalized using the largest possible
value, result in real values in the range
[0,1].
Random numbers have a uniform
distribution on the range [0,1].
A set of random numbers should also
satisfy the condition of non-correlation
for the purpose of simulation use.
15
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 28
ENCE 627 ©Assakkaf
Generation of Random Numbers
Significance
– Their transformation into real values that
follow any distribution of interest. They
constitute the basis for random variable
generation
Types
– Mechanical
– Tabulated
– Computer based (recursive functions)
using a seed
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 29
ENCE 627 ©Assakkaf
Table of Random Numbers in the
Range [0,1]
0.538246 0.181648 0.172614 0.450166 0.293027 0.030195 0.757836 0.915061
0.663357 0.368934 0.516388 0.656254 0.284258 0.906335 0.329788 0.054487
0.035771 0.053784 0.424573 0.942479 0.293872 0.326815 0.862351 0.358055
0.51356 0.165508 0.667312 0.878444 0.414203 0.100839 0.555287 0.685601
0.880006 0.069305 0.85441 0.371911 0.751341 0.128446 0.678679 0.514995
0.880006 0.069305 0.85441 0.371911 0.751341 0.128446 0.678679 0.514995
0.748794 0.902497 0.629615 0.662531 0.932879 0.018376 0.683876 0.55481
0.115441 0.207278 0.887853 0.812124 0.082143 0.939258 0.666874 0.582525
0.953369 0.543997 0.806486 0.707493 0.503949 0.489926 0.774467 0.248617
0.2436 0.537111 0.181388 0.619277 0.131852 0.131876 0.361814 0.582682
0.610186 0.41158 0.339972 0.080869 0.429448 0.82277 0.63269 0.863227
0.848375 0.043973 0.071429 0.713405 0.56201 0.71605 0.53662 0.357681
0.102922 0.201752 0.61727 0.416471 0.371492 0.633301 0.857578 0.483474
0.009326 0.912932 0.11385 0.3316 0.852807 0.626191 0.035676 0.581386
0.801494 0.365068 0.54875 0.480788 0.032959 0.906331 0.291263 0.706212
0.682049 0.946008 0.960047 0.830463 0.186225 0.123762 0.674147 0.012839
16
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 30
ENCE 627 ©Assakkaf
Generation of Random Variables
Inverse Transformation Method
– A random number u is first generated in
the range [0,1]
– Then the value (x) of a generated
continuous random variable, X, is
determined as follows:
(u)Fx 1
X
−= = the inverse of the cumulative distribution
function of the random variable X evaluated at u.
Since the range of FX(x) is in the range [0,1],
a unique value for x is obtained all the time in
each simulation cycle.
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 31
ENCE 627 ©Assakkaf
Triangular Distribution
Triangular Density Function
DensityValue,fX(x)
XL X Value XU
17
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 32
ENCE 627 ©Assakkaf
Uniform Density Function
DensityValue,fU(u)
0
u Value
1
1
0.8
0.6
0.4
0.2
0
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 33
ENCE 627 ©Assakkaf
Cumulative Function
Illustration of inverse transformation
DensityValue,fX(x)
XL
x Value
XU
0
1
18
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 34
ENCE 627 ©Assakkaf
Normal Distribution
For mean µ and standard deviation s,
the uniform variate is first transformed
to the standard normal deviate z, which
is then transformed to normal deviate x
by:
x z= +µ σ
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 35
ENCE 627 ©Assakkaf
Normal Distribution (cont’d)
Consider the case where the sample
consists of the following:
To find the corresponding z values, enter
the standard normal table for a probability
of 0.82, for example, and read the z value
(z = 0.915). Continuing for each ui value
yields:
Then use x = m + z s to obtain the
values of X.
U = {0.82, 0.43, 0.71, 0.18, 0.66}
Z = {0.915, -0.176, 0.556, -0.915, 0.413}
19
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 36
ENCE 627 ©Assakkaf
Other Methods for Generating
Random Variables
Specialized
Efficient
Automated
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 37
ENCE 627 ©Assakkaf
Evaluation of Model
Substitute the generated input random
variables (Xi) into an analytical model,
g(X) to predict a response Y. The
model can be a simple education or a
complex computer code.
Y = g(X1, X2, X3, …, Xn)
This process is repeated N times.
♦ Noncorrelated random variables
♦ Correlated random variables
20
CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 38
ENCE 627 ©Assakkaf
Statistical Analysis of Results
Mean response:
Variance:
Variance of estimated mean:
Y
N
n
i
Yi= ∑
=
1
1
( ) ])Y
1i
N
(
N
1
Y
1i
N
[
1N
1
YVar 2
i
2
i
=
∑−
=
∑
−
=
( )Var Y
N N
N
i
Y
N
N
i
Yi i=
−
∑
=
− ∑
=
1 1
1
1
1
1
2 2
[ ( ) ]

More Related Content

What's hot

Simulation Techniques
Simulation TechniquesSimulation Techniques
Simulation Techniquesmailrenuka
 
Discrete And Continuous Simulation
Discrete And Continuous SimulationDiscrete And Continuous Simulation
Discrete And Continuous SimulationNguyen Chien
 
VTU 8th Sem Notes Simulation
VTU 8th Sem Notes SimulationVTU 8th Sem Notes Simulation
VTU 8th Sem Notes SimulationVivek Maurya
 
Simulation and Modeling
Simulation and ModelingSimulation and Modeling
Simulation and Modelinganhdbh
 
Introduction to Simulation
Introduction to SimulationIntroduction to Simulation
Introduction to Simulationchimco.net
 
Unit 1 introduction
Unit 1 introductionUnit 1 introduction
Unit 1 introductionraksharao
 
CART Classification and Regression Trees Experienced User Guide
CART Classification and Regression Trees Experienced User GuideCART Classification and Regression Trees Experienced User Guide
CART Classification and Regression Trees Experienced User GuideSalford Systems
 
Use Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationUse Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationLeslie Munday
 
Using CART For Beginners with A Teclo Example Dataset
Using CART For Beginners with A Teclo Example DatasetUsing CART For Beginners with A Teclo Example Dataset
Using CART For Beginners with A Teclo Example DatasetSalford Systems
 
Statistical Modeling in 3D: Explaining, Predicting, Describing
Statistical Modeling in 3D: Explaining, Predicting, DescribingStatistical Modeling in 3D: Explaining, Predicting, Describing
Statistical Modeling in 3D: Explaining, Predicting, DescribingGalit Shmueli
 
Models of Operations Research is addressed
Models of Operations Research is addressedModels of Operations Research is addressed
Models of Operations Research is addressedSundar B N
 
Deterministic vs stochastic
Deterministic vs stochasticDeterministic vs stochastic
Deterministic vs stochasticsohail40
 
Methods for solving ‘or’ models
Methods for solving ‘or’ modelsMethods for solving ‘or’ models
Methods for solving ‘or’ modelsJishnu Rajan
 
2. System Simulation modeling unit i
2. System Simulation modeling unit i2. System Simulation modeling unit i
2. System Simulation modeling unit iAmita Gautam
 

What's hot (20)

Simulation
SimulationSimulation
Simulation
 
Simulation Techniques
Simulation TechniquesSimulation Techniques
Simulation Techniques
 
Discrete And Continuous Simulation
Discrete And Continuous SimulationDiscrete And Continuous Simulation
Discrete And Continuous Simulation
 
VTU 8th Sem Notes Simulation
VTU 8th Sem Notes SimulationVTU 8th Sem Notes Simulation
VTU 8th Sem Notes Simulation
 
Simulation and Modeling
Simulation and ModelingSimulation and Modeling
Simulation and Modeling
 
Introduction to Simulation
Introduction to SimulationIntroduction to Simulation
Introduction to Simulation
 
Unit 1 introduction
Unit 1 introductionUnit 1 introduction
Unit 1 introduction
 
Or senting
Or sentingOr senting
Or senting
 
Final1
Final1Final1
Final1
 
CART Classification and Regression Trees Experienced User Guide
CART Classification and Regression Trees Experienced User GuideCART Classification and Regression Trees Experienced User Guide
CART Classification and Regression Trees Experienced User Guide
 
Use Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationUse Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling Notation
 
Machine learning project
Machine learning project Machine learning project
Machine learning project
 
Types of models
Types of modelsTypes of models
Types of models
 
Using CART For Beginners with A Teclo Example Dataset
Using CART For Beginners with A Teclo Example DatasetUsing CART For Beginners with A Teclo Example Dataset
Using CART For Beginners with A Teclo Example Dataset
 
Statistical Modeling in 3D: Explaining, Predicting, Describing
Statistical Modeling in 3D: Explaining, Predicting, DescribingStatistical Modeling in 3D: Explaining, Predicting, Describing
Statistical Modeling in 3D: Explaining, Predicting, Describing
 
Models of Operations Research is addressed
Models of Operations Research is addressedModels of Operations Research is addressed
Models of Operations Research is addressed
 
Deterministic vs stochastic
Deterministic vs stochasticDeterministic vs stochastic
Deterministic vs stochastic
 
Sensitivity analysis
Sensitivity analysisSensitivity analysis
Sensitivity analysis
 
Methods for solving ‘or’ models
Methods for solving ‘or’ modelsMethods for solving ‘or’ models
Methods for solving ‘or’ models
 
2. System Simulation modeling unit i
2. System Simulation modeling unit i2. System Simulation modeling unit i
2. System Simulation modeling unit i
 

Similar to Chapter11a

Introduction to System, Simulation and Model
Introduction to System, Simulation and ModelIntroduction to System, Simulation and Model
Introduction to System, Simulation and ModelMd. Hasan Imam Bijoy
 
IRJET- A Comprehensive Outline of the Types of Simulation
IRJET- A Comprehensive Outline of the Types of SimulationIRJET- A Comprehensive Outline of the Types of Simulation
IRJET- A Comprehensive Outline of the Types of SimulationIRJET Journal
 
Introduction to networks simulation
Introduction to networks simulationIntroduction to networks simulation
Introduction to networks simulationahmed L. Khalaf
 
Modeling&Simulation_Ch01_part 3.pptx
Modeling&Simulation_Ch01_part 3.pptxModeling&Simulation_Ch01_part 3.pptx
Modeling&Simulation_Ch01_part 3.pptxMaiGaafar
 
Introduction to simulation.pdf
Introduction to simulation.pdfIntroduction to simulation.pdf
Introduction to simulation.pdfnadimhossain24
 
internship project1 report
internship project1 reportinternship project1 report
internship project1 reportsheyk98
 
Simulation theory
Simulation theorySimulation theory
Simulation theoryAbu Bashar
 
Discreate Event Simulation_PPT1-R0.ppt
Discreate Event Simulation_PPT1-R0.pptDiscreate Event Simulation_PPT1-R0.ppt
Discreate Event Simulation_PPT1-R0.pptdiklatMSU
 
Unit 6 Simulation.pptx
Unit 6 Simulation.pptxUnit 6 Simulation.pptx
Unit 6 Simulation.pptxHafiz20006
 
What is modeling.pptx
What is modeling.pptxWhat is modeling.pptx
What is modeling.pptxBerhe Tekle
 
Strategy for Social Media MK Plan by Slidesgo.pptx
Strategy for Social Media MK Plan by Slidesgo.pptxStrategy for Social Media MK Plan by Slidesgo.pptx
Strategy for Social Media MK Plan by Slidesgo.pptxjshwyi
 
Introduction to simulation and modeling
Introduction to simulation and modelingIntroduction to simulation and modeling
Introduction to simulation and modelingantim19
 
A Novel Approach to Derive the Average-Case Behavior of Distributed Embedded ...
A Novel Approach to Derive the Average-Case Behavior of Distributed Embedded ...A Novel Approach to Derive the Average-Case Behavior of Distributed Embedded ...
A Novel Approach to Derive the Average-Case Behavior of Distributed Embedded ...ijccmsjournal
 
Selecting representative working cycles from large measurement data sets
Selecting representative working cycles from large measurement data setsSelecting representative working cycles from large measurement data sets
Selecting representative working cycles from large measurement data setsReno Filla
 
Introduction to modeling_and_simulation
Introduction to modeling_and_simulationIntroduction to modeling_and_simulation
Introduction to modeling_and_simulationAysun Duran
 
Introduction to modeling_and_simulation
Introduction to modeling_and_simulationIntroduction to modeling_and_simulation
Introduction to modeling_and_simulationmukmin91
 

Similar to Chapter11a (20)

MODELING & SIMULATION.docx
MODELING & SIMULATION.docxMODELING & SIMULATION.docx
MODELING & SIMULATION.docx
 
Introduction to System, Simulation and Model
Introduction to System, Simulation and ModelIntroduction to System, Simulation and Model
Introduction to System, Simulation and Model
 
IRJET- A Comprehensive Outline of the Types of Simulation
IRJET- A Comprehensive Outline of the Types of SimulationIRJET- A Comprehensive Outline of the Types of Simulation
IRJET- A Comprehensive Outline of the Types of Simulation
 
Introduction to networks simulation
Introduction to networks simulationIntroduction to networks simulation
Introduction to networks simulation
 
Modeling&Simulation_Ch01_part 3.pptx
Modeling&Simulation_Ch01_part 3.pptxModeling&Simulation_Ch01_part 3.pptx
Modeling&Simulation_Ch01_part 3.pptx
 
Introduction to simulation.pdf
Introduction to simulation.pdfIntroduction to simulation.pdf
Introduction to simulation.pdf
 
SIMULATION.pdf
SIMULATION.pdfSIMULATION.pdf
SIMULATION.pdf
 
internship project1 report
internship project1 reportinternship project1 report
internship project1 report
 
cs1538.ppt
cs1538.pptcs1538.ppt
cs1538.ppt
 
Simulation theory
Simulation theorySimulation theory
Simulation theory
 
Discreate Event Simulation_PPT1-R0.ppt
Discreate Event Simulation_PPT1-R0.pptDiscreate Event Simulation_PPT1-R0.ppt
Discreate Event Simulation_PPT1-R0.ppt
 
Unit 6 Simulation.pptx
Unit 6 Simulation.pptxUnit 6 Simulation.pptx
Unit 6 Simulation.pptx
 
What is modeling.pptx
What is modeling.pptxWhat is modeling.pptx
What is modeling.pptx
 
Strategy for Social Media MK Plan by Slidesgo.pptx
Strategy for Social Media MK Plan by Slidesgo.pptxStrategy for Social Media MK Plan by Slidesgo.pptx
Strategy for Social Media MK Plan by Slidesgo.pptx
 
Introduction to simulation and modeling
Introduction to simulation and modelingIntroduction to simulation and modeling
Introduction to simulation and modeling
 
A Novel Approach to Derive the Average-Case Behavior of Distributed Embedded ...
A Novel Approach to Derive the Average-Case Behavior of Distributed Embedded ...A Novel Approach to Derive the Average-Case Behavior of Distributed Embedded ...
A Novel Approach to Derive the Average-Case Behavior of Distributed Embedded ...
 
Selecting representative working cycles from large measurement data sets
Selecting representative working cycles from large measurement data setsSelecting representative working cycles from large measurement data sets
Selecting representative working cycles from large measurement data sets
 
Introduction to modeling_and_simulation
Introduction to modeling_and_simulationIntroduction to modeling_and_simulation
Introduction to modeling_and_simulation
 
Introduction to modeling_and_simulation
Introduction to modeling_and_simulationIntroduction to modeling_and_simulation
Introduction to modeling_and_simulation
 
Assign3
Assign3Assign3
Assign3
 

Recently uploaded

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 

Recently uploaded (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Chapter11a

  • 1. 1 • A. J. Clark School of Engineering •Department of Civil and Environmental Engineering Third Edition CHAPTER 11a Making Hard Decision Duxbury Thomson Learning ENCE 627 – Decision Analysis for Engineering Department of Civil and Environmental Engineering University of Maryland, College Park MONTE CARLO SIMULATION FALL 2003 By Dr . Ibrahim. Assakkaf CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 1 ENCE 627 ©Assakkaf
  • 2. 2 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 2 ENCE 627 ©Assakkaf Methodology of Modeling Uncertainty The Methodology of Modeling Uncertainty is described in five chapters that mainly concentrating on how to model uncertainty using probabilities and information as follows: Probability Basics: reviews fundamental probability concepts. Subjective probability: translates beliefs & feelings about uncertainty in probability for use in decision modeling. Theoretical Probability Models: helps with representing uncertainty in decision modeling Using Data: uses historical data for developing probability distributions Monte Carlo Simulation: to give the decision-maker a fair idea about the probabilities associated with various outcomes. Value of Information: explores the value of information within the decision-analysis framework. Detailed Steps Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 3 ENCE 627 ©Assakkaf Simulation Simulation is a very powerful and widely used management science technique for the analysis and study of different types of systems. Because of complexity, stochastic relations, and so on, not all real-world problems can be represented adequately in a model form. Attempts to use analytical models for such systems usually require so many simplifying assumptions that the solutions are likely to be inferior of inadequate for implementation. Often, in such instances, the only alternative form of modeling and analysis available to the decision maker is simulation.
  • 3. 3 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 4 ENCE 627 ©Assakkaf Simulation Simulation may be defined as a technique that imitates the operation of a real-world system as it evolves over time. This is normally done by developing a simulation model. A simulation model take the form of a set of assumptions about the operation of the system, expressed as mathematical or logical relations between the objects of interest in the system. In contrast to the exact mathematical solutions available with most analytical models, the simulation process involves executing or running the model through time, usually on a computer, to generate representative samples of the measures of performance. In this respect, simulation may be seen as a sampling experiment on the real system, with the results being sample points. To obtain the best estimate of the mean of the measure of performance, we average the sample results. Clearly, the sample points we generate, the better our estimate will be. However, other factors, such as the starting conditions of the simulation, the length of the period being simulated, and the accuracy of the model itself, all have a bearing on how good our final estimate will be. CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 5 ENCE 627 ©Assakkaf Advantages and Disadvantages The major advantage of simulation is that simulation theory is relatively straightforward. In general, simulation methods are easier to apply than analytical methods. Whereas analytical models may require us to make many simplifying assumptions, simulation models have few such restrictions, thereby allowing much greater flexibility in representing the real system. Once a model is built, it can be used repeatedly to analyze different policies, parameters, or designs.
  • 4. 4 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 6 ENCE 627 ©Assakkaf Advantages and Disadvantages Example: If a business firm has a simulation model of its inventory system, various inventory policies can be tried on the model rather than taking the chance of experimenting on the real-world system. However, it must be emphasized that simulation is not an optimizing technique. It is most often used to analyze “what if” types of questions. Optimization with simulation is possible, but it is usually a slow process. Simulation can also be costly. However, with the development of special-purpose simulation languages, decreasing computational cost, and advances in simulation methodologies, the problem of cost is becoming less important. CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 7 ENCE 627 ©Assakkaf Basic Terminology In order to model a system, we must understand the concept of a system. Among the many different ways of defining a system, the most appropriate definition for simulation problems is the one proposed by Schmidt and Taylor (1970). Definition: A system is a collection of entities that act and interact toward the accomplishment of some logical end. In practice, however, this definition generally tends to be more flexible. The exact description of the system usually depends on the objective of the simulation study. For example, what may be a system for a particular study may be only a subset of the overall system for another. Systems generally tend to be dynamic–their status changes over time. To describe this status, we use the concept of the state of a system.
  • 5. 5 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 8 ENCE 627 ©Assakkaf Basic Terminology (cont’d) Definition: The state of a system is the collection of variables necessary to describe the status of the system at any given time. As an example of a system, let us consider a bank. Here, the system consists of the servers and the customers waiting in line or being served. As customers arrive or depart, the status of the system changes. To describe these changes in status, we require a set of variables called the state variables. Example: The bank’s customers may be described as the entities, and the characteristics of the customers (such as the occupation of a customer) may be defined as the attributes. Systems may be classified as discrete or continuous. CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 9 ENCE 627 ©Assakkaf Basic Terminology (cont’d) Definition: A discrete system is one in which the state variables change only at discrete or countable points in time. A bank is an example of a discrete system, since the state variables change only when a customer arrives or when a customer finishes being served and departs. These changes take place at discrete points in time. Definition: A continuous system is one in which the state variables change continuously over time. A chemical process is an example of a continuous system. Here, the status of the system is changing continuously over time. Such systems are usually modeled using differential equations. We do not discuss any continuous systems in this chapter. There are two types of simulation models, static and dynamic.
  • 6. 6 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 10 ENCE 627 ©Assakkaf Basic Terminology (cont’d) Definition: A static simulation model is a representation of a system at a particular point in time. We usually refer to a static simulation as a Monte Carlo Simulation. Definition: A dynamic simulation is a representation of a system as it evolves over time. Within these two classifications, a simulation may be deterministic or stochastic. Definition: A deterministic simulation model is one that contains no random variables; e.g. profit = 45 – 20 = $25. A stochastic simulation model contains one or more random variables; e.g. profit = 45 – 20, 21, 22, 23 = either $25 or $24 or $23 or $ 22. Discrete and continuous simulation models are similar to discrete stochastic models. Such models are called discrete–event simulation models. Discrete-event simulation concerns the modeling of a stochastic system as it evolves over time by a representation in which state variables change only at discrete points in time. CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 11 ENCE 627 ©Assakkaf An Example of a Discrete-Event Simulation A single-server queuing system. Customers arrive into this system from some population and either go into service immediately if the server is idle or join a waiting line (queue) if the server is busy. Examples of this kind of a system are: a one-person barber shop, a small grocery store with only one checkout counter, and a single ticket counter at an airline terminal. GROCERY STORE BARBER SHOP Air World Airlines
  • 7. 7 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 12 ENCE 627 ©Assakkaf CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 13 ENCE 627 ©Assakkaf Simulation Process and Steps Statement of objectives Model Development Data Collection and Preparation Solving the Model using Computer Program Verification Validation Documentation
  • 8. 8 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 14 ENCE 627 ©Assakkaf Steps of Simulation Formulate the problem Collect data and develop a model Computerize the model Verified ? Validated ? Design the experiment Perform simulation runs Analyze output data Simulation complete ? Document and implement runs YES NO NO NO CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 15 ENCE 627 ©Assakkaf Statement of the Objectives The initial stage of any scientific study, including a simulation project, requires an explicit statement of the objectives of the study. This should include the questions to be answered, the hypothesis to be tested, and the alternatives to be considered. Without a clear understanding and description of the problem, the chances of successful completion and implementation are greatly diminished. Also in this step, we address issues such as the performance criteria, the model parameters, and the identification and definition of the state variables. It is, of course, very likely that the initial formulation of the problem will undergo many modifications as the study proceeds and as we learn more about the situation being studied. Nevertheless, a clear initial statement of the objectives is essential.
  • 9. 9 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 16 ENCE 627 ©Assakkaf Model Development and Data Collection The next stage is the development of the model and the collection of data. The development of the model is probably the most difficult and critical part of a simulation study. Here, we try to represent the essential features of the systems under study by mathematical or logical relations. There are a few firm rules to guide an analyst on how to go about this process. In many ways, this is as much an art as a science. However, most experts agree that the best approach is to start with a simple model and make it more detailed and complex as one learns more about the system. CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 17 ENCE 627 ©Assakkaf Developing a Computer Program Having developed the model, we next put it into a form in which it can be analyzed on the computer. This usually involves developing a computer program for the model. One of the key decisions here is the choice of the language. As noted earlier, the special-purpose languages require less programming than the general-purpose languages but are less flexible and tend to require longer computer running times. In either case, the programming part of the study is likely to be a time- consuming process, since simulation programs tend to be long and complex.
  • 10. 10 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 18 ENCE 627 ©Assakkaf Verification Once the program has been developed and debugged, we determine whether the program is working properly. In other words, is the program doing what it is suppose to do? This process is called the verification step and is usually difficult, since for most simulations, we will not have any results with which to compare the computer output. CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 19 ENCE 627 ©Assakkaf Validation If we are satisfied with the program, we now move to the validation stage. This is another critical part of a simulation study. In this step, we validate the model to determine whether it realistically represents the system being analyzed and whether the results from the model will be reliable. As with the verification stage, this is generally a difficult process. Each model presents a different challenge. However, there are some general guidelines that one can follow.
  • 11. 11 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 20 ENCE 627 ©Assakkaf Validation (cont’d) If we are satisfied at this stage with the performance of the model, we can use the model to conduct the experiments to answer the questions at hand. The data generated by the simulation experiments must be collected, processed, and analyzed. The results are analyzed not only as the solutions to the model but also in terms of statistical reliability and validity. Finally, after the results are processed and analyzed, a decision must be made whether to perform any additional experiments. CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 21 ENCE 627 ©Assakkaf
  • 12. 12 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 22 ENCE 627 ©Assakkaf Monte Carlo Simulation ♦Started in the early 1940’s for the purpose of developing inexpensive techniques for testing engineering systems by imitating their real behavior. ♦These methods are commonly called Monte Carlo simulation techniques. CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 23 ENCE 627 ©Assakkaf Monte Carlo Simulation ♦The principle behind the methods is to develop an analytical model, which is computer based, that predicts the behavior of a system. Then, the model is evaluated, and therefore the behavior is predicted, several times. Each evaluation (or called simulation cycle) is based on some randomly selected conditions for the input parameters of the system.
  • 13. 13 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 24 ENCE 627 ©Assakkaf Monte Carlo Simulation ♦Certain analytical tools are used to assure the random selection of the input parameters according to their respective probability distributions for each evaluation. As a result, several predictions of the behavior are obtained. Then, statistical methods are used to evaluate the moments and distribution type for the system’s behavior. CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 25 ENCE 627 ©Assakkaf General Procedure The analytical and computational steps that are needed for performing Monte Carlo simulation are: – Definition of the system – Generation of random numbers – Generation of random variables – Evaluation of the model N times – Statistical analysis of the resulting behavior – Study of efficiency and convergence
  • 14. 14 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 26 ENCE 627 ©Assakkaf System Definition The definition of the system should includes its boundaries, input parameters, output (or behavior) measures, architecture, and models that relate the input parameters and architecture to the output parameters. Model for the System (without variability in the architecture of the system) model uncertainty Input Parameters (random) Output Parameters (random system behavior) CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 27 ENCE 627 ©Assakkaf Generation of Random Numbers Random numbers are real values, if normalized using the largest possible value, result in real values in the range [0,1]. Random numbers have a uniform distribution on the range [0,1]. A set of random numbers should also satisfy the condition of non-correlation for the purpose of simulation use.
  • 15. 15 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 28 ENCE 627 ©Assakkaf Generation of Random Numbers Significance – Their transformation into real values that follow any distribution of interest. They constitute the basis for random variable generation Types – Mechanical – Tabulated – Computer based (recursive functions) using a seed CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 29 ENCE 627 ©Assakkaf Table of Random Numbers in the Range [0,1] 0.538246 0.181648 0.172614 0.450166 0.293027 0.030195 0.757836 0.915061 0.663357 0.368934 0.516388 0.656254 0.284258 0.906335 0.329788 0.054487 0.035771 0.053784 0.424573 0.942479 0.293872 0.326815 0.862351 0.358055 0.51356 0.165508 0.667312 0.878444 0.414203 0.100839 0.555287 0.685601 0.880006 0.069305 0.85441 0.371911 0.751341 0.128446 0.678679 0.514995 0.880006 0.069305 0.85441 0.371911 0.751341 0.128446 0.678679 0.514995 0.748794 0.902497 0.629615 0.662531 0.932879 0.018376 0.683876 0.55481 0.115441 0.207278 0.887853 0.812124 0.082143 0.939258 0.666874 0.582525 0.953369 0.543997 0.806486 0.707493 0.503949 0.489926 0.774467 0.248617 0.2436 0.537111 0.181388 0.619277 0.131852 0.131876 0.361814 0.582682 0.610186 0.41158 0.339972 0.080869 0.429448 0.82277 0.63269 0.863227 0.848375 0.043973 0.071429 0.713405 0.56201 0.71605 0.53662 0.357681 0.102922 0.201752 0.61727 0.416471 0.371492 0.633301 0.857578 0.483474 0.009326 0.912932 0.11385 0.3316 0.852807 0.626191 0.035676 0.581386 0.801494 0.365068 0.54875 0.480788 0.032959 0.906331 0.291263 0.706212 0.682049 0.946008 0.960047 0.830463 0.186225 0.123762 0.674147 0.012839
  • 16. 16 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 30 ENCE 627 ©Assakkaf Generation of Random Variables Inverse Transformation Method – A random number u is first generated in the range [0,1] – Then the value (x) of a generated continuous random variable, X, is determined as follows: (u)Fx 1 X −= = the inverse of the cumulative distribution function of the random variable X evaluated at u. Since the range of FX(x) is in the range [0,1], a unique value for x is obtained all the time in each simulation cycle. CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 31 ENCE 627 ©Assakkaf Triangular Distribution Triangular Density Function DensityValue,fX(x) XL X Value XU
  • 17. 17 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 32 ENCE 627 ©Assakkaf Uniform Density Function DensityValue,fU(u) 0 u Value 1 1 0.8 0.6 0.4 0.2 0 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 33 ENCE 627 ©Assakkaf Cumulative Function Illustration of inverse transformation DensityValue,fX(x) XL x Value XU 0 1
  • 18. 18 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 34 ENCE 627 ©Assakkaf Normal Distribution For mean µ and standard deviation s, the uniform variate is first transformed to the standard normal deviate z, which is then transformed to normal deviate x by: x z= +µ σ CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 35 ENCE 627 ©Assakkaf Normal Distribution (cont’d) Consider the case where the sample consists of the following: To find the corresponding z values, enter the standard normal table for a probability of 0.82, for example, and read the z value (z = 0.915). Continuing for each ui value yields: Then use x = m + z s to obtain the values of X. U = {0.82, 0.43, 0.71, 0.18, 0.66} Z = {0.915, -0.176, 0.556, -0.915, 0.413}
  • 19. 19 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 36 ENCE 627 ©Assakkaf Other Methods for Generating Random Variables Specialized Efficient Automated CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 37 ENCE 627 ©Assakkaf Evaluation of Model Substitute the generated input random variables (Xi) into an analytical model, g(X) to predict a response Y. The model can be a simple education or a complex computer code. Y = g(X1, X2, X3, …, Xn) This process is repeated N times. ♦ Noncorrelated random variables ♦ Correlated random variables
  • 20. 20 CHAPTER 11a. MONTE CARLO SIMULATION Slide No. 38 ENCE 627 ©Assakkaf Statistical Analysis of Results Mean response: Variance: Variance of estimated mean: Y N n i Yi= ∑ = 1 1 ( ) ])Y 1i N ( N 1 Y 1i N [ 1N 1 YVar 2 i 2 i = ∑− = ∑ − = ( )Var Y N N N i Y N N i Yi i= − ∑ = − ∑ = 1 1 1 1 1 1 2 2 [ ( ) ]