Chapter 01 Basic Simulation Modeling
Chapter 01 Basic Simulation Modeling
Topics
Exercises
Basic Simulation Modeling : Topics
The Nature of Simulation
Simulation
Basic Simulation Modeling
What a system is ?
process
interarrival time
1.2) Systems, Models, and Simulation(cont’d.)
State and state variables
Systems can be simulated at a very
arrival
high level of abstraction
probability
process
interarrival time
▪ artificial workloads
▪ simplified work characteristics
queue
queue
length ▪ removal of most system details
processor processor ▪ focus on a particular component
occupancy
completion
probability
process
interarrival time
1.2) Systems, Models, and Simulation(cont’d.)
State and state variables
Systems can be simulated with a large
arrival
amount of detail
probability
process
interarrival time
▪ replaying traces of real (measured
or logged) workloads
queue ▪ using components of real-world
queue length
systems
processor processor
occupancy ▪ with fine-grained monitoring in
controlled environments
completion
probability
process
interarrival time
1.2) Systems, Models, and Simulation(cont’d.)
▪ Event :
➢ A change in system
state
job arrival
job arrival ==
job enqueue ➢ Easily explained when
job enqueue state is discrete
Laundromat
Communicatio
ns network
1.2) Systems, Models, and Simulation(cont’d.)
Examples
Hospital Patients Attention level Providing -Arrival of patient -N.of patient waiting
required service required -Departure of -N.of doctors
patient working
Manufacturing Machines, Speed, capacity, Welding, Breaking down Availability of
workers break-down manufacturing machines
System
Inventory warehouse capacity withdrawing Demand -level of inventory
-backlogged
demand
Laundromat Washing Breakdown rate Repairing a -Occurrence of N. Of machine
machine machine breakdowns running/ N. of
-Completion of machine in repair/
service N. of machine
waiting for repair
Communicatio messages Length transmitting Arrival at Number waiting to
destination destination be transmitted
ns network
1.2) Systems, Models, and Simulation(cont’d.)
analytical
system solution
experiment with
actual system
physical model
19
1.2) Systems, Models, and Simulation(cont’d.)
System model
deterministic stochastic
– Discrete state
▪ State variables change
instantaneously at separated
queue length
points in time
▪ Bank model: State changes
occur only when a customer time
arrives or departs
– Continuous state
limited but no countable
▪ State variables change
continuously as a function of
water level
time
▪ Airplane flight: State variables
like position, velocity change time
continuously
1.2) Systems, Models, and Simulation(cont’d.)
1.2) Systems, Models, and Simulation(cont’d.)
output
output
input
input
no
model valid
collect data and
define model
yes
no
assumptions design experiments
still valid
yes
make production runs
construct a computer
program & verify
analyze output data
test runs
present results
Basic Simulation Modeling
1.4) Advantages,
Disadvantages, and Pitfalls of
Simulation
1.9) Advantages, Disadvantages, and Pitfalls
Advantages
• Simulation allows great flexibility in modeling complex systems, so simulation
models can be highly valid
• Easy to compare alternatives
• Control experimental conditions
• ‘’What if ’’ questions can be answered,
Disadvantages
• Stochastic simulations produce only estimates – with noise
• Simulation models can be expensive to develop
• Simulations usually produce large volumes of output – need to summarize,
statistically analyze appropriately
Pitfalls
• Failure to identify objectives clearly up front
• Inappropriate level of detail (both ways)
• Inadequate design and analysis of simulation experiments
• Inadequate education, training