Lab 1b Introduction To Modeling and Simulation
Lab 1b Introduction To Modeling and Simulation
Modeling and
Simulation
Introduction
Introduction
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)
Introduction
Types of Models:
Physical
(Scale models, prototype plants,
)
Mathematical
(Analytical queueing models,
linear programs, simulation)
Introduction
What is Simulation?
A Simulation of a system is the operation of
a model, which is a representation of that
system.
The model is amenable to manipulation
which would be impossible, too expensive,
or too impractical to perform on the system
which it portrays.
The operation of the model can be studied,
and, from this, properties concerning the
behavior of the actual system can be
inferred.
Introduction
Applications:
Designing and analyzing manufacturing
systems
Evaluating H/W and S/W requirements for
a computer system
Evaluating a new military weapons
system or tactics
Determining ordering policies for an
inventory system
Designing communications systems and
message protocols for them
Introduction
Applications:(continued)
Designing and operating transportation
facilities such as freeways, airports,
subways, or ports
Evaluating designs for service
organizations such as hospitals, post
offices, or fast-food restaurants
Analyzing financial or economic systems
Introduction
Introduction
10
11
Introduction
12
13
14
MODELLING W/ GENERAL
PURPOSE LANGUAGES
Advantages:
Disadvantages:
Introduction
15
PASCAL
MODULA
ADA
C, C++
Introduction
16
MODELING W/ GENERAL
SIMULATION LANGUAGES
Advantages:
Disadvantages:
Higher software cost (up-front)
Additional training required
Limited portability
Introduction
17
GENERAL PURPOSE
SIMULATION LANGUAGES
GPSS
Block-structured Language
Interpretive Execution
FORTRAN-based (Help blocks)
World-view: Transactions/Facilities
SIMSCRIPT II.5
Introduction
18
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
Introduction
19
GEN. PURPOSE
SIMULATION LANGUAGES
SLAM
(continued)
Block-structured Language
Interpretive Execution
FORTRAN-based (and extended)
World-view: Network / event / continuous
CSIM
process-oriented language
C-based (C++ based)
World-view: Processes
Introduction
20
Disadvantages
High cost of software
Limited scope of applicability
Limited flexibility (may not fit your specific
application)
Introduction
21
OPNET
COMNET III
SIMFACTORY
Introduction
22
Introduction
23
TERMINOLOGY
System
A group of objects that are joined together in
some regular interaction or interdependence
toward the accomplishment of some
purpose.
Entity
An object of interest in the system.
E.g., customers at a bank
Introduction
24
TERMINOLOGY (continued)
Attribute
a property of an entity
E.g., checking account balance
Activity
Represents a time period of specified length.
Collection of operations that transform the
state of an entity
E.g., making bank deposits
Introduction
25
TERMINOLOGY (continued)
Event:
change in the system state.
E.g., arrival; beginning of a new execution;
departure
State Variables
Define the state of the system
Can restart simulation from state variables
E.g., length of the job queue.
Introduction
26
TERMINOLOGY (continued)
Process
Sequence of events ordered on time
Note:
the three concepts(event, process,and
activity) give rise to three alternative ways of
building discrete simulation models
Introduction
27
A GRAPHIC COMPARISON OF
DISCRETE SIMUL.
METHODOLOGIES
A1
P1
A2
E1
E2 /E3
E4
A1
P2
E1
A2
E2
E3
E4
Simulation Time
Introduction
28
SIMULATION WORLDVIEWS
Pure Continuous Simulation
Pure Discrete Simulation
Event-oriented
Activity-oriented
Process-oriented
29
Introduction
30
Examples (continued)
Continuous State and Discrete State
Models:
Example: Time spent by students in a
weekly class vs. Number of jobs in Q.
Introduction
31
Output
Input
Input
32
33
34
Introduction
35
36
37
Introduction
38