Professional Documents
Culture Documents
Lecture Note - 7 - CE605A&CHE705B
Lecture Note - 7 - CE605A&CHE705B
Introduction:
The term 'dynamic programming' refers to a general optimization technique useful for
solving a class of multistage problems
Applications of DP
Production
Inventory control
Allocation of Resources
Equipment replacement polices
Selection of advertising media.
Solution: Let fn(d) denote the minimum attainable sum Y1+y2-----+Yn when the
quantity d is factorized into n factors.
For n=2, d is factorized into two factors Y1, Y2 , if Y1 =z and Y2 =d/z, then
Min d
z }
0 z d z
Min d
z f1 ( )}
0 z d z
For n=3, d is factorized into three factors Y1, Y2 ,y3, if Y1 =z and Y2 y3=d/z, then
Min d
z f 2 ( )}
0 z d z
f1(d)=d,
Min d
f2(d) z } , By calculus method
0 z d z
DJ
Dynamic Programming
d
= d 2 d
d
Min d
F3(d) z f 2 ( )}
0 z d z
Min d
z 2 }
0 z d z
1 d 1
d 3
2 3d 3
. By Mathematical induction, assume for n=m,
d1 3
1
f m (d ) md m
.Now the result can be proved for n=m+1 as follows,
Min d
Fm+1(d) z f m ( )} , By calculus method
0 z d z
Min d
z 2m }
0 z d z
1 1 1 1
(m 1)d 1 ( m 1)
. Hence the optimal policy will be d n
d n
.… d n
with f n (d ) nd n
2
Example-3: Solve the following D.P.P Minimize z y 21 y22 y3 CS-511/2003
subject to y1 y2 y3 15
y1 , y 2 , y 3 0
Solution: Decision Variables Y1 ,Y2 , Y3 and stage Variables S1, S2 and S3 are
defined as:
S3 = Y1 + Y2 + Y3 15
S2=Y1 + Y2 = S3 – Y3
S1=Y1 = S2-Y2
and
Min 2
F3 ( S 3 ) y 3 F2 ( S 2 )
y3
Min 2
F2 ( S 2 ) y 2 F1 ( S1 )
y2
DJ
Dynamic Programming
Min 2
F1 ( S 2 ) y 1 = (S2-Y1)2
y1
Min 2
Thus, F2 ( S 2 ) y 2 (S 2 y2 ) 2
y2
Min 2
Now, F3 ( S 3 ) y 3 F2 ( S 2 )
y3
Min 2 (S 3 y3 ) 2
y 3
y3 2
S3 S 23
Or, y3= . Hence F3(s3)= since S3≥15. Therefore F3(s3) is minimum for S3=15.
3 3
2
The minimum value of z y 21 y22 y 3 becomes 75, Where Y1 = Y2 = Y3=5.
Exercises
1. What is Dynamic Programming? In what areas of management can it be applied
successfully?
DJ