Académique Documents
Professionnel Documents
Culture Documents
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
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
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
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 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
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 : period of The operation of a manufacturing unit over a 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 - 66,239 tanks, trucks and other vehicles - Kuwait, - multiple supercomputers
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
Why is simulation?
Answer questions like: What is the best design for a new telecommunications network?
Gaining insight into the system operation Developing operation or resource policy to improve system performance
Deciding the type and size of network and resource to be used
Field of applications
Production system, inventory systems, Manufacturing process. Material handling and logistics Estimate a set of productivity measures Computer systems and communication networks Design and planning of capacity so as to minimize response time Military Business process reengineering activities Health care operations, financial and banking operation, transportation and air ports Improving performance
For the above system Server and queue are system entities Arrival rate and service rate are input variables Mean wait time and maximum queue length are performance measures Time in system is functional relationship
Steps cont
Formulate and develop a model Develop schematic and network diagrams, translate to programs Validate and verify the model Verify check if model is correct to specifications Validate- check if model output agree with real system Document model for future use
2. Experiment design
A simulation model is a test or series of tests in which meaningful changes are made to the inputs so that we may observe and identify the reasons for changes in performance measures What data need to be obtained, in what form and how much Steps
A) select appropriate experimental design
Select performance measure, key inputs and their range
C) perform simulation runs Example: Simulation study of DDoS attack detection algorithm - model traffic and network - design experiment
3. Output analysis
Interpret and present results Identify best design among competing alternatives This can be using statistical inference Recommend further course of actions Use the results and analysis to write recommendations A formal written report
Continuous simulation
Simulation where the system state is continuous over time Is used to model fluid flows, aircraft dynamics etc Based on mathematical model of system Model is digitized and simulated using program
Bespoke program
Custom or tailor made programs used for specific application Easy to use, has fewer errors, increase productivity and unique out of competitors