Lecture 2 Simulation
Lecture 2 Simulation
Prepared by:
Salah u din Ayubi
Simulation is the
(1) designingprocess
a of
(2) conducting
model of a real experiments with
system, and this model.
WHAT IS
SIMULATION?
estimation of some
quantity or measure of
The objective of a simulation
effectiveness
experimentation may be: to gain an
understanding of the
behavior of the system
evaluation of various
alternative strategies
INTRO TO MODELING & SIMULATION 3
WHAT IS A MODEL?
A 3D model of a planned
Mathematical Model community
TYPES OF
MODELS
Physical models resemble the system being studied, e.g., full-scale mockup for training
pilots.
Scaled models also resemble the system under study, but at a different size. e.g., scaled
up model of an atom.
Analog models. A property of the real (studied) object is represented by a substituted
property that often behaves in a similar manner. e.g., voltage through an electronic analog
computer network may represent flow of goods through a system. A graph is an analog
model: distance represents time, temperature, sales, etc. Another example is an
INTRO TO MODELING & SIMULATION 10
organizational chart.
CLASSIFYING MODELS – CONCRETE TO ABSTRACT
Mathematical models. Symbols represent entities. These are the most generalized models,
with the risk of oversimplification.
Heuristic model is a collection of descriptors or decision rules, usually computer-based,
which is not limited by physical, diagrammatic or mathematical bounds.
What do all these models have in common? An examination of the various models
represented in the classification tree reveals that there is indeed some commonality in the
way these verydifferent fields process information. Each model:
is a view of reality
has a purpose
employs abstraction, structure, and
information hiding
In addition, each model alters reality to some degree. Even physical models, which we
may expect to be fairly good representations, may be faster, slower, flatter, larger, or
smaller than the reality they purport to represent.
Abstraction models reality or, at the very least, a chosen view of reality in which irrelevant
objects or properties are ignored … making the model simpler conceptually and easier to
study, manipulate, and implement.
INTRO TO MODELING & SIMULATION 15
FURTHER CHARACTERISTICS OF MODELS
Static vs. Dynamic. Does the model have a time element, does it “move” over time? An
example of Static-Numerical model is Monte Carlo Sampling; An example of Dynamic-
Analytical model is Time Series regression (a linear model).
Deterministic vs. stochastic. Does the model mimic probabilistic phenomena? Dynami
c
Discrete vs. Continuous.
DES Stochast
Discrete. Variables change at distinct points in time Simulation ic
Continuous. Variables change continuously. Discret
e
System Simulation: Experimenting with an abstract model over time, this experimentation
involving sampling from probability distributions.
Analog simulation. Physical simulation models, e.g., analog cockpit simulator for pilot
training.
Digital simulation – Continuous
Discret
or
e events are expressed as mathematical models using difference and
Continuous simulation. Physical
differential equations to express relationships. Deals with continuously changing variables, e.g.,
fluid dynamics (dams, waste disposal), monetary flow models.
Discrete-event Simulation (DES or DEVS). Models discrete entities.
Hybrid. Some discrete, some continuous elements.