Lecture 1
Lecture 1
SIMULATION
WHAT IS SIMULATION?
Examples
Manufacturing facility
Bank operation
Airport operations (passengers, security, planes, crews, baggage)
Transportation/logistics/distribution operation
Hospital facilities (emergency room, operating room, admissions)
Computer network
Freeway system
Business process (insurance office)
Criminal justice system
Chemical plant
Fast-food restaurant
Supermarket
Theme park
Emergency-response system
SYSTEM
A set of interacting components or entities operating together
to achieve a common goal or objective.
Examples:
A manufacturing system with its machine centres, inventories
, conveyor belts, production schedule, items produced.
A telecommunication system with its messages, communication
network servers.
A theme park with rides, workers, …
System
Experiment with
Experiment a physical model Experiment with a
with the of the system mathematical model
actual system of the system
Mathematical Simulation
IE 325 Analysis
IE 202 IE 324
IE 303
…
MATHEMATICAL MODEL
ACTUAL SYSTEM
Output Parameters
Operating Policies
• Waiting Times
• Single queue, parallel servers
• System Size
• FIFO (X) (Y) • Utilizations
Input Parameters
• No of servers
• Inter-arrival Time Distribution
MODEL
• Service Time Distributions
Y = f (X)
STOCHASTIC MODELS
Randomness or uncertainty is inherent
Example: Bank with customers and tellers
IE325
m
l
m
ACTUAL SYSTEM
QUEUEING MODEL
• KEY points
• Stochastic modeling forecasts the probability of
various outcomes under different conditions, using
random variables.
• Stochastic modeling presents data and predicts
outcomes that account for certain levels of
unpredictability or randomness.
• In the financial services sector, planners, analysts, and
portfolio managers use stochastic modeling to
manage their assets and liabilities and optimize their
portfolios.
• The opposite of stochastic modeling is deterministic
modeling, which gives you the same exact results every
time for a particular set of inputs.
• The Monte Carlo simulation is one example of a
stochastic model; it can simulate how a portfolio may
perform based on the probability distributions of
individual stock returns.
CLASSIFICATION OF SIMULATION MODELS
• Queueing Systems
• Inventory Systems
Continuous Simulation
• Definition: In continuous simulation, changes to the system
state occur continuously over time. The model represents
the system using differential equations.
• Characteristics:
• Suitable for processes that change in a smooth
manner.
• Often used to simulate systems in physics,
engineering, and environmental studies.
• Examples include fluid flow, chemical reactions, and
population dynamics.
Discrete Event Simulation
• Definition: Discrete event simulation models systems
where changes occur at specific points in time, triggered by
discrete events.
• Characteristics:
• Focuses on the timing and occurrence of events rather
than continuous changes.
• Ideal for systems like queuing processes,
manufacturing operations, and network traffic.
• Examples include customer arrivals at a service
center, machine breakdowns, and inventory
management scenarios
HOW TO SIMULATE
By hand
Buffon Needle and Cross Experiments (see Kelton et al.)
Spreadsheets
Programming in General Purpose Languages
Java
Simulation Languages
SIMAN
Simulation Packages
Arena
Model
conceptualization N Experimental
o Design
Setting of Yes
Problem objectives Model Yes
formulation and overall translation Verified? Validated? Production runs
project plan and analysis
N
o Yes Yes
Data N More runs?
collection o
N
o
Documentation
Implementation and reporting
PROBLEM FORMULATION
Project Proposal
Determine the questions that are to be answered
Identify scenarios to be investigated
Decision criteria
Determine the end-user
Determine data requirements
Determine hardware, software, & personnel requirements
Prepare a time plan
Cost plan and billing procedure
MODEL CONCEPTUALIZATION
Assumed system
Conceptual model
Logical model
CONCEPTUAL MODEL
Cost of model
Patients
Visitors
COMPONENTS OF A SYSTEM
Attribute: is a characteristic of all entities, but with a specific
value “local” to the entity that can differ from one entity to another.
Example: Patient
Type of illness,
Age,
Sex,
Temperature,
Blood Pressure
COMPONENTS OF A SYSTEM
Surgery,
Checking temperature,
X-Ray.
LOGICAL (FLOWCHART) MODEL
2 Departure event
L(t)=L(t)-1
NO YES
B(t)=0 Q(t)> 0 ? Q(t)=Q(t)-1
Model
conceptualization N Experimental
o Design
Setting of Yes
Problem objectives Model Yes
formulation and overall translation Verified? Validated? Production runs
project plan and analysis
N
o Yes Yes
Data N More runs?
collection o
N
o
Documentation
Implementation and reporting
DATA COLLECTION & ANALYSIS
Model
conceptualization N Experimental
o Design
Setting of Yes
Problem objectives Model Yes
formulation and overall translation Verified? Validated? Production runs
project plan and analysis
N
o Yes Yes
Data N More runs?
collection o
N
o
Documentation
Implementation and reporting
MODEL TRANSLATION
Coding
Examples: Examples:
ReportGeneration();
}
STEPS IN A SIMULATION STUDY
Model
conceptualization N Experimental
o Design
Setting of Yes
Problem objectives Model Yes
formulation and overall translation Verified? Validated? Production runs
project plan and analysis
N
o Yes Yes
Data N More runs?
collection o
N
o
Documentation
Implementation and reporting
VERIFICATION AND VALIDATION
Logical model
VERIFICATION
Simulation model
STEPS IN A SIMULATION STUDY
Model
conceptualization N Experimental
o Design
Setting of Yes
Problem objectives Model Yes
formulation and overall translation Verified? Validated? Production runs
project plan and analysis
N
o Yes Yes
Data N More runs?
collection o
N
o
Documentation
Implementation and reporting
EXPERIMENTAL DESIGN
Model
conceptualization N Experimental
o Design
Setting of Yes
Problem objectives Model Yes
formulation and overall translation Verified? Validated? Production runs
project plan and analysis
N
o Yes Yes
Data N More runs?
collection o
N
o
Documentation
Implementation and reporting
DOCUMENTATION & REPORTING
Program Documentation
Allows future modifications
Creates confidence
Progress Reports
Frequent reports (e.g. monthly) are suggested
Alternative scenarios
Performance measures or criteria used
Results of experiments
Recommendations
IMPLEMENTATION