Deterministic Dynamic Programming
Deterministic Dynamic Programming
5
4 7 7
8
9
6 9 9 9
9
10
6 11
1 3 6 10
8
6
6 8 10
7 5
6
2 5 8
8
Hadi saragi
Sortest path method
Hadi saragi
Sortest path method by Knapsack Algorithm
5
4 7 7
8
9
6 9 9 9
9
10
6 11
1 3 6
8 10
6
6 8 10
7 5
6
2 5 8
8
8 10 10
ƒ1
9 10 9
Stage II f 2 ( s2 , xn t ) C2 xn t f1 ( s1 , xn t )
From To Cost
5 10 (8) 18
5 10(9) 15*
6 10(8) 18*
ƒ2
6 10(9) 19
7 10(8) 19
7 10(9) 16*
Hadi saragi
Stage III f 3 ( s3 , xn t ) C3 xn t f 2 ( s2 , xn t )
From To Cost
2 10 (5) 23
2 10(6) 24
2 10(7) 21*
3 10(5) 21*
Ƒ3 3 10(6) 29
3 10(7) 25
4 10(5) 24
4 10(6) 24
4 10(7) 21*
Hadi saragi
Stage IV f 4 ( s4 , xn t ) C4 xn t f 3 ( s3 , xn t )
From To Cost
1 10 (2) 28
Ƒ4 1 10(3) 27
1 10(4) 27
Hadi saragi
2. Reliability Problem
Hadi saragi
exp
There are four component in a production equipment.
A B C D
Assume we have budget $400 : find the optimal condition to maximize the reliability
Hadi saragi
Stage I f1 ( s1 , x4 ) Rx4
S4 R X4 X4
60 – 69 0.8 1
70 - 74 0.85 2
ƒ1
75- 79 0.88 3
80 - 145 0.90 4
Hadi saragi
Stage II f 2 ( s2 , x3 ) Rx3 ( f1 ( s1 , x4 ))
S3,4 X4 = 1 X4 = 2 X4 = 3 X4 = 4 F2 X3
(s2,x3)
135 – 139 0.7 x 0.8 - - - 0.56 1*
160 – 164 0.95 x 0.8 0.95 x 0.85 0.9 x 0.88 0.7 x 0.9 0.8075 4
165 – 169 0.95 x 0.8 0.95 x 0.85 0.95 x 0.88 0.8 x 0.9 0.836 4
170 – 174 0.95 x 0.8 0.95 x 0.85 0.95 x 0.88 0.9 x 0.9 0.836 4
175 – 220 0.95 x 0.8 0.95 x 0.85 0.95 x 0.88 0.95 x 0.9 0.855 4*
Hadi saragi
S3,4 X4 = 1 X4 = 2 X4 = 3 X4 = 4 F2 X3
(s2,x3)
135 – 139 0.7 x 0.8 - - - 0.56 1*
175 – 220 0.95 x 0.8 0.95 x 0.85 0.95 x 0.88 0.95 x 0.9 0.855 4*
Stage III f 3 ( s3 , x2 ) Rx2 ( f 2 ( s2 , x3 ))
S2,3,4 X3 = 1 X3 = 2 X3 = 3 X3 = 4 F3 (s3,x2) X2
Hadi saragi
Stage III f 3 ( s3 , x2 ) Rx2 ( f 2 ( s2 , x3 ))
S2,3,4 X3 = 1 X3 = 2 X3 = 3 X3 = 4 F3 (s3,x2) X2
S2,3,4 X2 = 1 X2 = 2 X2 = 3 X2 = 4 F4 (s4,x1) X1
Hadi saragi
3. Inventory Problem
Gyan Company forecast the demand for product during each of the next five months
will be
As follows :
Month 1. 3 Unit
Month 2 : 2 Unit
Month 3 : 2 Unit
Month 4 : 4 Unit
Month 5 : 5 Unit
During a month in which any units are produced, a setup cost of 5$ is incurred. The cost
of produce one unit is 2$ for each month. At the end of each month, a holding cost of
1 $ per unit On hand is incurred. Minimum and Maximum production capacity is 1 and
5 Unit each month. The size of the Company warehouse restricts the ending inventory
for each month to 4 units at most. The Company wants to determine a production
schedule that will meet all demands on time and Will minimize the sum of production
and holding costs during the five months. Assume that 0 unit Are on hand at the
beginning of the first month. Hadi saragi
1.1 2.1 3.1 4.1 5.1
Hadi saragi
Stage II f 2 ( s2 , in t ) C2 xn t f1 ( s1 , in t )
1 5 16 29*
Hadi saragi
Stage III f 3 ( s3 , in t ) C3 xn t f 2 ( s2 , in t )
2 4 16 29
3 5
ƒ3
Hadi saragi