Ebs Cohost
Ebs Cohost
May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
Chapter 1
SYSTEMS CONCEPTS AND MODELING
1.1 INTRODUCTION
The objective of this subject is to learn about heavy construction equipment, methods,
modeling, and simulation. In this text readers will learn how to choose and configure
equipment for different purposes such pure pursuit problem, reservoir, inventory control,
queueing system, etc.
Computer system users, administrators, and designers usually have a goal of highest
performance at lowest cost in least time. Modeling and simulation of system design trade
off is good preparation for design and engineering decisions in real-world jobs. In this
subject we study modeling and simulation of a variety of systems.
Simulation is one of the most powerful tools available to decision-makers responsible
for the design and operation of complex processes and systems. It makes possible the
study, analysis and evaluation of situations that would not be otherwise possible. In an
increasingly competitive world, simulation has become an indispensable problem solving
methodology for engineers, designers and managers. The simulation discipline has now
expanded to include modeling of systems that are human-centered (like commercial, economical,
and social) thus, containing a large amount of uncertainty. Those new fields of applications
make modeling and simulation a dynamically expanding discipline. However, there is a
growing gap between the new problems and the methodology. In particular, more robust
research is required in the area of continuous simulation methodology and numerical
methods. Another important point is model validation: it is difficult to prove that the
model used is absolutely valid. Through examining the system dynamics methodology,
which is over fifty years old, and it is still used in many application fields. However, less
attention is given to the model validity. Modeling and simulation lies somewhere between
science and art, frequently resembling the art of misapprehension.
Modeling and Simulation is a discipline, it is also very much a form of art. One can
learn about riding a bicycle from reading a book. To really learn to ride a bicycle one must
applicable copyright law.
become actively engaged with a bicycle. Modeling and Simulation follows much the same
reality. One can learn much about modeling and simulation from reading books and talking
with other people. Skill and talent in developing models and performing simulations is only
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
developed through the building of models and simulating them. From the interaction of the
developer, the modeling emerges an understanding of what makes sense and what does not.
The terms model and system are key components of simulation. By a model we mean
a representation of a group of objects or ideas in some form other than that of the entity
itself. By a system we mean a group or collection of interrelated elements that cooperate
to accomplish some stated objective. One of the real strengths of simulation is the fact that
we can simulate systems that already exist as well as those that are capable of being
brought into existence, i.e., those in the preliminary or planning stage of development.
Dynamic modeling in organizations is the collective ability to understand the implications
of change overtime. This skill lies at the heart of successful strategic decision process. The
availability of effective visual modeling and simulation enables the analysts and the decision-
makers to boost their dynamic decision by rehearsing strategy to avoid hidden pitfalls.
System Simulation is the mimicking of the operation of a real system, such as the
day-to-day operation of a bank, or the running of an assembly line in a factory, or the
value of a stock portfolio over a time period, or the staff assignment of a hospital or a
security company, in a computer. Instead of building extensive mathematical models by
experts, the readily available simulation software has made it possible to model and
analyze the operation of a real system by non-experts, who are managers but not programmers.
Simulation is nothing but the execution of a model, represented by a computer
program that gives information about the system being investigated. The simulation
approach of analyzing a model is opposed to the analytical approach, where the method
of analyzing the system is purely theoretical. As this approach is more reliable, the
simulation approach gives more flexibility and convenience. The activities of the model
consist of events, which are activated at certain points in time and in this way affect the
overall state of the system. The points in time that an event is activated are randomized,
so no input from outside the system is required. Events exist autonomously and they are
discrete so between the executions of two events nothing happens. The SIMSCRIPT
(a simulation language) provides a process-based approach of writing a simulation program.
With this approach, the components of the program consist of entities, which combine
several related events into one process.
In the field of simulation, the concept of principle of computational equivalence has
beneficial implications for the decision-maker. Simulated experimentation accelerates and
replaces effectively the wait and watch anxieties in discovering new insight and explanations
of future behavior of the real system.
With the integration of artificial intelligence, agents and other modeling techniques,
simulation has become an effective and appropriate decision support for the managers.
For example, in a consumer retail environment it can be used to find out how the roles
of consumers and employees can be simulated to achieve peak performance. It is apparent
that there are many problems of real-life that cannot be represented mathematically due
to the stochastic nature of the problem, the conflicting ideas needed to properly describe
the problem under study, or the complexity in problem formulation. Therefore under such
circumstances simulation is the most often used tool. The analysts and designers of
applicable copyright law.
physical systems have long applied the simulation techniques and these now have become
important tools for dealing with the complex problems in real-life.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
Most but not all digital integrated circuits manufactured today are first extensively
simulated before they are manufactured to identify and correct design errors. Simulation
early in the design cycle is important because the cost to repair mistakes increases
dramatically the later in the product life cycle that the error is detected. Another important
application of simulation is in developing virtual environments, for example in training.
Simulations generate dynamic environments with which users can interact as if they were
really there. Such simulations are used extensively today to train military personnel for
battlefield situations, at a fraction of the cost of running exercises involving real tanks,
aircraft, etc.
It is assumed that Von Neuman and Stanislaw Ulam developed first important application
of simulation for determining the complicated behavior of neutrons in a nuclear shielding
problem being to complex for mathematical analysis. Computer simulation provides a
means to take off the behaviors of complex real systems both quickly and economically.
Simulation models can expeditiously compare the outcomes of alternatives before selecting
a course of action. Simulation models can also provide a dynamic virtual environment for
training. All simulation models require the mathematical representation of a real system
that exists, or could exist, in time and space. A computational representation of that
system then links inputs to outputs through the system architecture.
Computer-based modeling and simulation is used extensively for development of
many complex, large-scale systems such as networks, information systems, and physical
systems. Modeling concepts, theories, and methods provide a foundation for characterizing
structure and behavior of dynamic systems at varying levels of details. These models can
be constructed and subsequently simulated. Since dynamical systems can be described
using alternative modeling and simulation approaches, it is important to understand their
strengths and appropriateness.
It is often said that computers are revolutionizing science and engineering. By using
computers we are able to construct complex engineering designs such as space shuttles.
We are able to compute the properties of the universe, as it was fractions of a second after
the big bang. Our ambitions are ever increasing. We want to create even more complex
designs such as better spaceships, cars, medicines, computerized cellular phone systems,
etc. We want to understand deeper aspects of nature. These are just a few examples of
computer-supported modeling and simulation.
This text presents an object-oriented component-based approach to computer-supported
mathematical modeling and simulation through the powerful Modelica language and its
associated technology. Modelica can be viewed as an almost-universal approach to high-
level computational modeling and simulation, by being able to represent a range of
application areas and providing general notation as well as powerful abstractions and
efficient implementations.
Several projects have been developed so far and several are under progress. The
main objectives of the modeling and simulation project being developed are to:
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
variables that are determined by the system, and that in turn influence the behavior of
its environment. These variables are called outputs of the system.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
Some other definition of systems can also be adapted. While defining the system,
there are certain tasks that must be done. Among these are:
• Divide the system into logical subsystems.
• Define the entities, which will flow through the system.
• For each subsystem, define the stations (locations where something is done to
or for the entities).
• Define the basic flow patterns of entities through the stations using flow
diagrams.
• Define alternative designs for the system, which are to be considered.
• Develop flow charts to show the routing logic for flexible paths.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
The Active Entity. The active entity forms an unnamed list consisting only of the
active entity. The Active-State entity moves nonstop until encountering an operation that
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
puts it into another state (transfers it to another list) or removes it from the model. A
Ready-State entity then becomes the next Active-State entity. Eventually there is no
possibility of further action at the current time. The EMP (Entity Management System)
then ends and a Clock Update Phase begin.
The Current Events List. Entities in the Ready-State are kept in a single list here
called the current events list (CEL). Entities migrate to the current events list from the
future events list, from delay lists, and from user-managed lists. In addition, entities cloned
from the Active-State entity usually start their existence on the current events list.
The Future Events List. Entities in the Time-Delayed State belong to a single list
into which they are inserted at the beginning of their time-based delay. This list, called
the future events list (FEL) here, is usually ranked by increasing entity move time. Move
time is the simulated time at which an entity is scheduled to try to move again. At the
time of entity insertion into the FEL, the entity’s move time is calculated by adding the
value of the simulation clock to the known (sampled) duration of the time-based delay.
After an Entity Movement Phase is over, the Clock Update Phase sets the clock’s
value to the move time of the FEL’s highest ranked (smallest move time) entity. This
entity is then transferred from the FEL to the CEL, migrating from the Time-Delayed
State to the Ready State and setting the stage for the next EMP to begin.
The preceding statement assumes there are not other entities on the FEL whose
move time matches the clock’s updated value. In the case of move-time ties, some tools
will transfer all the time-tied entities from the FEL to the CEL during a single CUP,
whereas other tools take a “one entity transfer per CUP” approach. Languages that work
with internal entities usually use the FEL to support the timing requirements of these
entities. The FEL is typically composed both of external and internal entities in such
languages.
Delay Lists. Delay lists are lists of entities in the Condition-Delayed State. These
entities are waiting for a condition to come about (e.g., waiting their turn to use a
machine) so they can be transferred automatically into the Ready State on the current
events list. Delay lists, which are generally created automatically by the simulation software,
are managed by using related waiting or polled waiting.
If a delay can be related easily to events in the model that might resolve the
condition, then related waiting can be used to manage the delay list. For example, suppose
a machine’s status changes from busy to idle. In response, the software can automatically
remove the next machine-using entity from the appropriate delay list and put it in the
Ready-State on the current events list. Related waiting is the prevalent approach used to
manage conditional delays. If the delay condition is too complex to be related easily to
events that might resolve it, polled waiting can be used. With polled waiting the software
checks routinely to see if entities can be transferred from one or more delay lists to the
Ready-State. Complex delay conditions for which polled waiting can be useful include
Boolean combinations of state changes, e.g., a part supply runs low or an output bin needs
applicable copyright law.
to be emptied.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
User-Managed Lists. User-managed lists are lists of entities in the Dormant State.
The modeler must take steps to establish such lists and provide the logic needed to
transfer entities to and from the lists.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
objects enclosed by a boundary, but this is not essential and the boundary may
be conceptual rather than tangible.
• Environment: All that is external to the system. Everything else of interest,
but which will not be described in detail. Commonly conceived, as external to
the system, but again, this is not essential.
• Open and closed systems: The behavior of an open system may depend upon
its environment; i.e., the two interact. A closed system does not interact with
its environment.
• System variable: A quantity, used to describe the system, which may change
with time or space.
• System input: A quantity that is prescribed or imposed on the system by the
environment; i.e., an independent variable.
• System output: Any system variable of interest is system’s output.
• State determined systems (SDS): A class of systems fully determined by a
finite set of state variables.
• State: A minimal, complete and independent set of state variables that uniquely
describe the system.
• State equations: To describe a state-determined system’s behavior uniquely
for all t > t0 it is sufficient to have:
(i) Value of a finite set of variables (x1, x2, x3, ……., xn) at t0,
(ii) Value of a finite set system inputs (u1, u2, u3, ……., un) for all t > t0, and
(iii) A set of state equations: ym = g m ( x1 , x2 ,......, xn , u1 , u2 , u3 ,......ur , t )
dx1 / dt = f1 ( x1 , x2 ,......, xn , u1 , u2 , u3 ,......ur , t )
dx2 / dt = f 2 ( x1 , x2 ,......, xn , u1 , u2 , u3 ,......ur , t )
dx3 / dt = f 3 ( x1 , x2 ,......, xn , u1 , u2 , u3 ,......ur , t )
.
.
.
dxn / dt = f n ( x1 , x2 ,......, xn , u1 , u2 , u3 ,......ur , t )
• Output equations: Any output variables of a state-determined system may be
expressed as functions of its state and input variables:
y1 = g1 ( x1 , x2 ,......, xn , u1 , u2 , u3 ,......ur , t )
y2 = g 2 ( x1 , x2 ,......, xn , u1 , u2 , u3 ,......ur , t )
y3 = g3 ( x1 , x2 ,......, xn , u1 , u2 , u3 ,......ur , t )
.
.
applicable copyright law.
.
ym = g m ( x1 , x2 ,......, xn , u1 , u2 , u3 ,......ur , t )
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
• The inputs of a system are variables of the environment that influence the
behavior of the system. These inputs may or may not be controllable by us.
• The outputs of a system are variables that are determined by the system and
may influence the surrounding environment.
In many systems the same variables act as both inputs and outputs. We talk about
a causal behavior if the relationships or influences between variables do not have a causal
direction, which is the case for relationships described by equations. For example, in a
mechanical system the forces from the environment influence the displacement of an
object, but on the other hand, the displacement of the object influences the forces between
the object and environment. What is input and what output is in this case, is primarily
a choice by the observer, guided by what is interesting to study, rather than a property
of the system itself.
The shortcomings of the experimental method lead us over to the model concept. If
we make a model of a system, this model can be investigated and may answer many
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
questions regarding the real system if the model is realistic enough. One of the major
disadvantages of experimenting with real or actual system is that the systems are under
the influence of a large number of additional inaccessible inputs and a number of real
useful outputs, which are not accessible through measurements either.
Each of these sources has potential problems. Even when we have copious data, it
may not be relevant. For example, we may have sales data when we need demand data.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
In other cases we may have only summary statistics. When historical data does not exist,
the problem is even more difficult. In such cases we must estimate both the probability
distribution and the parameters based upon theoretical considerations.
• Physical model: This is a physical object that mimics some properties of a real
system, to help us answer questions about that system. For example, during
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
technique of last resort but is a technique which is available to engineers, designers and
managers.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
Reality Model
Only study
behavior in
experimental
a-priori knowledge
context
Model Base
Within
System ‘S’ Context Base model
Experiment Simulate =
within Virtual experiment
context
validation
Experimental Simulation
observed data results
that work for small systems often fail markedly when the scale is increased significantly.
To be upwardly scalable, a system must assure consistency in both the functionality and
the quality of the services it provides as the number of its users increases indefinitely.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
with a wide scope intended to capture the main features of an overall system or scenario.
The approach seeks to exploit the reduction in the large space of alternatives that low-
resolution, or highly abstracted model structures, may provide. A third approach fundamentally
reconsiders the issue of optimization as a search for the best among many alternatives.
The fast, frugal and accurate (FFA) perspective on real-world intelligence provides a
framework for insight into this issue. FFA is taken from the domain of human decision-
making in which full optimization is associated with unbounded rationality. This perspective
recognizes that the real-world is a threatening environment in which knowledge is limited,
computational resources are bounded, and little time is available for sophisticated reasoning.
Simple building blocks that steer attention to informative cues, terminate search processing,
and make final decisions can be put together to form classes of heuristics that perform
at least as well as more complex algorithms.
Fundamental Limits of Modeling and Computation. In order to satisfy the
needs of simulation for increasingly complex systems and processes, an integration of the
statistics-oriented approach and simulation research must be emphasized by the academic
community and the computer-science-oriented approach in acquisition and manufacturing.
The statistics-oriented approach deals with prediction and management of uncertainty,
whereas the computer-science-oriented approach deals with interoperability, reusability,
integration, distributed operation, and human/machine interfaces. The computer-science-
oriented approach is necessary for the future operational success of defense acquisition
and commercial manufacturing, but as processes and systems become increasingly complex,
estimation and management of uncertainties will become increasingly important. Some
fundamental limitations in computation in dealing with complex systems must be recognized.
The performance of any future complex system will be unavoidably stated in probabilistic
terms. A suite of software and a collection of databases may be technically interoperable
and can be used to calculate system performance under a given set of operating environments,
but there is no way that these tools can estimate the percentage of time that the system
will perform satisfactorily under different circumstances, what the expected performance
will be under uncertainty, or what the confidence level of the estimate is.
Performance Estimate. In addition, in order to improve the system performance
estimate by adjusting or tuning various parameters in different phases of the acquisition
process, dimensionality, or combinatorial explosion, must be dealt with. The first fundamental
limitation in computation states that each system performance evaluation via simulation
is time consuming. The second limitation states that a very large number of such evaluations
may be necessary. These difficulties are multiplicative. Finally, there is a third limitation
is “No Free Lunch Theorem”. Without specific structural assumptions, there exists no
optimization or search algorithm that can perform better on the average than blind search
in dealing with the first and second limitation. These three limitations are fundamental
limits on computation in dealing with complex systems. No amount of theoretical, hardware,
or software advances can overcome them. Consequently, a strategic redirection is called
for in dealing with them.
Therefore, to deal with the large search spaces imposed by the second and third
applicable copyright law.
computational limitations, the structure of specific problems must be learned along the
way. A number of automated learning theories currently in trend in artificial intelligence
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
research, such as knowledge discovery, data mining, Bayesian networks, and Tabu search,
may be significant for developing modeling capabilities. Tabu search is a heuristic technique
for search in combinatorial optimization problems.
Errors. Errors in Distributed Simulations fix resources and a model complexity that
exceeds these resources, a trade-off must be made between size and resolution. If some
aspects of a system are represented very accurately, only a few components will be
representable. Alternatively, a comprehensive view of the entire system can be provided,
but only at a low resolution. Such resolution may introduce errors that may pose particular
problems in distributed simulations. In such complex, networked systems of models, owing
to low resolution each model will typically be in error to some degree. Therefore, it is
natural to expect that in a complex system of many linked models, even if individual
inaccuracies are small, such errors can accumulate, propagate, and reinforce each other,
rendering the behavior of the aggregate significantly different from the behavior of the
real system. Error propagation in distributed simulations plays an important role in
verification, validation, and accreditation, and therefore is an important area of research
that needs to be strengthened. In the current state of the art, it is possible to suggest that
such error propagation may, or may not be, a significant issue in distributed simulations.
On other hand, modeling errors in complex systems can be like noises that are more or
less statistically independent. The cumulative effect of many independent errors behaves
according to the central limit theorem and decrease with increasing complexity under
some reasonable assumptions. A simple case is the law of large numbers, which improves
accuracy by averaging many measurements. A second mitigating factor is the theory of
ordinal optimization, mentioned above. Research here has shown that for the purpose of
comparison (for example, which is better?), very crude models are quite sufficient.
Model Correctness. Model correctness is the fundamental requirement of ensuring
that the predictions of a simulation model can be relied upon. The correctness of simulation
requires the development of accurate and reliable models of real-world systems. A prerequisite
to this is an understanding of the real-world systems and objects to be modeled, their
contextual domains, and the phenomenology of their operations and interactions, all at a
level of detail sufficient to justify the model. Once the models have been implemented as
simulations, their correctness must be rigorously evaluated. Domain Knowledge Improved
understanding of the real-world basis for models is needed in the areas of phenomenology
of warfare, physics-based modeling, and human behavior modeling. Phenomenology of
Warfare the military domain is of special importance because it is the primary focus of
SBA and because it is the domain in which human lives are most likely to be risked on
the basis of decisions made using modeling and simulation.
Human Behavior Modeling. Computer-generated forces are often used in training
simulations to provide both opposing forces and supplemental friendly forces for human
participants in a simulation. They are also often used to generate all of the entities in
battlefield simulations being used for non-training purposes, such as analysis and experimentation.
Automated or semi-automated entities are created, and their behavior is controlled by the
computer system, perhaps assisted by a human operator, rather than by human participants
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
where all model characteristics are then computed and graphed for the continuous-time
representation. Time and frequency scales are determined based on the dynamics of the
system (the pole/zero locations). For simulation and prediction, the continuous-time models
are first converted to discrete time, using the sampling interval and inter sample behavior
of the data.
Transformations
Transformations between continuous-time and discrete-time model representations
are performed by c2d and d2c. Note that it is not sufficient just to assign a new value
of Ts to the model object. The corresponding uncertainty measure (the estimated covariance
matrix of the internal parameters) is also transformed in most cases. The syntax is :
modc = d2c(modd) for discrete to continuous
modd = c2d(mc,T) for continuous to discrete
The transformation c2d also offers an optional output argument that describes how
the initial state should be transformed.
If the discrete-time model has some pure time delays, the default command removes
them before forming the continuous-time model, and appends them using the property
InputDelay in model modc. This property is used to add appropriate phase lag and shift
the data whenever the model is used. The command D2C also offers an option to approximate
the dead time by a finite dimensional system. Note that the disturbance properties are
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
derivatives. Here is an example that compares the promise plots of an estimated model
and its continuous-time counterpart.
• m = armax(Data,[2 3 1 2]);
• mc = d2c(m); bode(m,mc)
The transformations between discrete and continuous time depend on the inter
sample behavior of the input. The formulas are different if the input is assumed to be
piecewise constant or piecewise linear between samples (‘zoh’ or ‘foh’). For estimated
discrete-time models, the input properties of the estimation data are used for this purpose,
by default. To override this, add an extra argument, as described in the reference pages
for c2d and d2c.
Discrete-time Model
Such models are used for discrete-time simulations. Discrete-time simulation is commonly
used by the operations research work to study large, complex systems which do not lend
themselves to a conventional analytic approach. A well-known example of discrete-time
simulations is inventory model simulation. Airports, telephone exchanges, production line,
stock of goods are some other examples of discrete-time models.
This kind of model setup allows us to directly assess the structural inter-dependencies
among the shocks to returns and the two different volatility components. The model
estimates suggest that the leverage effect, or asymmetry between returns and volatility,
works primarily through the continuous volatility component. The excellent fit of the
model makes it an ideal candidate for an easy-to-implement auxiliary model in the context
of indirect estimation of empirically more realistic continuous-time jump diffusion effectively
incorporating the relevant information in the high-frequency data.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
discrete nor completely continuous, the need may arise to construct a model with aspects
of both discrete-event and continuous simulation resulting in a combined discrete-continuous
simulation. The three fundamental types of interactions that can occur between discretely
changing and continuously changing state variables:
• A discrete-event may cause a discrete change in the value of continuous state
variables.
• A discrete-event may cause the relationship governing a continuous state variable
to change at a particular time.
A continuous state variable achieving a threshold value may cause a discrete-event
to occur or to be scheduled.
its observed variables, or non-linear in both its parameters and variables. Non-
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
of X(t) remains the same for all t. For example, in economic time series, a process is
first order stationary when we remove any kinds of trend by some mechanisms such as
differencing.
Second Order Stationary. A stochastic process is a second order stationary if it is
first order stationary and covariance between X(t) and X(s) is function of t’s only. Again,
a process is second order stationary when we stabilize also its variance by some kind of
transformations such as taking square root. Clearly, a stationary process is a second order
stationary, however the reverse may not hold. In simulation output statistical analysis we
are satisfied if the output is covariance stationary.
Covariance Stationary. A covariance stationary process is a stochastic process
{X(t), t ≤ T} having finite second moments, i.e., expected of [X(t)]2 be finite. Clearly, any
stationary process with finite second moment is covariance stationary. A stationary process
may have no finite moment whatsoever. Since a Gaussian process needs a mean and
covariance matrix only, it is stationary (strictly) if it is covariance stationary.
Two Contrasting Stationary Process. Consider the following two extreme stochastic
processes:
• A sequence Y0, Y1,....., of independent identically distributed, random-value
sequence is a stationary process, if its common distribution has a finite variance
then the process is covariance stationary.
• Let Z be a single random variable with known distribution function, and set
Z0 = Z1 = ....Zi. Note that in a realization of this process, the first element, Z0,
may be random but after that there is no randomness. The process {Zi, i = 0,
1, 2, ..} is stationary if Z has a finite variance.
Output data in simulation lies between these two types of process. Simulation outputs
are identical and mildly correlated. It depends on a queueing system how large is the
traffic intensity. An example could be the delay process of the customers in a queueing system.
The role of the system engineer is especially important when systems must have
especially predictable and reliable behavior. For example, medical machinery, power plants,
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
and spacecraft usually consist of many individually engineered and manufactured parts, by
different companies. System engineering provides the assurance that normal operations,
including parts failures, will not provide a hazard for the user or anyone else in the
community. The application of systems engineering processes may also result in significant
cost savings, as well as providing a reasonable assurance of the eventual success of the
project.
Systems Engineering (SE) is an interdisciplinary approach and means for enabling
the realization and deployment of successful systems. It can be viewed as the application
of engineering techniques to the engineering of systems, as well as the application of a
systems approach to engineering efforts. Systems engineering integrates other disciplines
and specialty groups into a team effort, forming a structured development process that
proceeds from concept to production to operation and disposal. Systems engineering considers
both the business and the technical needs of all customers, with the goal of providing a
quality product that meets the user needs.
System development often requires contribution from diverse technical disciplines.
Each of these disciplines is normally focused on their own particular contribution to the
system (for example, jet engine designers would not be focused on the aircraft’s hydraulic
subsystem). System engineering’s advantage point is a holistic perspective of the system
and from this perspective integrates all of these technical efforts to ensure that their
various subsystems work with one another. By providing a systems view of the development
effort, System Engineering helps meld all the technical contributors into a unified team
effort, forming a structured development process that proceeds from concept to production
to operation and, in some cases, through to termination and disposal. System Engineering
is usually directly responsible for any engineering function that is not deemed sufficiently
necessary on a project to require a full-time, specialist engineer, although consultants
may be enlisted as needed.
Ideally, Systems Engineering considers both the business and the technical needs of
all customers with the goal of providing a quality product that meets the user needs.
However, the reality in any very large project is often that user needs exceed what the
sponsor is willing to pay for; and the schedule to satisfy those needs generally exceeds
what either of them is willing to live with. As a result, ‘satisfaction of all technical
requirements’ is subject to the usual constraints of cost, schedule, and producibility.
Taking an interdisciplinary approach to engineering systems is inherently complex,
since the behavior of and interaction among system components are not always well-
defined or understood. Defining and characterizing such systems and subsystems, and the
interactions among them, is the primary aim of systems engineering. On very large
programs, a systems architect may be designated to serve as an interface between the
user/sponsor and systems engineer.
There are several methods and tools that are frequently used by systems engineers:
applicable copyright law.
requirements capture, systems architecture and design, functional analysis, interface design
and specification, communications protocol design and specification, simulation and modeling,
verification and validation/acceptance testing, fault modeling.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SUMMARY
Simulation is a discipline, not a software package; it requires detailed formulation of
the problem, careful translation or coding of the system logic into the simulation procedural
language (regardless of the interface type), and thorough testing of the resulting model
and results. There are at least two different skills required to be successful at simulation.
The first skill required is the ability to understand a complex system and its interrelationships.
The second skill required is the ability to translate this understanding into an appropriate
logical representation recognized by the simulation software.
Recently, industry in general has begun to accept that the engineering of systems,
both large and small, can lead to unpredictable behavior and the emergence of unforeseen
system characteristics or emergent properties. Decisions made at the beginning of a
project whose consequences are not clearly understood can have enormous implications
later in the life of a system, and it is the task of the modern systems engineer to explore
these issues and make critical decisions. There is no method which guarantees that
decisions made today will still be valid when a system goes into service years or decades
after it is first conceived but there are techniques to support the process of systems
engineering. Examples include the use of soft systems methodology, the Unified Modeling
Language etc., each of which are currently being explored, evaluated and developed to
support the engineering decision making process.
EXERCISE QUESTIONS
1. Explain the need of modeling and simulation.
2. In what kind of projects modeling and simulation is preferred?
3. Explain the fields where simulation and modeling is used very effectively.
4. Explain the difference between reality and the model in terms of modeling and simulation.
5. Explain the difference between simulation and experiment. Explain the parameters
used for experiments with a system.
6. Write short notes on:
(i) Natural System (ii) Artificial System
(iii) Hybrid System (iv) Model
7. What are different types of models? Give the difference between discrete and continuous
models.
8. Explain the difference between mental model and mathematical model.
9. Explain the difference between static and dynamic model.
10. What do you understand by model validation, verification and calibration?
11. What do you mean by stochastic process and stochastic modeling?
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
Chapter 2
SIMULATION CONCEPTS
2.1 INTRODUCTION
Simulation modeling is similar to other engineering disciplines. It requires training
and experience to become competent, and is not really as easy as some people might have
you believe. It is an art as well as a science. Simulation is one of the most powerful tools
available to decision-makers responsible for the design and operation of complex processes
and systems. It makes possible the study, analysis and evaluation of situations that would
not be otherwise possible. In an increasingly competitive world, simulation has become an
indispensable problem solving methodology for engineers, designers and managers. Simulation
is the imitation of the operation of a real-world process or system overtime. Simulation
involves the generation of an artificial history of the system, and the observation of that
artificial history to draw inferences concerning the operating characteristics of the real
system that is represented. Simulation is an indispensable problem-solving methodology
for the solution of many real-world problems. Simulation is used to describe and analyze
the behavior of a system. Both existing and conceptual systems can be modeled with simulation.
Recent advances in modeling and simulation technologies make them increasingly
appealing as a means of improving commercial manufacturing and defense acquisition.
However, in order for these technologies to support the desired applications in commercial
manufacturing and defense acquisition, additional research and development is needed. As
challenge, the organizations involved in simulation and modeling are often asked to
investigate emerging modeling and simulation technologies, efforts to develop them, and
identify gaps that would have to be filled in order to make these emerging technologies a
reality. The organizations rephrase this task and require determining those topics requiring
research and development to be effectively used in commercial manufacturing and defense
acquisition. The topics requiring research and development are identified by the committee
on the basis of the challenges in the real-world.
A framework for the modeling and simulation of hybrid analog/digital systems has
applicable copyright law.
long been needed. Today, the need to design mixed-signal chips to support the growth in
wireless devices and next-generation automotive electronics has brought this problem to
28
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 29
2.2 SIMULATION
Before we proceed further, it becomes necessary to define the term simulation in
more suitable forms. We define simulation as the process of designing a model of a real
system and conducting experiments with this model for the purpose of understanding the
behavior of the system and evaluating various strategies for the operation of the system.
Thus it is critical that the model be designed in such a way that the model behavior
mimics the response behavior of the real system to events that take place overtime. The
terms model and system are key components of our definition of simulation. By a model
we mean a representation of a group of objects or ideas in some form other than that of
the entity itself. By a system we mean a group or collection of interrelated elements that
cooperate to accomplish some stated objective. One of the real strengths of simulation is
applicable copyright law.
the fact that we can simulate systems that already exist as well as those that are capable
of being brought into existence, i.e., those in the preliminary or planning stage of development.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
measure the time every train spends in the railway station. Count the trains, at the end
sum all times and divide them by the number of trains. Experiment is always the most
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 31
accurate method that should be used whenever it is feasible. Unfortunately very often the
experiment is:
• Too dangerous (behavior of a nuclear reactor in critical situations, landing with
a plane with one jet off, etc.)
• Too expensive (all cases that cause a damage, long experiments studying throughput
of a data network using leased phone lines, etc.)
• Not possible at all if the system being investigated is not available (evaluation
of more possible alternatives in the design stage.)
Analysis: Common example of analysis can be seen as, use a formula of the Queuing
Theory to compute the average time spent in the system directly. To use a formula you
will have to assume certain queuing model, which means a considerable simplification of
the real system, and you will need some quantitative parameters.
Analysis (mostly mathematical) is typically based on strong assumptions that are
rarely true in practical life. Another possible drawback of analytical methods is too complicated
apparatus used and/or too time consuming computation. An example of this is analysis of
Queuing Networks. On the other hand, using formulae gives mostly fast results and it is
possible to check a large number of alternatives by simply inserting different values of
parameters to the formulae. Experimental methods are mostly much more time consuming.
Another problem of analysis is availability of necessary parameters. Their exact measuring
is also not necessarily feasible or it is impossible in the design stage. Using estimated data
or data taken from other similar systems decreases credibility of results.
Simulation: Simulations may be performed manually. Most often, however, the system
model is written either as a computer program or as some kind of input into simulator
software. A simulation generally refers to a computerized version of the model, which is
run overtime to study the implications of the defined interactions. Simulations are generally
iterative in their development. One develops a model, simulates it, learns from the
simulation, revises the model, and continues the iterations until an adequate level of
understanding is developed. Simulation is also an experimental method. Instead of experimenting
with the real system the experiments are performed with the simulation model (whose
design is thus the key point of simulation studies). Also simulation has many drawbacks.
Here are the most important ones:
• Too demanding creation of simulation models.
• Programming simulation models in general languages (like Pascal, Fortran) is
too difficult.
• There are efficient simulation languages but their mastering represents a big
initial investment not always justified.
• There are simulation-tools based typically on some graphical technique that
simplify or even automate creation of simulation models of certain class of
systems.
applicable copyright law.
• Only, limited knowledge of the system being simulated, and some quantitative
parameters must be known.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
These methods cannot be ranked because all of them have advantages and disadvantages.
They can be compared only in the context of certain particular case taking into account
various criteria.
Simulation could be much more flexible than analysis because simulation languages
support generation of random numbers with practically any distribution. In the above
example both random figures can be based on any distributions obtained experimentally.
Nevertheless any distribution needs either several parameters (if it is a theoretical one)
or directly the Distribution Function i.e., the distribution is obtained by measuring. There
can be also things in the system (typically in the design stage) that cannot be quantified
and often it is necessary to accept the fact that there might be aspects we are not aware
of at all, like to much time consuming computation. An example is analysis of large-scale
systems with many components working in parallel. Because application of real parallelism
is still not common, a program performed by a single processor simulates such systems.
Parallel activities are then performed one at a time. The result of this is the fact that
simulation could be much slower than the real time. In general 1 second of the model
time takes 10 minutes of the CPU time. This of course disables application of simulation
in real time control.
A general rule of thumb could be like that: “If the experiment is feasible, use it. It
is always the best method because all the aspects are taken into account. Even if other
methods were used during the design stage, experiment can serve as a final evaluation of
the system. If the experiment is not feasible try to find an appropriate analytical method.
If it is not available, simulation can be used.”
Simulation is not only the last option as it looks like in the above rule. Simulation
can contribute very much to understanding of the system being analyzed not only by
supplying answers to the questions that were originally given. Very often creation of the
simulation model is the first occasion where certain things are taken into account. Specification
of the simulated system can (and often it does) reveal errors or ambiguities in the system
design. So simulation can help very much by avoiding future very expensive updating of
the ready system. A simulation is an experiment performed on a model. A mathematical
simulation is a coded description of an experiment with a reference to the model to which
this experiment is to be applied. Simulation is imitation of the operation of a facility or
process, usually using a computer.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 33
Except by experimenting with the real system, simulation is the only way available
for the analysis of arbitrary system behavior. Analytical techniques are just perfect, but
they usually require a set of simplifying assumptions to be made before they become
applicable. Reasons to use simulation:
• The physical system is not available.
• The experiment may be dangerous.
• The cost of experimentation is too high.
• Control variable, state variable and system parameter may be inaccessible.
• The time constants of the system are not compatible with those of experimenter.
• Suppression of disturbance.
• Suppression of second order effect.
infeasible. Some modern systems are so complex that the interactions can be
organized only through simulation.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
experiments. We must update project constraints on time (schedule) and costs to reflect
current conditions. Even though we have exercised careful planning and budget control
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 35
from the beginning of the project, we must now take a hard, realistic look at what
resources remain and how best to use them. We will also have learned more about the
system in the process of designing, building, verifying and validating the model which we
will want to incorporate into the final plans. The design of a computer simulation experiment
is essentially a plan for purchasing a quantity of information that costs more or less
depending upon how it was acquired. Design profoundly affects the effective use of experimental
resources because:
• The design of the experiments largely determines the form of statistical analysis
that can be applied to the data.
• The success of the experiments in answering the desired questions is largely
a function of choosing the right design.
Simulation experiments are expensive both in terms of the analyst’s time and labor
and in some cases, in terms of computer time. We must therefore carefully plan and
design not only the model but also its use.
3. A fixed time period in terms of simulated time. Thus a simulation may be run
for n time periods, where a time period is an hour or a day or a month.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
4. Transactions aggregated into groups of fixed size. For example, we might take
the time in the system for each 10 jobs flowing through and then use the mean
time of the group as a single datum point. This is usually referred to as
batching.
If the system is a non-terminating, steady-state system we must be concerned with
starting conditions, i.e., the status of the system when we begin to gather statistics or
data. If we have an empty and idle system i.e., no customers present, we may not have
typical steady state conditions. Therefore, we must either wait until the system reaches
steady-state before we begin to gather data (warm-up period), or we must start with more
realistic starting conditions. Both of these approaches require that we be able to identify
when the system has reached steady-state.
Finally, most statistical tests require that the data points in the sample be independent
i.e., not correlated. Since many of the systems we model are queueing networks, they do
not meet this condition because they are auto-correlated. Therefore, very often we must
do something to assure that the data points are independent before we can proceed with
the analysis.
modelers bite off more than they can chew. This is not surprising since in most cases they
have learned the science but not the art of simulation. This is why it is advisable to begin
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 37
with small projects that are not of critical significance to the parent organization. Almost
all other failures can be traced to one of the following:
• Failure to define a clear and achievable goal.
• Inadequate planning and underestimating the resources needed.
• Inadequate user participation.
• Writing code too soon before the system is really understood.
• Inappropriate level of included detail (usually too much).
• Wrong mix of team skills.
• Lack of trust, confidence and backing by management.
of the real system or because it requires fewer simplifying assumptions and hence captures
more of the true characteristics of the system under study. Every concept in itself has its
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 39
• Simulation models are input-output models, i.e., they yield the probable output
of a system for a given input.
Even though simulation has many strengths and advantages, it is not without drawbacks.
Among these are:
• Simulation modeling is an art that requires specialized training and therefore
skill levels of practitioners vary widely. The utility of the study depends upon
the quality of the model and the skill of the modeler.
• Gathering highly reliable input data can be time consuming and the resulting
data is sometimes highly questionable. Simulation cannot compensate for inadequate
data or poor management decisions.
• Simulation models are input-output models, i.e., they yield the probable output
of a system for a given input. They are therefore “run” rather than solved.
They do not yield an optimal solution; rather they serve as a tool for analysis
of the behavior of a system under conditions specified by the experimenter.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
• Analytical methods are expensive and — Simulation gives results in few minutes
time consuming. at a very low cost.
The step-by-step nature of the simulation technique means that the amount of computation
increases very rapidly as the amount of details increases. The best way of using simulation
is an extension of mathematical solution. This can be achieved at the cost of too much
simplification. Simple limitations on the system can easily be removed by simulation.
When a solution of the problem is known, then also simulation provides a quick and more
convenient way of deriving results.
is simple enough, we can use mathematical methods to get exact information on questions
of interest i.e., analytical solution.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 41
But most complex systems require models that are also complex (to be valid) it must
be studied via simulation i.e., evaluate model numerically and collect data to estimate
model characteristics.
Example: Manufacturing Company considering extending its plant:
• Build it and see if it works out?
• Simulate current, expanded operations i.e., we can also investigate many other
issues along the way, quickly and cheaply.
Some (not all) application areas:
• Designing and analyzing manufacturing systems.
• Evaluating military weapons systems or their logistics requirements.
• Determining hardware requirements or protocols for communications networks.
• Determining hardware and software requirements for a computer system.
• Designing and operating transportation systems such as airports, freeways, ports,
and subways.
• Evaluating designs for service organizations such as call centers, hospitals, fast
food restaurants, and post offices.
• Reengineering of business processes.
• Determining ordering policies for an inventory system.
• Analyzing financial or economic systems.
Surveys of use of Operations Research/Modeling Simulation techniques:
• Simulation consistently ranked as one of the three most important techniques.
• Simulation was second only to the broad category of “mathematical programming”.
Impediments to acceptance, use of simulation:
• Models of large systems are usually very complex.
• But now we have better modeling software i.e., more general, flexible, but still
(relatively) easy to use.
• Can consume a lot of computer time.
• But now have faster, bigger, cheaper hardware to allow for much better studies
than just a few years ago and this trend will continue.
• However, simulation will also continue to push the envelope on computing power
in that we ask more and more of our simulation models.
• Impression that simulation is “just programming”.
• There is a lot more to a simulation study than just coding a model in some
software and running it to get the answer.
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
results, putting the results to use, recording the findings, and documenting the
model and its use.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
to the analyst in vague and imprecise terms, such as costs are too high or, “too many jobs
are late.” We must consider the sponsor’s problem description as a set of symptoms
requiring diagnosis. The usual flow of events will be:
Diagnosis of symptoms ⇒ Problem definition ⇒ System definition ⇒ Model formulation.
It is important to remember that we do not model a system just for the sake of
modeling it. We always model to solve a specific problem. Among the questions to be
answered at the beginning of the study are:
• What is the goal of the study i.e., what is the question to be answered or
decision to be made?
• What information do we need to make a decision?
• What are the precise criteria we will use to make the decision?
• Who will make the decision?
• Who will be affected by the decision?
• How long do we have to provide an answer?
Once we have those answers we can begin to plan the project in detail. An important
aspect of the planning phase is to assure that certain critical factors have been considered.
Among these are:
• Do we have management support and has its support for the project been
made known to all concerned parties?
• Do we have a competent project manager and team members with the necessary
skills and knowledge available for sufficient time to successfully complete the
project?
• Do we have sufficient time, computer hardware and software available to do
the job?
• Have we established adequate communication channels so that sufficient information
is available on project objectives, status, changes in user or client needs etc.,
to keep everyone (team members, management, and clients) fully informed as
the project progresses?
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 45
2. Setting of Objectives and Overall Project Plan. Another way to state this
step is prepare a proposal. This step should be accomplished regardless of
location of the analyst and client, viz., as an external or internal consultant.
The objectives indicate the questions that are to be answered by the simulation
study. The project plan should include a statement of the various scenarios
that will be investigated. The plans for the study should be indicated in terms
of time, which will be required, personnel that will be used, hardware and
software requirements if the client wants to run the model and conduct the
analysis, stages in the investigation, output at each stage, cost of the study and
billing procedures, if any.
3. Model Conceptualization. The real-world system under investigation is abstracted
by a conceptual model, a series of mathematical and logical relationships concerning
the components and the structure of the system. It is recommended that
modeling begin simply and that the model grow until a model of appropriate
complexity has been developed. For example, consider the model of a manufacturing
and material handling system. The basic model with the arrivals, queues and
servers is constructed. Then, add the failures and shift schedules. Next, add
the material-handling capabilities. Finally, add the special features. Constructing
an unduly complex model will add to the cost of the study and the time for its
completion without increasing the quality of the output. Maintaining client
involvement will enhance the quality of the resulting model and increase the
client’s confidence in its use.
4. Data Collection. Shortly after the proposal is accepted a schedule of data
requirements should be submitted to the client. In the best of circumstances,
the client has been collecting the kind of data needed in the format required,
and can submit these data to the simulation analyst in electronic format.
Oftentimes, the client indicates that the required data are indeed available.
However, when the data are delivered they are found to be quite different than
anticipated. When the study commenced, the data delivered were the average
talk time of the reservationist for each of the years. Individual values were
needed, not summary measures. Model building and data collection are shown
as contemporaneous in figure 2.2. This is to indicate that the simulation analyst
can readily construct the model while the data collection is progressing.
5. Model Translation. The conceptual model constructed in Step 3 is coded into
a computer recognizable form, an operational model.
6. Verification. Verification concerns the operational model. These models are
orders of magnitude smaller than real models (say 50 lines of computer code
versus 2,000 lines of computer code). It is highly advisable that verification
take place as a continuing process. It is ill advised for the simulation analyst
to wait until the entire model is complete to begin the verification process.
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
Problem Formulation
1
3 4
Model building Data collection
Coding 5
No
Verified? 6
Yes
No 7 No
Validated?
Yes
Experimental design 8
Yes Yes
More runs?
10
No
Document program
11 and report results
12 Implementation
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 47
compare its output to that of the base system. Unfortunately, there is not
always a base system. There are many methods for performing validation.
8. Experimental Design. For each scenario that is to be simulated, decisions
need to be made concerning the length of the simulation run, the number of
runs (or say replications), and the manner of initialization, as required.
9. Production Runs and Analysis. Production runs, and their subsequent analysis,
are used to estimate measures of performance for the scenarios that are being
simulated.
10. More Runs? Based on the analysis of runs that have been completed, the
simulation analyst determines if additional runs are needed and if any additional
scenarios need to be simulated.
11. Documentation and Reporting. Documentation is necessary for numerous
reasons. If the simulation model is going to be used again by the same or
different analysts, it may be necessary to understand how the simulation model
operates. This will enable confidence in the simulation model so that the client
can make decisions based on the analysis. Also, if the model is to be modified,
this can be greatly facilitated by adequate documentation. The result of all the
analysis should be reported clearly and concisely. This will enable the client to
review the final formulation, the alternatives that were addressed, the criterion
by which the alternative systems were compared, the results of the experiments,
and analyst recommendations, if any.
12. Implementation. The simulation analyst acts as a reporter rather than an
advocate. The report prepared in step 11 stands on its merits, and is just
additional information that the client uses to make a decision. If the client has
been involved throughout the study period, and the simulation analyst has
followed all of the steps rigorously, then the likelihood of a successful implementation
is increased.
general, in continuous system, the relationships describe the rates at which the attributes
change, so that the model contains differential equations.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
ode23
400 400
ode45
350 350
300 300
250 250
200 200
150 150
100 100
50 50
0 0
0 5 10 15 20 0 5 10 15 20
Fig. 2.3 Time history and phase plane plot
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 49
tfinal = 15;
y0 = [20 20]’;
% Simulate the differential equation.
tfinal = tfinal*(1+eps);
[t,y] = ode23(‘lotka’,[t0 tfinal],y0);
%Plot the result of the simulation two different ways.
subplot(1,2,1)
plot(t,y)
title(‘Time history’)
subplot(1,2,2)
plot(y(:,1),y(:,2))
title(‘Phase plane plot’)
Now simulate LOTKA using ODE45 (Matlab Command), instead of ODE23. ODE45
takes longer at each step, but also takes larger steps. Nevertheless, the output of ODE45
is smooth because by default the solver uses a continuous extension formula to produce
output at 4 equally spaced time points in the span of each step taken. The plot compares
this result against the previous.
[T,Y] = ode45(‘lotka’,[t0 tfinal],y0);
subplot(1,1,1)
title(‘Phase plane plot’)
plot(y(:,1),y(:,2),’-’,Y(:,1),Y(:,2),’-’);
legend(‘ode23’,‘ode45’)
350 ode23
ode45
300
250
200
150
100
50
0
0 20 40 60 80 100 120 140 160
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
Discrete-event systems are dynamic systems, which evolve in time by the occurrence
of events at possibly irregular time intervals. Discrete-event systems abound in real-world
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 51
of experiments of measurements to derive the different coefficients of the model. This can
be particularly time consuming if the model is not being simplified by assuming linearity.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
Real-time Simulation
Faster than
Real-time
Real-time
Virtual Time
Analytical
Hybrid computers may be used to simulate systems that are mainly continuous but
have some digital element also. Hybrid computers are also useful when a system that can
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 53
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 55
program; some of them with integration step thousands of times smaller than others and
some of them being discrete or combined.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 57
End
Begin / Input Data Simulator Output Data
Optimizer
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
How many different numbers can we obtain through equation (2.1)? Obviously, at most,
m, that is all the numbers between 0 and m - 1. For example, with a = 5, c = 3, x = 7, and
m = 16, we obtain x1 = 6 (as we just saw) and then x2 = 1, x3 = 8, x4 = 11, x5 = 10,
x6 = 5, x7 = 12, x8 = 15, x9 = 14, x10 = 91, x11 = 01, x12 = 3, x13 = 2, x14 = 13, and x15 = 4, in
all the 16 different numbers in the range from 0 to 15. What is x16 in this sequence? We have
a·x15 + c = 23 and x16 = 23 (modulo m) = 7. Thus, the earlier sequence will now be repeated
once again with x17 = 6, x18 = 1, and so on.
The example above illustrates two interesting points. First, any sequence of random
numbers produced through equation (2.1) is cyclical. Each cycle consists of a necessarily
finite number of distinct numbers (at most m). After a cycle has been completed, a new cycle
identical to the previous one begins. (In our example each cycle consists of 16 distinct
numbers.) The finiteness of the cycles will obviously cause problems in a simulation if the
length of a cycle is small: a succession of identical short cycles of numbers definitely does
not behave as a sequence of independent random numbers (we have xn+t where τ is the
length of the cycle). However, if m is a very large number and a and c are chosen with
sufficient care to make the length of each cycle comparable to the size of m, the finiteness
of the cycles is of no practical significance. Consider the case when m is chosen to be
equal to 2b, where b is the number of bits in a binary computer word. This is the choice
of m made in computer-based simulations, since 2b is the total number of integers that
can be expressed in binary form with the number of bits available. When b = 32, we have
m = 232 distinct numbers. With a cycle length in this order of magnitude, it is an entirely
academic matter that the same sequence of numbers will be repeated at some future point.
The second observation concerns the meaning of the word random in the case of
sequences produced through equation (2.1). Obviously, if we know a, c, and m we can
predict perfectly the complete sequence that will follow any initial number x0. For this
reason, the initial number x0 used to produce some sequence of numbers is called the seed
of this sequence. For the same reason, the sequences of numbers produced through
equation (2.1) (as well as through other congruential methods) are also called pseudo-
random numbers. This, however, is also of academic importance as long as the sequences
of numbers produced through equation (2.1) qualify (through passing the appropriate
statistical tests) as independent samples from a discrete, uniform probability distribution,
that is, as long as the successive numbers appear to an observer to be drawn from a game
similar to the spinning wheel game that we described earlier.
In fact, the property of reproducibility for the sequences generated through equation
(2.1) is in itself a most desirable one. For, when we wish to perform a simulation experiment
under “identical conditions” with some earlier experiment, all we have to do is provide the
same seed, x0, used in the earlier experiment to obtain the same sequence of random (or
pseudo-random) phenomena as before.
We have yet to say how the constant positive integers a and c in equation (2.1) are
applicable copyright law.
chosen. An unfortunate choice of a and c will unavoidably lead to short cycles of numbers
(which are usually anything but uniformly distributed) even for a large m. The branch of
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 59
mathematics called number theory provides the guidelines for a good choice of a and c.
For instance, in the case of digital computers, whereas we have mentioned, we use m =
2b, it can be shown that a should be chosen such that it is equal to 1 in modulo 4
arithmetic (i.e., a = 1, 5, 9, 13 .... ) and that c should be an odd number. The choice of x0,
the seed, is immaterial in this case as far as the length of the cycle is concerned.
The desirable properties of any method for producing sequences of random numbers
in a digital computer are:
1. The numbers should appear to be statistically independent of each other (although,
strictly speaking, they are perfectly correlated).
2. The numbers should be uniformly distributed over some range.
3. The sequence of numbers should not be self-repeating for any desired length.
4. The random numbers should be producible at very high speed.
5. The method should place minimal requirements on the memory of the computer.
6. Any sequence of random numbers obtained during a given simulation experiment
should be reproducible.
The congruential method that we have just described is typical of the techniques
used to generate random numbers and possesses all of the properties listed above.
In a practical sense, the important fact is that any modern computer system is
preprogrammed to produce sequences of random numbers that possess-at least as all six
close approximation of the desirable properties mentioned above. Typically, these numbers
are produced by just calling an appropriately named function or subroutine in the computer
repertoire (typical names for these mini programs include RAND, RANDU, etc.). All that
is required of the programmer is to provide a seed to begin the sequence. The computer
subsequently provides automatically the input (i.e., the number xn-1 in the mixed congruential.
method) needed to produce the next number, xn, in the sequence.
The random numbers produced through these preprogrammed methods are usually
presented in the form of numbers uniformly distributed between 0.0 and 1.0. Obviously,
the 0 to 1 interval is thus subdivided so finely that, for all practical purposes, it can be
assumed that the computer produces statistically independent samples from the continuous
uniform probability density function shown on figure 2.7. This, too, will be our assumption
from here on, and we shall use the expression independent uniformly distributed over
[0, 1] random numbers.
Classical uniform random number generators have some major defects, such as,
short period length and lack of higher dimension uniformity. However, nowadays there is
a class of rather complex generators, which is as efficient as the classical generators while
enjoy the property of a much longer period and of higher dimension uniformity. Computer
programs that generate random numbers use an algorithm. That means if you know the
algorithm and the seed values you can predict what numbers will result. Because you can
applicable copyright law.
predict the numbers they are not truly random they are pseudorandom. For statistical
purposes good pseudorandom numbers generators are good enough.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
The following figure shows the graph of random variable x with the uniform probability
density function over [0, 1].
fX (x)
0 1 x
Fig. 2.7 The random variable X with the uniform PDF on [0,1]
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 61
integer*4 z, k, s1, s2
common /unif_seeds/ s1, s2
save /unif_seeds/
k = s1 / 53668
s1 = 40014 * (s1 - k * 53668) - k * 12211
DIMENSION RVEC(*)
SAVE ISEED1, ISEED2, ISEED3
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
f ( x) x
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
h(x)
f(x)
Assuming the required distribution f(x) is known over some range [a, b] and that one
can find a second constant function h(x) = m (parallel line to x axis) such that M > f(x)
over the whole range. Then one can generate the distribution of random numbers in the
f(x) distribution using the following steps:
(1) Generate a random number, u, from a uniform distribution in the range [a, b]
(2) Generate a random number, v, from a uniform distribution in the range [0, M]
(3) If v < f(u) we have a hit and we accept the random number u else we have a
miss and we reject the number and go back to step 1.
For example, to generate a random values of in the range of 0 to 5 with a probability
distribution of f ( x) = x 2
25
f(x)
0
0 x 5
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 65
Using Von Neumann’s Method we can generate a single random number using a
do-while-loop in C language:
do {
x = 5.0 * (double)rand()/RAND_MAX ;
prob = 25.0*(double)rand()/RAND_MAX;
}
while ( prob > x*x );
Monte Carlo are both numerical computational techniques. Simulation applies to dynamic
models whereas Monte Carlo technique applies to static models.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
1 C
y (x, y)
0 x 1
A B
All the points satisfying the equation (2.9) lies in this quadrant
x2 + y2 ≤ 1 where x, y ≥ 0 ...(2.9)
Equation (2.9) can be rewritten as
...(2.10)
y
On generating a pair of uniform random number r 1 and r 2 and in the range
(0, 1). The pair (r1, r2) is acceptable if equation (2.3) becomes else the pair is rejected.
Another pair of uniform random number is generated and tested. Clearly, the entire
rejected points lie above the curve and those accepted pair lie below the curve.
2
r2 ≤ 1 − r1 ...(2.11)
If we generate a large number of random pairs (N) and compute the ratio of the
number of pairs accepted (n) to those generated, and if N points are used and n of them
fall under the curve, than approximately
π/2 π/2 π/2
n f ( x) dx f ( x) dx
N
= ∫0
Area of rec tan gle ABCD
= ∫0
1×1
= ∫
0
f (x) dx ...(2.12)
The accuracy improves as the number N increase limit 0 to π/2 as curve is starting
from x-axis and ending at y-axis. When it is decided that sufficient points have been taken,
n
the value of the integral is estimated by multiplying by the area of rectangle ABCD.
N
The ratio will approach the area under the curve, which is π/4. Thus by using random
number a completely deterministic problem is solved, called Monte Carlo technique. In
applicable copyright law.
this example area under the curve was evaluated through rejection technique.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 67
}
p = 4.0 * j / n;
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
s = s + p;
printf ( “%4d The approximate for pi is %21.15f %21.15f\n”, k, p, p-M_PI);
}
p = s / 10.0;
printf ( “ Average approximate for pi is %21.15f %21.15f\n”, p,
p-M_PI );
printf ( “ pi = %21.15f \n”, M_PI );
return EXIT_SUCCESS;
}
Monte Carlo Method for the integral of f(x). Here is a program that uses the Monte
Carlo method to compute the integral of a function. We compute the area that is both
under the curve 0 ≤ y ≤ f(x) and in the box a ≤ x ≤ b and 0 ≤ y ≤ c .
/* For Monte Carlo integral, we assume that the function is given between
a <= x <= b We compute the area of the { (x,y) : a <= x <= b and 0 <= y <= min(c,f(x)) }
by counting the relative number of random points in the rectangle [a,b]x[0,c] that fall in
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 69
# include <stdio.h>
# include <stdlib.h>
# include <math.h>
double f( double x );
int main ( void )
{
double a, b, c, d, x, y, p, q, r, sum=0.0, ans, ranmaxpo;
int i, j, k, m=15, n=2000000;
ranmaxpo = 1.0 + RAND_MAX;
printf ( “ Enter the left, right and upper bounds : ”);
scanf ( “%lf %lf %lf”, &a, &b, &c );
a = fabs ( a );
b = fabs ( b );
c = fabs ( c );
if ( b < a )
{
d = a;
a = b;
c = d;
}
printf ( “\n Monte Carlo Integration of min(f(x),%f) over %f <= x <= %f\n”, c,
a, b);
ans = ( d * d + a * a ) * ( d * d - a * a ) / 4.0 + ( b - d ) * c;
printf(“ Note that here f(x) > %f for %f < x <= %f\n”, c, d, b );
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
}
printf( “\n\t n\t Approximate the integral\t\tError\n”);
for(k=1;k<= m; k++)
{
j = 0;
q = c / ranmaxpo;
r = ( b - a ) / ranmaxpo;
for ( i = 1; i <= n; i = i+1 )
{
x = a + r * rand ();
y = q * rand ();
if ( f(x) > y )
j++;
}
p = ( b - a ) * c * j / n;
printf ( “%12d%22.15f%22.15f\n”, k, p, p - ans );
sum = sum + p;
}
p = sum / m;
printf ( “Average int =%21.15f%22.15f\n”, p, ans - p );
printf ( “Actual int = %21.15f”, ans );
printf ( “ Number of points is %ld\n”, (long int)n * (long int)m );
return EXIT_SUCCESS;
}
double f( double x )
{
return x * x * x;
}
which relies on integer arithmetic to generate a very long stream (6.95E+12) of pseudo-
random numbers uniformly distributed in the interval between 0 and 1.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 71
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
• I = rotational inertia
• α = θ "= angular acceleration.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 73
The rotational inertia about the pivot is I = mR2. Torque can be calculated as the
vector cross product of the position vector and the force. The magnitude of the torque due
to gravity works out to be τ = –Rmgsinq. So we have–R mgsinq = mR2 α which simplifies to
q’’ = – g/R sinq
This is the equation of motion for the pendulum.
C Language Implementation
/* pendulum.c Mimic ODE simulation for the one link pendulum */
#include <stdio.h>
#include <math.h>
/* Score parameters */
#define VISCOUS_FRICTION 0.1
#define STATE_PENALTY 0.1
/* servo gains */
double k = 5.0;
double b = 1.0;
main()
{
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
double angular_velocity = 0;
double new_angular_velocity = 0;
double angular_acceleration = 0;
double torque = 0;
double total_torque = 0;
double score = 0;
int count = 0;
for( ; ; )
{
torque = -k*( angle - angle_desired ) - b*angular_velocity;
total_torque = torque - VISCOUS_FRICTION*angular_velocity
- MASS*G*LENGTH*0.5*sin(angle);
angular_acceleration = total_torque/I_joint;
new_angular_velocity = angular_velocity + angular_acceleration* TIMESTEP;
angle += (new_angular_velocity + angular_velocity)*TIMESTEP/2;
angular_velocity = new_angular_velocity;
time += TIMESTEP;
score += torque*torque*TIMESTEP + STATE_PENALTY*TIMESTEP* (angle -
angle_desired)* (angle - angle_desired);
else
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 75
{
fclose( data_file );
exit( -1 );
}
processing capability.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
y
Express
20.0
Price
The inventory-based price model relaxes the assumption that supply must be equal
to demand to consider how maintaining an inventory might moderate the possible instability.
applicable copyright law.
For example, Retail stores, very often buy an inventory, set a price, and then wait to see
what demand might be.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 77
The inventory base-pricing model illustrates that the cobweb might or might not be
a realistic challenge to supply and demand equilibrium. Introducing an inventory buffering
the difference between supply and demand and letting prices respond to the level of
inventory can be sufficient to eliminate the instability observed for the basic cobweb
model. There are two ways to present the cobweb models:
(a) The Traditional Cobweb Model: This shows the cobweb by alternating between
supply and demand.
(b) The Simultaneous Cobweb Model: This determines supply and demand jointly.
y
4.0
0.0 x
One criticism of this model is its assumption that producers are extremely short
sighted, they are fundamentally unable to judge market conditions of learn from their
pricing mistakes that results in surplus or shortfall cycles. This assumption is seen to be
unrealistic.
data value) tracks the passage of simulated time (as distinct from wall-clock time). The
clock advances in discrete steps (typically of unequal size) during the run. After all possible
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
actions have been taken at a given simulated time; the clock is advanced to the time of
the next earliest event. Then the appropriate actions are carried out at this new simulated
time, etc.
The execution of a run thus takes the form of a two-phase loop: “carry out all
possible actions at the current simulated time,” followed by “advance the simulated clock,”
repeated over and over again until a run-ending condition comes about. The two phases
are here respectively called the Entity Movement Phase (EMP) and the Clock Update
Phase.
design; (9) production runs and analysis; (10) repeat of step (9) if necessary; (11) documentation
of program and reporting of results; and (12) implementation of proposed system. (Steps
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 79
3 and 4 take place concurrently.) The following paragraphs present recommendations for
accomplishing some of these steps when developing simulation models. The recommen-
dations are probably applicable to all types of simulation models, not just those in healthcare;
but they are based on experience with healthcare projects.
Ramp Operations. Ramp operations are generally much more complicated than
most people realize. There are many different functions working in coordination with each
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
other to ensure the efficient utilization of aircraft. Services performed on aircraft include
fueling, catering, lavatory cleaning, baggage loading and unloading, cargo loading and
unloading. The vehicles performing these services all compete for usage of the same
roadways.
Cargo Handling. Airports are large centers for cargo distribution. In addition to
planning the pick-up and deliver goods from aircraft, most large airports have main cargo
buildings where cargo sortation is performed.
Baggage Handling. Each airline and airport must be able to get a passengers’ bag
from either the curb or the Airport Ticket Office (ATO) to the departing aircraft. At
smaller airports, bag handling is often performed manually, after a bag is delivered to the
ramp side of the terminal via a conveyor belt. Larger airports utilize very complex
sortation systems to route bags to specific piers or circulating make-up devices. A bag
system may also incorporate security screening, early bag storage, and manual encode
stations (to identify and manually re-direct bags with missing or unreadable bag tags.) The
bag system must ensure that all bags handled throughout the airport can be delivered to
their destination gates in time to reach the departing flight. Three technologies dominate
airline baggage handling today: conventional conveyor, tilt-tray, and automated guided
vehicles.
Passenger Flow. Passenger flow is described in three component sections: general
circulation, automated people mover systems, and Federal Inspection Services.
General Circulation. Airport facilities should ensure that passengers experience an acceptable
level of service while in the facility. This includes factors such as not having to wait too long
in queue at a ticket counter or gate, not having to walk extremely long distances in the
terminal, not being crammed into elevators, hallways, or waiting areas where there is little
or no ability to circulate. Most importantly all passengers should be able to comfortably
reach their gate by either walking or using a moving walkway or airport train. Simulation
is frequently used to predict passenger connection times, to determine expected occupancy
levels at various locations throughout an airport terminal, or to determine how long passengers
will wait at various points throughout the terminal.
Automated People Mover Systems. Most large airports have a light rail system that
will connect passengers between terminal buildings. For these systems additional design
issues must be considered such as transport time, capacity and station location.
Federal Inspection Services. Passengers arriving to an airport coming from a destination
outside of the US and its territories are required to be screened through Immigration, US
Customs, and US Agriculture. These facilities must also be properly sized to ensure that
all of the passengers using the facility are processed in time to meet connecting flights.
Problem Identification. The first step in any study is to determine a few basic
requirements: the system to be studied, the objective of the study, and the timeline for
the results. This is never as straightforward as it seems. In some cases the problem
identification takes place before a notice to proceed has been given.
Data Collection/Data Analysis/Assumptions Development. Large-scale simulations
applicable copyright law.
require a lot of data. Invariably, the information gathering for the model is the longest
part of the project. It is typical for the data collection and analysis to take one third to
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 81
one half of the total project, even more time than the model development. In some cases
the required information is readily available, in some form, from existing records provided
by the client. The analyst must make the decision whether the available data is sufficient
or whether field observations will be necessary. Other parameters may be taken from
standard references.
Simulation Design, Development, and Validation. This is probably the most
straightforward step in the study. It may be technically challenging, but it is the one step
that is probably the easiest to control. Design generally does not start until after the
assumptions document has been completed. In reality, there is almost always down during
the data collection phase when we start designing the model. There is a risk associated
with doing this since anything developed prior to the client acceptance of the assumptions
document may be wasted if the assumptions are changed or amended.
Initial Experimentation. Initially, there is need to run some experiment. The
initial design of the model generally reflects the baseline scenario. Baseline results should
be generated and validated. Project timeline pressures invariably influence or limit the
number of replications that can be made.
2.18.3 Validation
Validation is the process off ensuring that the model (with some degree of confidence)
represents the true system. Two types of validation are commonly used:
1. If the process being studied already exists, and historical performance data is
available, then statistical methods should be used. In most cases simple hypothesis
testing techniques can be used to perform the validation.
2. If the process is currently not already in operation then a “Face Validation”
needs to be performed. “Face Validation” is the process of reviewing results by
experts to determine the reasonableness of the results.
Analysis of Results. After all of the experiments be sure to carefully analyze all
of the results. The results from one experiment usually help you determine if other
scenarios should also be evaluated.
Develop Report and Present Results. There are many references for the various
statistical methods used in the analysis. It is important to provide the results to the client
in a format that they will understand. As a general rule architects like information
graphically while operations people are more comfortable with numbers in tables. Two
types of reports are frequently generated: An Executive Summary (which just focuses on
the major results), and a comprehensive summary of the findings from all of the experiments
performed. Simulation is not particularly good at providing this type of information, so the
analyst should learn to track the results to determine the causes. A statement that the
worst case delivery time is 45 minutes is not very informative. Stating that this was
caused by the simultaneous unloading of four aircraft on two adjacent belts is much
stronger. This second statement explains the unexpected result and suggests possible
corrections. Extreme results without explanation are more likely to generate suspicion of
applicable copyright law.
the model than of the system being studied. The simulation results represent one of
these, operational performance. Cost and projected timeline are other quantifiable factors.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
Less quantifiable factors, such as confidence in the supplier, are also considerations. It is
rarely necessary to determine whether one alternative is statistically better than another
is when the simulation analysis shows that two alternatives are close.
SUMMARY
A large volume of literature on the theory and success stories has been built-up on this
subject during the past decade. On the other hand, it is known from work on numerical
analysis, that numerical methods can introduce instabilities that greatly magnify errors
even if the underlying models are stable. To obviate error-induced instabilities, criteria that
enable choice of time-step size and other controllable factors are well-known for non-distributed
simulations. However, the major difference between distributed simulations and their non-
distributed counterparts is that control and data are encoded in time stamped messages that
travel from one computer to another over a (bandwidth limited) network. Traditional analyses
in the design of numerical methods consider trade-offs between accuracy and speed of computation.
However, since distributed messaging requires that continuous quantities be coded into discrete
packets and sent discontinuously, it is more appropriate to consider discrete event simulation
as a natural means to consider accuracy or bandwidth trade-offs. Recent work has shown
that significant reductions of message bandwidth demands (number and size of messages)
with controllable error and local computation costs are possible. Finally, the issue of numerical
stability in complex simulation is related to the problem of sample path continuity with
respect to parameter and timing perturbation.
Modeling Simulation and Optimization (MSO) is mature enough to play an important
applicable copyright law.
role in the Product Development Process (PDP) in industry. MSO keeps its role as a tool
for analysis but can be much more important for synthesis especially in the preliminary
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SIMULATION CONCEPTS 83
design phase. Thus MSO changes the way engineering is performed and where engineers
become more involved in the synthesis phase.
In most cases of simulation optimization, we only need to know the order or be able
to locate the top one percent of the design. It is not necessary to know the performance
value accurately. Approximate simulation models are quite adequate for the former purpose.
Once the top one percent has been located with high probability, we can abundant our
attention and computing budget on this much smaller subset.
EXERCISE QUESTIONS
1. Why do we go for simulation? Why is simulation important?
2. When do we use simulations? What must we know before simulation?
3. Explain the benefits and pitfalls in simulations.
4. Explain the differences between simulation and analytical methods.
5. Explain the basic nature of simulation.
6. What are important types of system simulation? Explain continuous system simulation.
7. Write short notes on
(i) Discrete System Simulation
(ii) Hybrid Simulation
(iii) Real-time Simulation
(iv) Object-oriented Simulation
(v) Social Simulation
(vi) On-line Simulation
8. Explain web-based simulation and distributed simulation in detail.
9. What do you mean by random numbers? What is the importance of random numbers?
Write a high level language program to generate random numbers.
10. Explain the Monte-Carlo method for generating random numbers.
11. Explain the generation of uniformly distributed random numbers.
12. Explain the purpose of generation of non-uniformly distributed random numbers.
13. How random numbers can be used in deterministic problems?
14. Explain the distributed lag models in detail with the help of suitable diagram.
15. Explain cobweb models. In what types of simulation applications it can be used?
16. Explain application areas of system simulation. How simulation can be used in airport
design?
17. What do you understand by optimization of modeling simulation?
18. Explain the role of modeling and simulation in product development process?
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
Chapter 3
SYSTEM SIMULATION
3.1 INTRODUCTION
Building complex software systems usually begins with addressing the system’s architecture.
Without a firm impression of how the major components of a software system interact,
there is little possibility that the system will perform effectively. One would like to know
early in the development cycle that such attributes as reliability, reusability, maintainability,
portability, performance, and modifiability are some acceptable level. There are complex
dependencies among these attributes. For example, in improving performance, reusability
might be sacrificed, or in improving portability, maintainability might require increased
effort. Making tradeoffs in this multi-dimensional space is not easy, but if they are not
made at a high level of design abstraction, there is little chance that they can be dealt
with once coding begins. Simulation is a tool that can be used to examine some of these
architectural tradeoff issues. Simulation can provide early insights, for example with
timing, resource usage and bottlenecking, and also into usability. In addition, one can
rapidly gain insights into the implications of design changes, by running simulations by
varying independent parameters.
Computer simulation was developed hand-in-hand with the rapid growth of the computer,
following its first large-scale deployment during the World War II to model the process of
nuclear detonation. It was a simulation of twelve hard spheres using Monte Carlo method.
Computer simulation is often used as an accessory to, or substitution for, modeling systems
for which simple closed form analytic solutions are not possible. There are many different
types of computer simulation; the common feature they all share is the attempt to generate
a sample of representative scenarios for a model in which a complete enumeration of all
possible states of the model would be prohibitive or impossible. Computer models were
initially used as a supplement for other arguments, but their uses later became rather
widespread.
A computer simulation or a computer model is a computer program that attempts to
applicable copyright law.
84
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SYSTEM SIMULATION 85
chemistry and biology, psychology, and social science and in the process of engineering
new technology, to gain insight into the operation of those systems. Traditionally, the
formal modeling of systems has been via a mathematical model, which attempts to find
analytical solutions to problems which enable the prediction of the behavior of the system
from a set of parameters and initial conditions. Computer simulations build on, and are
a useful adjunct to purely mathematical models in science, technology and entertainment.
Another area where simulation makes considerable sense is in the economic analysis
of product lines. In particular, because product line development involves changes in
product composition and production, software size measures such as lines of code are not
good predictors of productivity improvements. To estimate, track and compare total costs
of different assets, adaptation of other cost modeling techniques, particularly activity-
based costing to asset-based software production is needed. As mentioned above, some
simulation tools incorporate activity-based costing such that, as entities flow through the
simulated process, the cost associated with the processing of each entity at each stage can
be accumulated. In this way detailed cost predictions can be made with respect to different
product line strategies.
The reliability and the trust people put in computer simulations depends on the
validity of the simulation model, therefore verification and validation are crucial part in
the development of computer simulations. A detailed discussion on verification and validation
of simulation experiments is given in chapter 6. Another important aspect of computer
simulations is that of reproducibility of the results, meaning that a simulation model
should not provide a different answer for each execution. Although this might seem
obvious, this is a special point of attention in stochastic simulations, where random
numbers should actually be semi-random numbers. An exception to reproducibility is
human in the loop simulations such as flight simulations and computer games.
Computer graphics can be used to display the results of a computer simulation.
Animations can be used to experience a simulation in real-time e.g., in training simulations.
In some cases animations may also be useful in faster than real-time or even slower than
real-time modes. For example, faster than real-time animations could be useful in visualizing
the build-up of queues in the simulation of human’s evacuating a building. Furthermore,
simulation results are often aggregated into static images using various ways of scientific
visualization. In debugging, simulating a program execution under test can detect far
more errors than the hardware itself can detect and, at the same time, log useful debugging
information such as instruction trace, memory alterations and instruction counts. This
technique can also detect buffer overflow and similar hard to detect errors as well as
produce performance information and tuning data.
Simulation can be applied in many critical areas and enables one to address issues
before these issues become problems. Simulation is more than just a technology, as it
forces one think in global terms, about system behavior, and about the fact that systems
are more than the sum of their components. Simulation can provide insights into the
designs of, for example, processes, architectures, or product lines before significant time
and cost has been invested, and can be of great benefit in support of training. Simulation
is being increasingly emphasized in the department of defense community, where there
applicable copyright law.
is documented evidence that its impact on costs, quality and schedule is non-trivial. The
software engineering community needs to take a stronger role in exploiting the technology.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
At an applied level, simulation can support project costing, planning, tracking, and
prediction. In a competitive world, accurate prediction provides a significant advantage. If
cost estimates are too high, bids are lost, if too low, organizations find themselves in the
red. In this context, simulation can provide not only estimates of cost, but also estimates
of cost uncertainty. Simulation is a powerful tool to aid activity-based costing, and can
incrementally accumulate costs to a very fine degree of resolution. In addition, it can
assess the uncertainty of costs based on the interacting uncertainties of independent
variables.
A simulation can only be executed if it is supplied with numerical drivers, and this
forces the developer to identify points in the model where these drivers are needed. For
example, the model may have to know what percentage of design documents pass review
and what percentage must be returned for further work. There are many approaches in
simulation. Some simulations are based on the need to visualize the airflow across a wing
section, while others, such as in combat or flight training, have a need for a virtual reality
component. However, the types of simulations we focus in this chapter to use symbolic
networks of linked elements that model processes or products. For example, we can
model entities flowing through an organization consisting of departments, or model information
flowing between a set of integrated software tools. Techniques such as discrete event
simulation and systems dynamics are often used here.
Simulation can allow managers to make more accurate predictions about both the
schedule and the accumulated costs associated with a project. This approach is inherently
more accurate than costing models based on fits to historical data, since it accounts for
the dynamics of the specific process. With regard to schedule, simulation can account for
dependencies between tasks, finite capacity resources, and delays resulting from probable
rework loops. Some simulation tools also allow one to compute the accumulation of costs
on an activity-dependent basis. These features are useful for generating proposal that is
more accurate in cost and schedule are thus more likely to keep a company in business.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SYSTEM SIMULATION 87
4. After a fixed time span ∆t, the fighter changes its direction in order to point
itself toward the bomber.
We are considering a rectangular coordinate system in which the two aircrafts are
flying. Distances in graph are given in kilometers and the time in minutes. We start
measuring the time when the fighter first sees the bomber.
80
60
Aircraft (pursuer)
North
40
20
Bomber at (80, 0) East
0
20 40 60 80 100
We represent the path of the bomber by two arrays XB(t) and YB(t) respectively.
Likewise, we shall represent the path of the fighter by two arrays XF(t) and YF(t) respectively.
Our aim is to compute the positions of the pursuer i.e., XF(t) and YF(t) for t = 1, 2, 3,
. . ., or until the fighter catches the bomber. Assuming that once the fighter is within 10
kilometers of the bomber, the fighter shoots down its target by firing a missile and the
pursuit is over.
In case if the target is not caught up within 10 minutes, the pursuit is abandoned
and the target is considered escaped. From the time t = 0 till the target is shot down, the
attack course is determined as follows:
The distance D(t) at a given time t between the target and the pursuer is given by
The angle θ of the line from the fighter to the target at a given time t is determined
by
YB(t) − YF (t)
sinθ = ...(3.2)
D(t)
XB(t) − XF (t)
cosθ =
D(t)
...(3.3)
Using this value of the position of the fighter at time (t + 1) is determined by
XF(t + 1) = XF (t) + VF cosθ ...(3.4)
applicable copyright law.
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
With these new coordinates of the pursuer, its distance from the target is again
calculated using equation (3.1). If this distance is 10 kilometers or less the pursuit is over,
otherwise θ is recomputed, and the process continues. The simple strategy of pursuer
redirecting him toward the target at fixed intervals of time, while the target goes on its
predetermined path without making any effort to evade the pursuer, is called pure pursuit.
Although in many situations, the strategy used by the pursuer is more sophisticated, this
basic approach can be used for any pursuit problems as long as we know the path the
pursuer takes and the rule by which the pursuer redirects him.
k = 0.25
k = 0.5 k = 0.20
B
4
k = 0.15
3
k = 0.10
A
2
0
applicable copyright law.
0 2 4 6 8 10
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SYSTEM SIMULATION 89
x2
log = 0.434 (t2 − t1 ) k ...(3.9)
x1
Sometimes the coefficient k is expressed in the form of T, as
1
k = ...(3.10)
T
The inverse relationship between k, the growth rate coefficient, and T, the time
constant, means that a large coefficient is associated with a small time constant and,
applicable copyright law.
therefore, a more rapid rate of increase. The solution for the exponential growth model
equation (3.7), takes the form
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
x = x0 et/T ...(3.11)
The constant T is said to be a time constant as it provides a measure of how rapidly
the variable x grows. If t = T than equation (3.11) becomes
x = ex 0 ...(3.12)
i.e., the variable is exactly e times its initial value x0
1.0
0.8
k = 0.05
0.6
k = 0.1
0.4
x
0.2 k = 0.20
k = 0.5
k = 1.0
0 2 4 6 8 10
Time
Equation (3.10) in the exponential growth model shows the relation between k and
applicable copyright law.
T. The characteristic of the model is that the level x is divided by a constant factor for
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929
Copyright © 2017. Laxmi Publications Pvt Ltd. All rights reserved. May not be reproduced in any form without permission from the publisher, except fair uses permitted under U.S. or
SYSTEM SIMULATION 91
a given interval of time. In the interval of T time units, the level is divided by e. As
e = 2.72, the level is reduced by a factor of 0.37. Each successive interval of T reduces
the level by the same factor. For example, radioactive material decays. There is nothing
significant about the value of e, but comparing values of T for different models measures
the relative times they will take to decay by a given fraction.
0.8 k = 0.1
k = 0.05
0.6
0.4
x/X
0.2
0.0 5 10 15 20 25
applicable copyright law.
Time t
EBSCO Publishing : eBook Collection (EBSCOhost) - printed on 8/12/2023 9:54 PM via UNIVERSIDAD NACIONAL DE COLOMBIA
AN: 2248541 ; Rajendra Kumar, Anil Kumar Kapil, Vikesh Kumar, Chandra Shekhar Yadav.; MODELING AND SIMULATION CONCEPTS
Account: s1229929