Lecturer1 - Bbit 308 Simulation and Modelling
Lecturer1 - Bbit 308 Simulation and Modelling
Lecturer1 - Bbit 308 Simulation and Modelling
By
Edwin Omol
CHAPTER ONE
CONTENT:
• Types of Simulation
• Variables in Simulation and Modelling
• Construction of a Simulated Model
• Monte Carlo Simulation
• Random numbers Selection
• Simple Queuing Simulation: Single server, single
channel "first come first served“ (FCFS) model
• Application of simulation models
SIMULATION
• Simulation can be defined as a technique that
imitates the operation as it evolves over time.
• It is basically a technique of conducting
experiments on a model of a system.
• Simulation model usually takes the form of a set
of assumptions about the operation of the
system, expressed as mathematical or logical
relations between the objects of interest in the
system.
HOW TO STUDY SYSTEMS:
• In order to study a system once it is defined,
two alternatives are available:-
i) To study the actual system itself and the other
ii) To construct the model of the system and
study the model
• Generally the study of the actual system has the
disadvantages of being time consuming, expensive and
/ or outright impossible (e.g. in a saw mill operation, it
would be extremely time consuming and costly to try
every possibility of cutting logs to maximize profit
Likewise it would be impossible to study a proposed
system without constructing some form of model.
• Consequently models most existing or proposed
systems are constructed and the models are analysed
how the actual system will react to change. However,
many realistic systems can't be modeled for solution
by the standard operation research methods.
Therefore some form of simulation must be used to
provide the solution.
EXAMPLES OF PROBLEMS
• Simulation is a general method which can-be
used to solve problems in many areas of
management such as
i) Inventory management
ii) Queuing problems
iii) Capital budgeting
iv) Project management
v) Profit planning (CVP analysis etc.)
DEFINITION OF TERMS IN SIMULATION
a) A System - a system can be defined as a collection of entities that act &
interact towards the accomplishment of some logical end. .
b) State of a system- This is the collection of the variables necessary' to
describe the status of the system at any given time. Systems are usually
classified as either discrete or continuous.
c) A discrete system is one which the state variable change only as discrete
or countable points in time
d) A continuous system- is one in which the state variables change
continuously over time
e) Dynamic simulation-Representation a system as it evolves-overtime.
f) Static simulation model- Representation of a system at a particular point
in time
g) Model –a model is a representation of the system and it usually takes
the form of a set of assumption about the operation of the system
TYPES OF SIMULATION MODEL
Static simulation model: This is a representation of
a system at a particular point in time.
Dynamic simulation model: This is a
representation of a system as it evolves over time.
Deterministic simulation model: This is a model
that contains No random variables.
Stochastic simulation model: This model contains
one or more random variables.
Discrete Vs Continuous Simulation Models
WHEN SIMULATION IS USED
i) When the assumptions made are unrealistic or
unattainable.
ii) When the system takes too long to observe e.g.
demographic / population issues(time compression
advantage)
iii) When, the cost and the danger of experimenting
with the real world situations is very high.
iv) Where there are difficulties in making
observations e.g. space research and practice.
Molecular research.
VARIABLES IN A SIMULATION MODEL
A business model usually consists of linked series of
equations and formulae arranged so that they
'behave' in a similar manner to the real system
being investigated. The formulae and equations use
a number of factors or variables which can be
classified into 4 groups.
(a) Input or exogenous variables
(b) Parameters
(c) Status variables
(d) Output or endogenous variables
INPUT VARIABLES
• These variables are of two types - controlled and
non-controlled.
• Controlled variables: These are the variables that
can be controlled by management. Changing the
input values of the controlled values and noting
the change in the output results is the prime
activity of simulation. For example, typical
controlled variables in an inventory simulation
might be the re-order level and re-order quantity.
These could be altered and the effect on the
system outputs noted.
• Non-controlled variables: These are Input
variables which are not under management
control. Typically these are probabilistic or
stochastic variables i.e., they vary but in some
uncontrollable probabilistic fashion.
• For example, in a production simulation the
number of breakdowns would be deemed to vary
in accordance with a probability distribution
derived from records of past breakdown
frequencies.' In an inventory simulation demand
and lead time would also be generally classified
as non- controlled, probabilistic variables
PARAMETERS
• These are also input variables which, for a given
simulation have a constant value. Parameters are
factors which help to specify the relationships
between other types of variables. For example in a
production simulation a parameter (or constant)
might be the time taken for routine maintenance,
in an inventory simulation a parameter might be
the cost of a stock-out.
STATUS VARIABLES
• In some types of simulation the behavior of the system (rates,
usages, speeds, demand and so on) varies not only according to
individual characteristics but also according to the general state
of the system at various times or seasons. As an example; in a
simulation of supermarket demand and checkout queuing,
demand will be probabilistic and variable on any given day but
the general level of demand will be greatly influenced by the
day of the week and the season of the year. Status variables
would be required to specify the day(s) and season(s) to be
used in a simulation.
• Note: On occasions status variables and parameters would both
be termed just parameters although strictly speaking there is a
difference between the two concepts.
OUTPUT VARIABLES
• These are the results of the simulation. They arise
from the calculations and tests performed in the
model the input values of the controlled values.
The values derived for me probabilistic elements
and the specified parameters and status values.
The output variables must be carefully chosen to
reflect the factors which are critical to the really
system being simulated and they related to the
objectives of the really system.
Examples of Output Vaiables
•Cost of stock holding
•Number of stock outs
•Number of unsatisfied orders
•Number of replenishment orders
•Cost of the re-ordering and so on
CONSTRUCTING A SIMULATION MODEL