Professional Documents
Culture Documents
Introduction To Modelling and Simulation
Introduction To Modelling and Simulation
MODELLING AND
SIMULATION
Goals Of This
Course
History of Modeling and
Simulation Introduce Modeling
Introduce Simulation
Develop an Appreciation for the Need
for Simulation
“Learn by Doing”--Lots of Case Studies
History of Modeling and
Simulation
INTEROPERABILITY
GAMES VIRTUAL
REALITTY
LIVE
REHERSAL
SYSTEMS
ANALYSIS ENTERTAINMENT
DISCRETE
What Is A
Model ?
A Representation of an object,
a system, or an idea in some
form other than that of the
entity itself.
(Shannon)
Types of
Physical
Models:
(Scale models, prototype plants,…)
Mathematical
(Analytical queueing models,
linear programs, simulation)
MATHEMATICAL MODEL
• An abstract and simplified representation of a
system
• Specifies
– Important components
– Assumptions/approximations about how the system
works
• Not an exact re-creation of the original system!
• If model is simple enough, study it with Queuing
Theory, Linear Programming, Differential
Equations...
• If model is complex, Simulation is the only
GETTING ANSWERS FROM MODELS
ACTUAL SYSTEM
Operating Policies
• Single queue, parallel servers
• FIFO Output Parameters
(X) (Y)
Input Parameters • Waiting Times
• No of servers MODEL • System Size
• Inter-arrival Time Distribution • Utilizations
• Service Time Distributions
Y = f (X)
STOCHASTIC MODELS
• Randomness or uncertainty is inherent
• Example: Bank with customers and tellers
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
CLASSIFICATION OF SIMULATION MODELS
• Queueing Systems
• Inventory Systems
HOW TO SIMULATE
• By hand
– Buffon Needle and Cross Experiments (see Kelton et
al.)
• Spreadsheets
• Programming in General Purpose Languages
– Java, UML
• Simulation Languages
– SIMAN
• Simulation Packages
– Arena, MAYA, STELLA
Issue: Modeling Flexibility vs. Ease of Use
WHAT IS SIMULATION?
Special Purpose
Simulation Package
Extend, AutoMod, ALPHA/Sim, SIMUL8,STELLA,
Arena, AweSim!, SLX, etc.
MODELLING W/ GENERAL
PURPOSE LANGUAGES
Advantages:
– Little or no additional software cost
– Universally available (portable)
– No additional training (Everybody knows…(language X) !
)
– Open source and free
Disadvantages:
– Every model starts from scratch
– Very little reusable code
– Long development cycle for each model
GEN. PURPOSE LANGUAGES
USED FOR SIMULATION
FORTRAN
– Probably more models than any other language.
PASCAL
– Not as universal as FORTRAN
MODULA
– Many improvements over PASCAL
ADA
– Department of Defense attempt at
standardization
C, C++, Java
– Object-oriented programming language
MODELING W/ GENERAL
SIMULATION LANGUAGES
Advantages:
– Standardized features often needed in
modeling
– Shorter development cycle for each model
– Much assistance in model verification
– Very readable code
Disadvantages:
– Higher software cost (up-front)
– Additional training required
GENERAL PURPOSE SIMULATION
LANGUAGES
GPSS
– Block-structured Language
– Interpretive Execution
– FORTRAN-based (Help blocks)
– World-view: Transactions/Facilities
SIMSCRIPT II.5
– English-like Problem Description Language
– Compiled Programs
– Complete language (no other
underlying language)
– World-view: Processes/ Resources/
GEN. PURPOSE
SIMULATION
LANGUAGES
MODSIM III (continued)
– Modern Object-Oriented Language
– Modularity Compiled Programs
– Based on Modula2 (but compiles into C)
– World-view: Processes
SIMULA
– ALGOL-based Problem Description
Language
– Compiled Programs
– World-view: Processes
GEN. PURPOSE SIMULATION
LANGUAGES (continued)
SLAM
– Block-structured Language
– Interpretive Execution
– FORTRAN-based (and extended)
– World-view: Network / event /
continuous
CSIM
– process-oriented language
– C-based (C++ based)
–
MODELING W/ SPECIAL-
PURPOSE SIMUL.
AdvantagesPACKAGES
– Very quick development of complex
models
– Short learning cycle
– No programming--minimal errors in usage
Disadvantages
– High cost of software
– Limited scope of applicability
– Limited flexibility (may not fit your
specific application)
SPECIAL PURPOSEPACKAGES USED FOR
SIMULATION
NETWORK II.5
– Simulator for computer systems
OPNET
– Simulator for communication networks, including
wireless networks
COMNET III
– Simulator for communications networks
SIMFACTORY
– Simulator for manufacturing operations
MAYA
– Simulator for computer systems
STELLA
– Simulator for manufacturing operations, computer
systems etc
ADVANTAGES OF SIMULATION
•When mathematical analysis methods are not
available, simulation may be the only
investigation tool
•When mathematical analysis methods are
available, but are so complex that simulation may
provide a simpler solution
•Allows comparisons of alternative designs or
alternative operating policies
• Allows time compression or expansion
DISADVANTAGES OF SIMULATION