Introduction To Simulation: Prof. Dr. Nezir AYDIN Yıldız Technical University Industrial Engineering
Introduction To Simulation: Prof. Dr. Nezir AYDIN Yıldız Technical University Industrial Engineering
CHAPTER 1
INTRODUCTION TO SIMULATION
1
What is a Simulation?
• A simulation: imitation of the operation of a real-world
process or a system over time:
• Involves generation of an artificial history of a system.
• Observes that history and draws inferences about system’s
characteristics.
• Can be used as:
• Analyzing tool for predicting the effect of changes to existing
systems.
• Design tool to predict performance of new systems.
• Many real-world systems are very complex that cannot be
solved mathematically.
• Hence, numerical, computer-based simulation can be used to
imitate the system behavior.
2
2
When to use Simulation?
• Simulation can be used for the purposes of:
• Study and experiment with internal interactions of a complex
system.
• Observe the effect of system alterations on model behavior.
• Gain knowledge about the system through design of simulation
model.
• Use as a pedagogical device to reinforce analytic solution
methodologies, also to verify analytic solutions.
• Experiment with new designs or policies before implementation.
• Determine machine requirements through simulating different
capabilities.
• For training and learning.
• Show animation.
• Model complex systems.
3
3
SYSTEM Remember:
System Analysis course
• Examples ?
4
4
Why do we care about systems?
• To evaluate system performance
• To estimate system performance
• To improve processes
System
• To be prepared for errors
Experimentation on Experimentation on
Experimentation
physical model of the mathematical model
on real system
system of the system
• Simulation
• You need to make some assumptions.
• Solution is not optimal
• Optimization
• It finds an optimal solution:
• What if it is not deterministic and/or very complex to model.
• In that case you need to develop or use heuristics methods, but they do
not guarantee optimal solution.
6
6
MODEL
• It is an imitation of the system.
• It should be detailed enough to get correct results to
imitate the true behaviour of the system.
Simplification
Model
Real System Condensation
Assumptions
7
7
Mathematical Model
• It is the condansated and simplified representation of the
system:
• It includes multiple mathematical parameters and assumptions. All
parameters are known or assumed to a certain degree.
8
8
• Policy: Real System
• One queue
• Parallel servers
• FIFO.
• Input Parameters: • Output Parameters:
X Y
• Number of servers • Waiting time
Model
• Distribution of • Utilization of system
interarrival times capacity
• Distribution of
Service time Y=f(X)
9
9
SIMULATION MODEL
• There is uncertainty and randomness:
• Lets consider a banking process.
11
11
Areas of Application
• Some general trends:
• Risk analysis, e.g. pricing, insurance.
• Call-center analysis.
• Large-scale systems, e.g., internet backbone, wireless networks.
• Automated material handling systems as test beds for the
development and functional testing of control-system software.
• Banks
• Airports
12
12
Discrete and Continuous Systems
• Discrete system: in which state variable(s) change only at a
discrete set of points in time.
• e.g., the number of jobs in queue changes when a new job arrives or
when service is completed for another
• Continuous system: in which state variable(s) change
continuously over time.
• e.g., the head of water behind a dam.
14
14
15
15
16
16
How are we going to do?
• Manuel ✓
• On spreadsheets of MS Excel and its addings ✓
• Other computer languages X
• C++, C#, JAVA, etc.. (ask your computer programming instructor)
18
18
STEPS OF A SIMULATION (1/2)
19