Professional Documents
Culture Documents
Lecture 01 - Introduction
Lecture 01 - Introduction
Chapter 1
System concepts
System modeling
Mathematical models: their nature and
la
assumptions
ep
Calibration and validation
itn
1
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
1
System Concepts
System
-Assembly of objects joined in some regular interaction or
interdependence.
-A system exists and operates in time and space.
-bounded inside system boundary
Subsystems
Input Output
al
ep
System
itn
Environment 2
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
2
System Concepts - terms
State
A variable characterizing an attribute in the system such
as no. of jobs waiting for processing.
Activity/event
An occurrence at a point in time which may change the
state of the system
- Endogenous – activities occurring within the system
- Exogenous – activities occurring in the environment that
affect the system
Entity
An object that passes through the system
a l
e.g. cars
ep
Entity is associated with an event
itn
3
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
3
System Concepts - terms
Queue
- physical queue of entity/task
- any place where entities are waiting for something to
happen for any reason
Creating
Causing an arrival of a new entity to the system at some
point in time
Scheduling
The act of assigning a new future event to an existing
entity
Random variable
a l
A random variable is a quantity that is uncertain, such as
ep
inter-arrival time between two incoming flights or
itn
4
number of defective(C) Pramod
parts in a shipment
Parajuli, 2004
cs
Source: www.csitnepal.com
4
System Concepts - terms
Random variate
A random variate is an artificially generated random
variable.
Distribution
A distribution is the mathematical law which governs the
probabilistic features of a random variable.
a l
ep
itn
5
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
5
System Concepts
System environment
The changes occurring outside the system that affect the
system is system environment
Defining a system boundary is an important step
- if small system boundary, may not include necessary
components
- if larger boundary, high degree of error propagation,
management difficulties etc.
a l
ep
Open system – affected by the exogenous events
itn
6
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
6
System - A Simple Example
a l
ep
distributions: we shall assume exponential distributions for
both the inter-arrival time and service time.
itn
7
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
7
System - A Simple Example
a l
example, the creation of the first arrival.
ep
itn
8
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
8
System - A Simple Example
a l
ep
itn
9
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
9
Stochastic activities
a l
ep
itn
10
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
10
Stochastic activities - classification
Continuous Discrete
Number of
Level of water
Continuous customers in the
behind dam
bank
Time
Weekdays’ range Sales at the end of
Discrete
of temperature the day
a l
ep
itn
11
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
11
Types of Systems
a l
ep
itn
12
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
12
System Study
System
Experiment Experiment
with the actual with a model of
system the system
Mathematical
Physical Model
Model
Analytical
a l
Simulation
Solution
ep
itn
13
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
13
Types of Systems
l
terms of logical and quantitative relationships that are
a
ep
manipulated and changed to see how the model reacts.
itn
14
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
14
Types of Systems
a l
ep
itn
15
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
15
Types of Systems
a l
ep
itn
16
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
16
Simulation
a l
ep
itn
17
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
17
Simulation - Advantages
a l
• Statistical design & analysis capabilities
ep
itn
18
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
18
Simulation - Problems
a l
ep
itn
19
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
19
Kinds of Simulation
a l
ep
Dynamic, Discrete-change, Stochastic
itn
20
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
20
Using Computers to Simulate
Simulation languages
- GPSS, SIMSCRIPT, SLAM, SIMAN
- Popular, still in use
- Learning curve for features, effective use, syntax
High-level simulators
- Very easy, graphical interface
- Domain-restricted (manufacturing, communications)
- Limited flexibility — model validity?
a l
ep
itn
21
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
21
System Analysis
- Descriptive Analysis
- Prescriptive Analysis
- Post-prescriptive Analysis
a l
ep
itn
22
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
22
System Analysis
Controllable Output
System
Input
Uncontrollable
Input
Identify constraints on the decision variables. Define
measure of system performance and an objective
la
function. Develop a preliminary model structure to
ep
interrelate the inputs and the measure of
itn
performance. 23
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
23
System Analysis
a l
ep
itn
24
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
24
System Analysis
a l
ep
(program) corresponds to the model. Validation checks
that the model corresponds to reality.
itn
25
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
25
System Analysis
Validation
The process of comparing the model's output with the
behavior of the phenomenon. In other words:
comparing model execution to reality (physical or
otherwise)
Verification
The process of comparing the computer code with the
model to ensure that the code is a correct
implementation of the model.
a l
ep
itn
26
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
26
System Analysis
a l
ep
itn
27
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
27
System Analysis
a l
validation process and then combined to determine
ep
category scores and an overall score for the
simulation model. (infrequently used)
itn
28
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
28
Validation techniques
Animation
The model’s operational behavior is displayed graphically
as the model moves through time.
Comparison to Other Models
Various results of the simulation model being validated
are compared to results of other (valid) models.
Degenerate Tests
The degeneracy of the model’s behavior is tested by
appropriate selection of values of the input and
internal parameters.
Event Validity
a l
The “events” of occurrences of the simulation model are
ep
compared to those of the real system to determine if
itn
29
they are similar. (C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
29
Validation techniques
l
should allow the checking of model results against
a
ep
easily calculated values.
itn
30
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
30
Validation techniques
l
People who are knowledgeable about the operations of a
a
ep
system are asked if they can discriminate between
system and model outputs
itn
31
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
31
Validation techniques
Multistage Validation
consists of
(1) developing the model’s assumptions on theory,
observations, general knowledge, and function,
(2) validating the model’s assumptions where possible by
empirically testing them,
(3) and comparing (testing) the input-output relationships
of the model to the real system.
a l
ep
itn
32
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
32
Validation and verification - 4 musts
Data Validity
Data are needed for three purposes: for building the
conceptual model, for validating the model, and for
performing experiments with the validated model. In
model validation we are concerned only with the first
two types of data.
Conceptual model validity
Conceptual model validity is determining that
(1)the theories and assumptions underlying the
conceptual model are correct, and
(2) the model representation of the problem entity and
the model’s structure, logic, and mathematical and
a l
causal relationships are “reasonable” for the intended
ep
purpose of the model
itn
33
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
33
Validation and verification - 4 musts
Model verification
Computerized model verification ensures that the
computer programming and implementation of the
conceptual model are correct.
Operational validity
Operational validity is concerned with determining that the
model’s output behavior has the accuracy required for
the model’s intended purpose over the domain of its
intended applicability. This is where most of the
validation testing and evaluation takes place.
a l
ep
Documentation - required and very important.
itn
34
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
34
System Analysis
Calibration
It is an iterative process of comparing the model to the
real system, making adjustments or major changes to
the model, comparing the revised model to reality,
making additional adjustments, comparing again and
so on.
Checks that the data generated by the simulation matches
real (observed) data.
The process of parameter estimation for a model.
Calibration is a tweaking/tuning of existing parameters
and usually does not involve the introduction of new
ones, changing the model structure. In the context of
a l
optimization, calibration is an optimization procedure
ep
involved in system identification or during
experimental design.
itn
35
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
35
System Analysis
Revise
Real Compare revised First revision of
system model to reality model
Revise
Second revision of
Compare second
model
revision to reality
al
Revise
ep
itn
36
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
36
System Analysis
a l
data, including external, policy, random and
ep
deterministic variables. System simulation experiment
itn
is to learn about its behavior. 37
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
37
System Analysis
6. Performance Evaluation.
a l
ep
itn
38
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
38
System Analysis
Prescriptive Analysis
Optimization or Goal Seeking
Traditional optimization techniques require gradient
estimation. As with sensitivity analysis, the current
approach for optimization requires intensive
simulation to construct an approximate surface
response function.
a l
ep
itn
39
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
39
System Analysis
Post-prescriptive Analysis
1. Sensitivity: Users must be provided with affordable
techniques for sensitivity analysis if they are to
understand which relationships are meaningful in
complicated models.
Report Generating
Report generation is a critical link in the communication
a l
process between the model and the end user.
ep
itn
40
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
40
System Modeling
a l
Abstraction also applies
ep
itn
41
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
41
System Modeling
l
a
A good model is a judicious tradeoff between realism
ep
and simplicity.
itn
42
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
42
System Modeling
a l
ep
itn
43
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
43
System Modeling
a l
Typically, simulation models are stochastic and dynamic.
ep
itn
44
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
44
More on simulation
a l
enabling one to perceive the interactions that would not
ep
otherwise be apparent because of their separation in
itn
45
time or space. (C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
45
More on simulation
a l
ep
itn
46
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
46
Simulation - study
a l
ep
itn
47
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
47
Simulation Model
a l
ep
itn
48
(C) Pramod Parajuli, 2004
cs
Source: www.csitnepal.com
48