Computer Simulation
Computer Simulation
Computer Simulation
Outline
2
The Nature of Simulations
T. H. Naylor et al., Computer Simulation Techniques, John Wiley and Sons, 1966.
3
The Nature of Simulations
A computer simulation imitates the operation of various
kinds of real-world facilities or physical processes.
4
The Nature of Simulations
The model are simple enough, it may be possible to use
analytic methods to obtain an exact answer on questions
of interest.
5
Computer Simulation
Simulators are computer models of real or proposed products which react differently depending
on the input data that is entered. In this way products can be tested in a virtual environment
prior to full production so design problems can be identified and modifications made.
7
Application Areas of Computer Simulation
Analyzing supply chains
Determining ordering policies for inventory systems
Analyzing mining operations
Flight Simulators (plane or helicopter); help train
pilots.
Car Simulators; help learner drivers.
Test new car body shapes; see how wind will flow
over car (aerodynamics)
Test how cars will react in a crash situation.
8
Advantages with Computer Simulation
Most complex, real world systems with stochastic elements
cannot be accurately described by a mathematical model
that can be evaluated analytically, simulation is the only
available type of evaluation.
Simulation allow one to estimate the performance of an
existing system under some projected set of operation
conditions.
Alternative proposed system designs can be pre-evaluated
via simulation to see which design that meets the system
requirements best.
Much better control over experimental conditions can be
maintained in a simulation than experimenting with a real
system.
9
Advantages with Computer Simulation
Flight Simulators (plane or helicopter); help train
pilots.
Car Simulators; help learner drivers.
Test new car body shapes; see how wind will flow
over car (aerodynamics)
Test how cars will react in a crash situation.
10
Drawbacks with Computer Simulation
Models to study large-scale systems tend to be very
complex, writing computer programs that execute these
models can be a very tedious and hard task.
11
Drawbacks with Computer Simulation
There exist an impression that simulation is just an
exercise in computer programming (a complicated one).
• Consequently, many simulation studies have been composed of
ad hoc models, ad hoc implementation and just run the simulator
once to obtain the answer, attitude.
• This attitude, which neglects the important issue of how a properly
coded model should be used, has doubtless led to that erroneous
conclusions have been drawn in many simulation studies.
12
Pitfalls with Computer Simulation
Failure to have a well-defined set of objectives at the
beginning of the simulation.
Inappropriate level of model detail.
Failure to communicate with management throughout the
course of the simulation study.
Misunderstanding of simulation by the management.
Treating simulation as if it were primarily an exercise in
computer programming.
Failure to have people with a knowledge of simulation
methodology and statistics on the modeling team.
Failure to collect good system data, e.g. not enough data
to create a good model.
13
Pitfalls with Computer Simulation
Inappropriate simulation software.
Belief that easy-to-use simulation tools require a
significantly lower level of technical competence.
Failure to account correctly for sources of randomness in
the system under consideration.
Using arbitrary random distributions as input to the
simulation.
Analyzing the output from the simulation using formulas that
assumes independence.
Making single replication of a particular system design and
treating the output statistics as true answers.
Comparing alternative system designs on the basis of one
replica for each design.
Using wrong performance measures.
14