Chapter 01(7)
Chapter 01(7)
Important Note
• In this chapter, an introduction to simulation techniques will be discussed.
In order to deal with the topics at hand, it is necessary that you have a
basic knowledge of algebra and mathematical modeling.
Introducing simulation models
• Simulation “ ”نقلیuses abstract models built to replicate the characteristics of a
system using statistical observations .
• Operation of a system is simulated using probability distributions to randomly
generate system events.
• It plays a very important role, especially in the design of a stochastic system in the
definition of its operating procedures.
• Benefits:-
• Not working directly on the real system, changing input parameters simulates different
scenarios that allow us to identify most convenient one from various points of view Limiting
the costs.
• Reducing the time while working with alternative policies.
• Simulation allows you to predict what happens to the real system with certain inputs.
Question
• How to get to mounting view on Friday night in the last
amount of time?
• Bike
• Drive
• Train
• Uber
• Fly
Decision making workflow
• Constructing a model is a two-way process:
1. Definition of conceptual models
2. Continuous interaction between the model and reality by
comparison
• The models also allow you to analyze and propose
actions: so that you can modify the current
situation and produce the desired solution.
Comparing Modeling and Simulation
• Differences between modeling and simulation.
• Modeling:
• Represents a physical system.
• A design methodology based on producing a model that
implements a system and represents its functionality.
• Simulation:
• Process of seeing how a model-based system would work
under certain conditions.
• Makes it possible to predict the behavior of a system and the
effects of the variations or modifications that are made on it.
• Important Note:
• Simulation puts the model into operation and allows user to evaluate its behavior:
without physical prototyping, developer can verify the functionality of the modeled
system with the project specifications.
Pros and cons of simulation modeling
• Simulation is a tool that's widely used in a variety of fields, from
operational research to the application industry.
Advantages (pros) Limitations (cons)
• It reproduces behavior of a • It provides hints of system
system in reference to situations behavior.
that cannot be implemented.
• Output analysis could be complex
• It represents real systems, even
complex ones. (also insecure and it might be difficult to
ones) identify best formation.
• It requires limited resources in • Implementation of a simulation
terms of data and resources. could be exhausting and time
• It allows experimentation in consuming.
limited time frames. • Simulation results depend on the
• The models that are obtained are data quality.
easily demonstrable.
Simulation modeling terminology 1/5
• Now, we will analyze the key elements that make
up a model and those that characterize a
simulation process.
• System
• State variables
• Events
• Parameters
• Calibration
• Accuracy
• Sensitivity
• Validation
Simulation modeling terminology 2/5
• System
• Set of elements that interact with each other.
• The main problem linked to this element concerns the system
boundaries, that is; which elements of reality must be
inserted/included in the system that represents it and which are
left/not-included out and the relationships that exist between them.
• State variables
• A system is described in each instant of time by a set of variables.
These are called state variables.
For example:
In weather system, the temperature is a state variable.
In discrete systems, the variables change instantly at precise moments of time that are finite.
In continuous systems, the variables vary in terms of continuity with respect to time.
Simulation modeling terminology 3/5
• Events
• An event is defined as any sudden situation that causes
the value of status variables to change.
• There are both external events and internal events.
For example:
The arrival of a blizzard for a weather system is an event, as it causes the temperature to
drop suddenly.
• Parameters
• Parameters represent essential terms when building a
model.
• They are adjusted during the model simulation process.
• They can be modified iteratively through sensitivity
analysis.
Simulation modeling terminology 4/5
• Calibration
• A process by which parameters of a model are adjusted: in order to adapt
the results to data observed in the best possible way is known as
calibration.
• Calibrating the model: achieve best possible accuracy.
• Calibration requires eliminating: errors in data collection and choosing a
theoretical model that is the best possible description of reality.
• Accuracy
• Accuracy is the degree of correspondence of the simulation result.
• Several indicators are available to measure accuracy:
• Mean Absolute Error (MAE)
• Mean Absolute Percentage error (MAPE)
Simulation modeling terminology 5/5
• Sensitivity
• The sensitivity of a model indicates the degree to
which the model's outputs are affected by changes in
the selected input parameters.
• It tells us which parameters should be considered in a
possible and subsequent analysis of the uncertainty of
the output values.
• Validation
• This verifies the accuracy of proposed model as a tool
to support decisions.
• The validation of a model is based on the various
Classifying simulation models 1/5
• Dynamic models: describe the evolution of the system over time. the
state of the system at time ‘t’ is described by a function x (t).
• For example: in population dynamics, x (t) represents the population present at time ‘t’.
Classifying simulation models 3/5
2. Comparing deterministic and stochastic models
• Deterministic model: is uniquely determined by its initial conditions and
characteristics. Such models do not consider random elements and lend
themselves to be solved with exact mathematical methods that are already
derived.
• For examples: of deterministic systems can be observed in some production and automation systems.
𝐹𝑥 = − 𝑘 ∗ 𝑥
of the force due to the spring according to the following formula: