Introduction To Modeling and Simulation
Introduction To Modeling and Simulation
Introduction To Modeling and Simulation
Lecture 1
Introduction 1
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 3
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 5
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 6
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 7
data issues, probability and sampling theory. Simulations help students understand probability and sampling theory. Instructional simulations have proven their worth many times over in the statistics based fields. The ability to match simulation results with an analytically derived conclusion is especially valuable in beginning classes, where students often struggle with sampling theory. Given the utility of data simulation, it is not surprising that SERC has an existing module on teaching with data simulation. how to use a model to predict outcomes. Simulations help students understand that scientific knowledge rests on the foundation of testable hypotheses.
understanding and refining their own thought processes. A well done simulation includes a strong reflection summary that requires students to think about how and why they behaved as they did during the simulation. seeing social processes and social interactions in action. This is one of the most significant outcomes of simulation in social science disciplines such as sociology and political science.
Disadvantages:
Every model starts from scratch Very little reusable code Long development cycle for each model Difficult verification phase
Introduction 23
PASCAL
Not as universal as FORTRAN
MODULA
Many improvements over PASCAL
ADA
Department of Defense attempt at standardization
C, C++
Object-oriented programming language
Introduction
24
Disadvantages:
Higher software cost (up-front) Additional training required Limited portability
Introduction 25
GPSS
SIMSCRIPT II.5
Introduction
26
SIMULA
ALGOL-based Problem Description Language Compiled Programs World-view: Processes
Introduction 27
CSIM
process-oriented language C-based (C++ based) World-view: Processes
Introduction 28
Disadvantages
High cost of software Limited scope of applicability Limited flexibility (may not fit your specific application)
Introduction
29
OPNET
Simulator for communication networks, including wireless networks
COMNET III
Simulator for communications networks
SIMFACTORY
Simulator for manufacturing operations
Introduction
30
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
32
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
33
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
34
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 35
P1 E1 P2 E1
A1
E2 /E3 A1
A2
E4 A2 E2 E3 E4
Simulation Time
Introduction 36
Banking
Making deposits
Arrival; Departure
Note: State Variables may change continuously (continuous sys.) over time or they may change only at a discrete set of points (discrete sys.) in time.
Introduction 37
SIMULATION WORLDVIEWS
Pure Continuous Simulation
Pure Discrete Simulation
Event-oriented Activity-oriented Process-oriented
Introduction
39
Examples (continued)
Continuous State and Discrete State Models: Example: Time spent by students in a weekly class vs. Number of jobs in Q.
Introduction
40
Output
Model Deterministic
Stochastic
4
Introduction
Stochastic
42
Introduction
47
Introduction
48