Introduction To Model & Simulation-7th Sem
Introduction To Model & Simulation-7th Sem
Basic Introduction
A simulation is the imitation of the operation of a real-world
process or system over time.
Whether done by hand or on a computer, simulation involves
the generation of an artificial history of a system and the
observation of that artificial history to draw inferences
concerning the operating characteristics of the real system.
The behavior of a system as it evolves over time is studied by
developing a simulation model.
This model usually takes the form of a set of assumptions
concerning the operation of the system.
These assumptions are expressed in mathematical, logical,
and symbolic relationships between the entities, or objects
of interest, of the system.
Once developed and validated, a model can be used to
investigate a wide variety of "what if" questions about the
real-world system.
WHEN SIMULATION IS THE APPROPRIATE
TOOL
Simulation enables the study of, and experimentation
with, the internal interactions of a complex
system or of a subsystem within a complex system.
Informational, organizational, and environmental
changes can be simulated, and the effect of these
alterations on the model's behavior can be observed.
The knowledge gained during the designing of a
simulation model could be of great value toward
suggesting improvement in the system under
investigation.
1. Changing simulation inputs and observing the resulting outputs can
produce valuable insight into which variables are the most important and
into how variables interact.
2. Simulation can be used as a pedagogical device to reinforce analytic
solution methodologies.
3. Simulation can be used to experiment with new designs or policies
before implementation, so as to prepare for what might happen.
4. Simulation can be used to verify analytic solutions.
5. Simulating different capabilities for a machine can help
determine the requirements on it.
6. Simulation models designed for training make learning
possible without the cost and disruption of on-the-job
instruction.
7.Animation shows a system in simulated operation so that
the plan can be visualized.
8. The modem system (factory, wafer fabrication plant,
service organization, etc.) is so complex that its internal
interactions can be treated only through simulation. `
Performance Evaluation
The simulation-generated data is used
to estimate the measures of performance of the system.
Performance
Evaluation
Performance Performance
Measurement Modeling
6
Simulation Model
7
SYSTEMS AND SYSTEM ENVIRONMENT
To model a system, it is necessary to understand the
concept of a system and the system boundary.
A system is defined as a group of objects that are joined
together in some regular interaction or independence
toward the accomplishment of some purpose.
An example is a production system manufacturing auto
machines, component parts, and workers operate jointly
along an assembly line to produce a high-quality
vehicle.
A system is often affected by changes occurring outside
the system.
Such changes are said to occur in the system
environment. 8
In modeling system, it is necessary to decide on the
boundary between the system and its environment.
This decision may depend on the purpose of the
study.
In the case of the factory system for example the
factors controlling the arrival of orders may be
considered to be outside the influence of the factory
and therefore part of environment.
If the effect of supply on demand is to be conceded,
there will be a relationship between factory output
and arrival of order. - this relationship must be
considered an activity of the system.
9
COMPONENTS OF A SYSTEM
In order to understand and analyze a system, a number
of terms to be defined
An entity is an object of interest in the system.
An attribute is a property of an entity.
An activity represent a time period of specified length.
Example If a bank is being studied, customers might
be one of the entities, the balance in their checking
account might be an attribute, and making deposits
might be an activity
The collection of entities that compose a system for
one study might only be a subset of the overall system
for another study
For example if the bank is being studied to determine the
number of tellers needed to provide for paying and receiving ,
the system can be defined as that portion of the bank consisting
of the regular tellers and the customers waiting in the line
If the purpose of the study is expanded to determine the number
o special tellers needed (to prepare cashier's checks to sell
traveler' s checks etc. the definition of the system must be
expanded.
11
Terminology
12
Terminology
Entity
— An object of interest in the system: Machines in factory
Attribute
— The property of an entity: speed, capacity, failure rate
State
— A collection of variables that describe the system in any
time: status of machine (busy, idle, down,…)
Event
— An instantaneous occurrence that might change the state
of the system: breakdown
13
Simulation Modeling
14
Advantages of Simulation
16
When Simulation Is Not Appropriate
17
Common Mistakes in Simulation
19
Classification of Simulation Models
24
In probability theory and statistics, the
exponential distribution is the probability
distribution of the time between events in a
Poisson point process, i.e., a process in which
events occur continuously and independently at
a constant average rate. It is a particular case
of the gamma distribution.
Simulation Continue …
29
STEPS IN A SIMULATION STUDY
30
STEPS IN A SIMULATION STUDY
Problem formulation.
Every study should begin with a statement of the
problem. If the statement is provided by the
policymakers, or those that have the problem, the
analyst (System / Data) must ensure that the problem
being described is clearly understood.
If a problem· statement is being developed by the
analyst, it is important that the policymakers
understand and agree with the formulation.
Setting of objectives and overall project plan
The objectives indicate the questions to be answered by
simulation.
At this point, a determination should be made concerning
whether simulation is the appropriate methodology for
the problem as formulated and objectives as stated.
Assuming that it is decided that simulation is appropriate,
the overall project plan should include a statement of the
alternative systems to be considered and of a method for
evaluating the effectiveness of these alternatives.
Model conceptualization
The construction of a model of a system is probably as
much art as science.
The art of modeling is enhanced by an ability to abstract
the essential features of a problem, to select and modify
basic assumptions that characterize the system, and then
to enrich and elaborate the model until a useful
approximation results.
Thus, it is best to start with a simple model and build
toward greater complexity.
However, the model complexity need not exceed that
required to accomplish the purposes for which the model
is intended.
Data collection
42
Monte Carlo Simulation
46
Advantages of Trace-Driven Simulations
Credibility
Easy validation: compare simulation with
measurement
Accurate workload: models correlation and
interference
Fair comparison: better than random input
Similarity to the actual implementation:
— trace-driven model is similar to the system
— can understand complexity of implementation
47
Disadvantages of Trace-Driven Simulations
48
Discrete-Event Simulation
49
Discrete and Continuous Systems
50
Discrete-Event Simulation
Departure
Arrival
Arrival
Arrival
Restaurant Example 51
Continuous Simulation
Dam Example 52
DES Model Development
53
Three Model Levels
Conceptual Model
— Very high level (perhaps schematic diagram)
— How comprehensive should the model be?
— What are the state variables?
— Which ones are dynamic, and which are most important?
Specification Model
— On paper: entitites, interactions, requirements, rules, etc.
— May involve equations, pseudocode, etc.
— How will the model receive input?
Computational Model
— A computer program
— General-purpose programming language or simulation language?
54
Simulation Software
Verification
— Computational model should be consistent with
specification model
— Did we build the model right?
Validation
— Computational model should be consistent with the
system being analyzed
— Did we build the right model?
— Can an expert distinguish simulation output from system
output?
56