CPS 808 Introduction To Modeling and Simulation
CPS 808 Introduction To Modeling and Simulation
Introduction To
Modeling and
Simulation
Lecture 1
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
10
11
Introduction
12
13
3.
14
MODELLING W/ GENERAL
PURPOSE LANGUAGES
Advantages:
Little or no additional software cost
Universally available (portable)
No additional training (Everybody knows(language X) ! )
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
SIMULA
ALGOL-based Problem Description Language
Compiled Programs
World-view: Processes
Introduction
19
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
SPECIAL PURPOSE
PACKAGES USED FOR SIMUL.
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
Introduction
22
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
EXAMPLES OF SYSTEMS
AND COMPONENTS
System
Entities
Banking
Customers Checking
account
balance
Making
deposits
Arrival;
Departure
State
Variables
# of busy
tellers; # of
customers
waiting
29
SIMULATION WORLDVIEWS
Pure Continuous Simulation
Pure Discrete Simulation
Event-oriented
Activity-oriented
Process-oriented
30
Introduction
31
Examples (continued)
Continuous State and Discrete State
Models:
Example: Time spent by students in a
weekly class vs. Number of jobs in Q.
Introduction
32
Output
Input
Input
33
System
Deterministic
Deterministic
3
Stochastic
2
4
Stochastic
Introduction
34
35
36
to program!)
Documentation is always their lowest priority item.
(Usually scheduled for just after the budget runs out!)
They believe that only wimps read manuals.
What can we do?
Use self-documenting languages
Insist on built-in user instructions(help screens)
Set (or insist on) standards for coding style
Introduction
37
38
39
Introduction
40