Discrete-Event System Simulation: An Introduction To The Basic Principles of Simulation
Discrete-Event System Simulation: An Introduction To The Basic Principles of Simulation
Discrete-Event System Simulation: An Introduction To The Basic Principles of Simulation
Simulation
An Introduction to the
Basic Principles of
Simulation
1
Required Text
Modeling
Simulation
The process of running a (computer)
model of a real system to study or
conduct experiments
System
System Environment
System Components
System Component
Examples
Bank
Computer Network
Hospital Emergency Room
(Homework)
10
Simulation as the
Appropriate Tool
Simulation as the
Appropriate Tool (contd.)
12
When Simulation is
Not Appropriate
If can be solved by
Common sense or simple
calculations
Analytical methods
Direct experiments
If simulation costs exceed savings
If resources & time are not available
13
When Simulation is
Not Appropriate (contd.)
14
Advantages of Simulation
1.
2.
3.
4.
5.
Control
Time compression
Sensitivity Analysis
Training tool
Doesnt disturb real system
15
Advantages
(Pegden, et al. 1995)
Advantages #2
Disadvantages of
Simulation
1. Expensive
2. Extensive time needed
3. Lack of experienced
personnel
18
Disadvantages
(Pegden et al. 1995)
Offsetting Disadvantages
Simulation Software
Provides templates
Analysis capabilities
Faster simulations
Most systems do not fit closedform models
20
Why Simulate?
To save money
To do things you could
not physically or
morally do within the
actual system
21
22
Areas of Application
Risk Analysis
Activities / Events
Problem!!!
How can we determine the
boundary of a system?
What variables will be necessary
and important in the simulation?
26
Classifications of Systems
1. Static (Monte Carlo) vs. Dynamic
2. Deterministic vs. Stochastic
3. Continuous vs. Discrete
Simulate
Model
1.
2.
3.
4.
5.
6.
training or instruction
to aid thought
to aid communication
prediction
experimentation
** to aid decision making process
28
Classification of Models
Characteristics of a Good
Model
Simple to understand
Goal directed
Robust
Easy to control
Complete on important issues
Adaptive and easy to update
Evolutionary
30
Steps in a Simulation
Study
(Figure 1.3)
1.
Problem Formulation
1.
2.
Questions to be answered
Is simulation appropriate?
Methods, alternatives
Allocation of resources
1.
Steps in a Simulation
Study
(contd.)
3.
Model Conceptualization
1.
2.
3.
4.
4.
Requires experience
Begin simple and add complexity
Capture essence of system
Involve the user
Data Collection
1.
2.
Steps in a Simulation
Study
5.
(contd.)
Model translation
1.
2.
6.
Verification
1.
7.
Computer form
general purpose vs. special purpose
lang.
Does the program represent model
and run properly? Common sense
Validated?
1.
2.
Steps in a Simulation
Study
(contd.)
8.
Experimental Design
1.
2.
9.
10.
More Runs?
34
Steps in a Simulation
Study
(contd.)
11.
1.
2.
3.
12.
Implementation
35
Failure (cont.)
6. Using the wrong computer language
7. Obsolete or Nonexistent
Documentation
8. Using an unverified model
9. Failure to use modern tools and
techniques to manage the development
of a large complex computer program
10. Using Mysterious Results
37
Stochastic Behavior
Monte Carlo
Random, but not over time
E.G. Darts on a dart board
Pseudorandom
Time dependent,
Reproducible
E.G. Customer arrivals
38
First Iteration
1. Traffic is
congested
2. Reduce
traffic
congestion
40
Second Iteration
1. Traffic on westbound street A
is backed up
2. Improve traffic flow,
Westbound street A by
modifying traffic light
41
Third Iteration
1. Westbound traffic on Street A,
turning south onto street B
cannot easily cross so traffic
blocks up.
2. Improve traffic flow on
Westbound Street A by making a
turn only lane to the south with a
protected turn traffic signal.
42
Homework
44