Chapter 1 Computer Simulation Approach
Chapter 1 Computer Simulation Approach
By Dereje Shiferaw
Contents
• Models experiments and computers
• System, system entity and system state
• Models and model classification
• Simulation as experimentation
• Why simulation?
• When is simulation an appropriate tool
• Field of applications
• Key phases in computer simulation
• Discrete and continuous simulations
• Computing: data driven software and Bespoke program
• Experimentation: Interactive experiment and classical
experiment
Introduction
Ways To Study A System
Introduction contd…
• Simulation
Definition: is a numerical technique for conducting experiments on a
digital computer, which involves certain types of mathematical and logical
models over extended period of real time.
• System simulation
Definition: The technique of solving problems by the observation of the
performance ,over time, of the dynamic model of the system. It is an
experiment of physical scenario on computer.
• Consider a situation where an expert has to decide how many and what
type of network or support resources to have available
– Model the system and study its performance before actually setting
the system
– Analyze system
– Make operation or resource policy decisions
Models, experiments and computers
• Model
– Meaning
• representation of construction and working of system, it is similar
to but simpler than the system it represents
– Purpose
• to enable the analyst to predict the effect of changes to the system
– Good model
• close approximation to the real system
• incorporate most of its salient features
• Not so complex
• judicious tradeoff between realism and simplicity
• Experiment
– Running a given model of a system.
– time taken for the actual system and the model may not be the same
• Computer
– All models are either mathematical or software and will be executed
on a computer. Hence the computer is the means for conducting
experiments on the model
System, system entity and system state
• System
– A system is defined as a collection of interacting components that
receives input and provides output for some purpose
• System entity
– Is something (customer, objects etc) that changes the state of a system
– It is one basic component of a simulation model
• System state
– is a set of data that captures the salient variables of the system
– allows us to describe system evolution over time
– is stored in one or more program variables that represent various data
structures (e.g., the number of customers in a queue, or their exact
sequence in the queue).
– State definition depends on the modeling needs, particularly statistics
to be collected
Models and model classification
• A model intended for simulation study can be
– A physical model – simplified or scaled down physical object
• Example: Scaled model of an airplane
– Mathematical or analytical model – a set of equations or relations
among mathematical variables. The mathematical model can be
deterministic or stochastic, static or dynamic
• Example: Mathematical model of a factory workflow
– Computer model – a program description of the system . A computer
model with random elements and an underlying time element is
known as Monte Carlo simulation model
• Example : The operation of a manufacturing unit over a period of
time
Simulation as experimentation
A simulation of a system is
• the operation of a model of the system.
• tool to evaluate the performance of a system, existing or
proposed, under different configurations of interest and over
long periods of real time.
• The model can be reconfigured and experimented with
– Used to test condition which is impossible, too expensive or
impractical to do in the system it represents.
• Example: desert battle simulation
- one force invading another,
- 10 years ago
- simulation involved the modeling of 66,239 tanks, trucks
and other vehicles on simulated terrain around Kuwait, using
multiple supercomputers in the DoD High Performance
Computer Modernization Program
• Simulation experiment is a test or series of tests in which
meaningful changes are made to the input variables
• From simulation experiment
– The operation of the model can be studied,
– Properties concerning the behavior of the actual system or its
subsystem can be inferred.
• Examples:
- 1-billion-atom model of material deformation
- a 2.64-million-atom model of the complex maker of
protein in all organisms, a ribosome
- the Blue Brain project at EPFL (Switzerland) 2005
Technical Attractions of Simulation
• Ability to compress time, expand time
– Simulation time: representation of physical time
– Physical Time: time in physical system
• Ability to control sources of variation
• Avoids errors in measurement
• Ability to stop and review
• Ability to restore system state
• Facilitates replication
• Modeler can control level of detail
Why is simulation?
•Answer questions like:
1. Model development
2. Experiment design
3. Output analysis
4. Conclusion formulation
5. Making decision to alter system under study
1. Simulation Model development