1 Introduction To Simulation
1 Introduction To Simulation
Chapter 1
System
The term system is derived from the Greek word systema,
which means an organized relationship among functioning
units or components.
System exists because it is designed to achieve one or more
objectives.
We come into daily contact with the transportation system,
the telephone system, the accounting system, the production
system, and for two decades the computer system.
There are more than a hundred definitions of the word
system, but most seem to have a common thread that
suggests that a system is an orderly grouping of
interdependent components linked together according to a
plan to achieve a specific objective.
System
Model
· A model is a simplified representation of a system at
some particular point in time or space intended to
promote understanding of the real system.
Simulation
· A simulation is the manipulation of a model in such a
way that it operates on time or space to compress it,
thus enabling one to perceive the interactions that
would not otherwise be apparent because of their
separation in time or space.
10
Examples
Circuit Simulator
Concept of Simulation
16
Simulation
“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.”
Why Simulate?
It may be too difficult, hazardous, or expensive to observe a real,
operational system
Parts of the system may not be observable (e.g., internals of a
silicon chip or biological system)
Uses of simulations
Analyze systems before they are built
Reduce number of design mistakes
Optimize design
Analyze operational systems
Create virtual environments for training, entertainment
17
Modeling
• “Modeling is the use of mathematical techniques,
specialized hardware and engineering judgment to
create a representative stand for a real world
environment, device, system or behavior.”
•Modeling of system could be categorized into 2
main tasks:
-Establishing model structure: determines system
boundaries, identify attributes, entities and
activities of system.
-Supplying the data: provide the values for the
attributes and define relationship involved in the
activities.
When to use Simulation? When Simulation is
appropriate tool?
Following are some of the purposes for which
simulation may be used.
1. Simulation is very useful for experiments with the
internal interactions of a complex system, or of a
subsystem within a complex system.
2. Simulation can be employed to experiment with new
designs and policies, before implementing
3. Simulation can be used to verify the results obtained
by analytical methods and reinforce the analytical
techniques.
4. Simulation is very useful in determining the
influence of changes in input variables on the
output of the system.
5. Simulation helps in suggesting modifications in the
system under investigation for its optimal
performance.
6. Simulation models designed for training allow
18
learning without cost and disruption of on-the-job
learning.
When not to use Simulation?
When Simulation is not appropriate tool?
•When problem can be solved using common
sense.
•If problem can be solved analytically.
•If it is easier to perform direct experiments.
•If cost exceeds savings.
•If resources or time are not available.
•If data is not available.
•If simulation cannot be verified and validated.
•If managers have unreasonable expectations.
•If system behavior is too complex or can’t be
defined.
Types of Simulation Models
System model
deterministic stochastic
Monte Carlo
simulation
continuous discrete continuous discrete
Physical Mathematical
System
Simulation
Types of models
Models will first be separated into physical
models or mathematical models.
Physical models are based on some
analogy between such systems as
mechanical and electrical or electrical and
hydraulic.
In a physical model of a system, the system
attributes are represented by such
measurements as a voltage or the position of
a shaft.
Types of models
The system activities are reflected in the
physical laws that drive the model.
Mathematical models use symbolic
notation and mathematical equation to
represent a system.
The system attributes are represented by
variables, and the activities are represented
by mathematical functions that interrelate the
variables.
•Steps in simulation study
1. Problem formulation
2. Setting of objectives and overall project plan
3. Model conceptualization
4. Data collection
5. Model translation
6. Verified
7. Validated
8. Experimental design
9. Production runs and analysis
10. More runs
11. Documentation and reporting
12. Implementation
30
Problem formulation: Every study should
begin with a statement of the problem. If the
statement is provided by policymakers, or
those that have the problem, the analyst 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 policymaker understand and agree
with the formulation. Although not shown in the
figure there are occasions where the problem
must be reformulated as the study progresses.
Setting of objectives and overall project
plan: The objective indicate the questions to be
answered. At this point, a determination should
be made concerning whether simulation is the
appropriate methodology for the problem as
formulated and objectives as stated. 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. It should also include the
plans for the study in terms of the number of
people involved, the cost of the study, and the
number of days required etc.
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 assumption
results. Thus, it is best to start with a simple model
and build toward greater complexity. It is not
necessary to have a one to one mapping between
the model and the real system. It is advisable to
involve the model user in model conceptualization.
Data collection: There is a constant interplay
between the construction of the model and the
collection of the needed input data. As the
complexity of the model changes, the required
data elements can also change. Also, since data
collection takes such a large portion of the total
time required to perform simulation, it is necessary
to begin it as early as possible, usually together
with the early stages of model building. The
objective of study dictates, in a large way, the kind
of data to be collected.
Model translation: Most real world systems
results in models that require a great deal of
information storage and computation, so the
model must be entered into a computer
recognizable format. We use the word
“program” even though it is possible to
accomplish the desire result in many instances
with little or no actual coding. The modeler
must decide whether to program the model in
simulation language, such as GPSS/H, or to
use special purpose simulation software.
Verified: Verification pertains to the computer
program prepared for the simulation model. Is
the computer program performing properly?
With complex models, it is difficult, if not
impossible, to translate the model successfully
in its entirety without a good deal of debugging;
if the input parameters and logical structure of
model are correctly represented in the
computer, verification has been completed. For
the most part, common sense is used in
completing this step.
Validated: Validation usually is achieved
through the calibration of the model, an
iterative process of comparing the model
against the actual system behavior and using
the discrepancies between the two, and the
insight gained, to improve the model. This
process is repeated until model accuracy is
judged acceptable.
Experimental design: The alternatives that
must be simulated must be determined. Often,
the decisions concerning which alternatives to
simulate will be a function of runs that have
been completed and analyzed. For each
system design that is simulated, decisions
need to be made concerning the length of the
initialization period, the length of simulation
runs, and the replication to be made of each
run.
Production runs and analysis: Production
runs and their subsequent analysis are used to
estimate measures of performance for the
system designs that are being simulated.
Setting of Yes
Problem objectives Model Yes
Verified? Validated? Production runs
formulation and overall translation
project plan and analysis
No
Yes Yes
Data No More runs?
collection
No
Documentation
Implementation and reporting
31
Phases In Simulation Study
This process is divide into four phases
Phase1: Problem Formulation: This includes
problem formulation step.
Phase2:Model Building:This includes model
construction, data collection, programming, and
validation of model.
Phase3: Running the Model: This includes
experimental design, simulation runs and
analysis of results.
Phase4: Implementation: This includes
documentation and implementation.
32
Model Development Life Cycle
Define goals, objectives of study
Verify model
Validate model 35
MODEL CONCEPTUALIZATION
Assumed system
Conceptual model
Logical model
34
Develop Specification Model
A more detailed specification of the model
including more specifics
Collect data to populate model
Traffic example: Road geometry, signal timing,
expected traffic demand, driver behavior
Empirical data or probability distributions often used
Development of algorithms necessary to include
in the model
Example: Path planning for vehicles
Develop Computational Model
Executable simulation model
Software approach
General purpose programming language
Special purpose simulation language
Simulation package
Approach often depends on need for
customization and economics
Where do you make your money?
Defense vs. commercial industry
Other (non-functional) requirements
Performance
Interoperability with other models/tools/data
Verification
Did I build the model right?
Does the computational model match the
specification model?
Largely a software engineering activity
(debugging)
Not to be confused with correctness (see
model validation)!
Validation
Did I build the right model?
Does the computational model match the
actual (or envisioned) system?
Typically, compare against
Measurements of actual system
An analytic (mathematical) model of the system
Another simulation model
By necessity, always an incomplete activity!
Often can only validate portions of the model
If you can validate the simulation with 100%
certainty, why build the simulation?
Advantages of Simulation
Simulation helps to learn about real system, without having
the system at all. For example the wind tunnel testing of the
model of an aeroplane does not require a full sized plane.
Many managerial decision making problems are too complex
to be solved by mathematical programming.
In many situations experimenting with actual system may not
be possible at all. For example, it is not possible to conduct
experiment, to study the behavior of a man on the surface of
moon. In some other situations, even if experimentation is
possible, it may be too costly and risky,
In the real system, the changes we want to study may take
place too slowly or too fast to be observed conveniently.
Computer simulation can compress the performance of a
system over years into a few minutes of computer running
time.
40
Advantages of Simulation
Conversely, in systems like nuclear reactors where millions
of events take place per second, simulation can expand the
time to required level.
real situation.
Advantages of Simulation
43
Areas of Applications
44
Areas of Applications
Military:Testing of alternative combat strategies, air
operations, sea operations, simulated war
exercises, practicing ordinance effectiveness,
inventory management.
Healthcare applications; such as planning of health
services, expected patient density, facilities
requirement, hospital staffing , estimating the
effectiveness of a health care program.
45
Areas of Applications
Communication Applications: Such as network
design, and optimization, evaluating network
reliability, manpower planning, sizing of message
buffers.
Games
0 0.01 0.01 00
15 0.15 0.16 01-15