Академический Документы
Профессиональный Документы
Культура Документы
Simulation Model
Audio 157
All is probabilistic, in order to do the probabilistic ,
we should follow the simulation model.
To simulate something on the computer before you
do it in real life, in order to reduce the failure from
the investment.
Example: you want to invest , and to build a big
resort in sharm El Sheikh, and you discovered that
it is not working
The word "Discovered" is not applicable , whether it
will be possible or don't do it.
That is why they do simulation on the computer with
the financial formula, in order to make sure about :
No of people & the % of The resort will be
complete , in order to say that the project is viable
for application .
They simulate what is in the real life in a formula.
PS.: The mathematical formula we are using during
the term , will be used in order to simulate
something which is not clear and probabilistic, to
get something depending on this .
Example : Profit depending on cost,
Time depending on distance
Gravity depending on sending rocket
to the moon
Simulation is an interesting technique, but
expensive, to do all the lab investigation, each
company is different .
1 Prof. Maged Morcos
Quantitative Analysis Lec 9 04/08/2014
Description
"Simulation is the process of studying the
behavior of a real system by using a model
that replicates the behavior of the system.."
more than once
Example:
P rofit=RevenueCost
Problem Description
Interval
Demand Freq. Cum of
Prob..
for Tiers (days) Prob. Random
No.
200 1.00
6 Prof. Maged Morcos
Quantitative Analysis Lec 9 04/08/2014
Problem Explanation
Notes:
To know how the probability consist of :
in this problem there is only one variable of the demand
.
he found that from the 200 days ,there are 10 days
nobody asks to buy any tires
Not the first 10 days, different or random 10 days
during the period
other 20 days people asked for 1 tires
40 days they asked for 2 , 60 days asked for 3 ,........
the total is 200
to calculate the probability
Probability of Zero = 10 200 = 0.05
Interval
Demand Freq. Cum of
Prob..
for Tiers (days) Prob. Random
No.
0 10 0.05
1 20
2 40
3 60
4 40
5 30
200 1.00
Interval
Demand Freq. Cum of
Prob..
for Tiers (days) Prob. Random
No.
0 10 0.05
1 20 0.20
2 40
3 60
4 40
5 30
200 1.00
0 10 0.05
1 20 0.10
2 40 0.05
3 60
4 40
5 30
200 1.00
0 10 0.05
1 20 0.10
2 40 0.20
3 60 0.30
4 40 0.20
5 30 0.15
200 1.00
0.35
0.3
0.25
0.2
Day
0.15 Probabilities
0.1
0.05
0
10 20 40 60 40 30
proba
bility 1.0
Interval of
Demand Freq. Cum
Prob.. Random
for Tiers (days) Prob.
No.
0 10 0.05 0.05
0.10 0.15
+
1 20
2 40 0.20
3 60 0.30
4 40 0.20
Interval of
Demand Freq. Cum
Prob.. Random
for Tiers (days) Prob.
No.
0 10 0.05 0.05
1 20 0.10 + 0.15
=
2 40 0.20 0.35
3 60 0.30
4 40 0.20
Interval of Random No
It is different from a number to the other
To get the continuous :
In order to get the continuous ( Roulette )
I will imagine that there is a probability PIE
SHART with sections , in order to make a
roulette.
which starts from 0 , to 99 , to close 100
units.
Interval
Demand Freq. Cum of
Prob..
for Tiers (days) Prob. Random
No.
2 40 0.20 0.35
3 60 0.30 0.65
4 40 0.20 0.85
5 30 0.15 1.00
200 1.00
Interval
Demand Freq. Cum of
Prob..
for Tiers (days) Prob. Random
No.
3 60 0.30
4 40 0.20
5 30 0.15
200 1.00
4 40 0.20
17 Prof. Maged Morcos
Quantitative Analysis Lec 9 04/08/2014
5 30 0.15
200 1.00
200 1.00
P=RC
Problem Explaination
on Cost (S) Probabilit e Number
y Probabilit s
y
3 0.75 0.75 00-74
5 0.25 1.00 75-99
1.00
In the exam this problem will be in English wording
The student should understand what will in the right and the
left hand side.
Everything will be on the right hand side
the right hand side will be probabilistic, meaning that each one
will have its probability curve (A.2) given .
Will give you 7 number for simulation . to do in the exam
Will give also the random numbers.
Quantitative Analysis Lec 9 04/08/2014
Total Cost = 10 + 25 + 3 = 38
Profit = 45 - 38 = 7
The formula for this Lecture is :
P = R (P. C. + A. C. + T. C.)
Quantitative Analysis Lec 9 04/08/2014
P 1 = 45 ( 11 + 24 + 5 ) =5
P 2 = 45 ( 10 + 25 + 3 ) =7
Example :
Distance
Time=
V ilocity
1 52 11 37 24 82 5 39 45 5
2 6 10 63 24 57 3 37 45 8
3 50 11 28 22 68 3 36 45 9
4 88 12 2 20 28 3 35 45 10
5 53 11 74 25 5 3 39 45 6
6 30 10 35 24 94 5 39 45 5
7 10 10 24 22 3 3 35 45 10
8 47 11 3 20 29 3 34 45 11
9 99 12 29 22 60 3 37 45 8
10 37 11 60 24 79 5 40 45 5
11 69 11 98 25 96 5 41 45 4
12 2 10 94 25 52 3 38 45 7
13 36 11 90 25 62 3 39 45 6
14 49 11- 36 24 87 5 40 45 5
15 71 12 6 20 49 3 35 45 10
16 99 12 78 25 56 3 40 45 5
17 32 11 23 22 59 3 36 45 9
18 10 10 67 24 23 3 37 45 8
19 75 12 89 25 78 5 42 45 3
20 21 10 85 25 71 3 38 45 7
$ 14
Average = 143/20 = 7.1
Quantitative Analysis Lec 9 04/08/2014
we will check how many 5 appeared, how many 10 appeared , how many 6
appeared
divide them / 20 = to get the probability that value (like the demand)
in the exam you are going to prepare the previous schedule of only 6 or 7 rows.
6 rows & 6 columns ( according the equation)
the random number is given , you will get the value.
In the exam the formula could be Like Lecture 8:
The Total cost Formula of Lecture 8 :)
TC=C w X L+C s X k
Cost of Waiting
Cost of Service
No of Channels
Length of the queue
You will get Random No of: Cw, L & Cs
If I put no of random numbers 20, I will get a value of 7.15m.
at 2,000,000 I will get 5.15 instead of 7.15
and the deviation will be minimal
If we do simulation, the counter will stop at a certain point ,
and say that there is no significant improvement.
you will build your work at 7.15 , but in real life you will get only 5.15