Dr. Muhammad Shafiq Department of Industrial Engineering University of Engineering and Technology
Dr. Muhammad Shafiq Department of Industrial Engineering University of Engineering and Technology
Muhammad Shafiq
Department of Industrial Engineering
University of Engineering and Technology
A specific type of mathematical programming in which optimal
solution of the original complex problems is found by solving a chain
of sub-problems
The optimal solution of one sub-problem is used as input to the next
sub-problem
When last sub-problem is solved, the optimal solution of entire
problem is achieved
Linkage between the stages is performed through recursive
computations
Forward or backward recursive equation will be developed
depending on problem nature
Shortage path problem
12 7
2 5 7
4 15 3
1 6
7 10
1 4 8 9
3 3 7
2
3 15
6
4
Backward recursive
fi tij f j i 9; j
f8 t89 f9 10 0 10
f7 t79 f9 3 0 3
t68 f8 7 10
f 6 min min 15
t69 f9 15 0
f5 t57 f7 7 3 10
t45 f5 4 10
t46 f6 3 15
f 4 min min 14
t47 f7 15 3
t48 f8 7 10
t34 f 4 3 14
f3 min min 17
t36 f 6 4 15
t24 f 4 6 14
f 2 min min 20
t25 f5 12 14
t12 f 2 1 20
f1 min min 19
t13 f3 2 17
7
2 5 7
4 3
6
4 8 10
1 9
3
2
3 15
6
Forward Recursive
f j tij fi j 1; i
Hence, f j min
i
tij fi j 1
f j min tij fi j 1
i
f1 0
f 2 t12 f1 1 0 1
f3 t13 f1 2 0 2
t24 f 2 6 1
f 4 min min 5
t34 f3 3 2
t25 f 2 12 1
f5 min min 9
t45 f 4 4 5
t36 f3 4 2
f 6 min min 6
t46 f 4 3 5
t47 f 4 15 5
f 7 min min 16
t57 f5 7 9
t48 f 4 7 5
f8 min min 12
t68 f 6 7 6
t79 f7 3 16
f9 min min 19
t89 f8 10 12
Principle of Optimality (Bellman)
An optimal policy has the property that whatever the initial state and initial decision are, the
remaining decisions must constitute an optimal policy with regard to the state resulting from the first
decision.
xn
sn sn 1
rn (sn , xn )
Transformation function
sn 1 tn (sn , xn )
Maximization problem (backward recursive technique)
If we denote fn (sn ) as maximum total revenue obtained when system moves from stage n to stage N
(the last stage), given the observed state at stage n is sn
Similarly when forward recursive technique is employed, if we denote fn (sn ) as the maximum total
revenue obtained when system moves from stage 1 to stage n
D(sn 1 ) is the set of all possible decisions to transfer from state sn at stage n to state sn 1 at stage n+1
Shortage path from node 1 to node 10
2 7 5 1
4 8
6 4
2 3
3 6
4 2
1 3 4 6 3 10
4 9 4
3 1 3
3
4 5
7
Stage 1 Stage 2 Stage 4 Stage 5
Stage 3
Backward recursive
Stage 4
s4 x4 r4 ( s4 , x4 ) f5 (t4 ( s4 , x4 )) f 4 ( s4 ) x4*
10
Node 8 3 3 10
Node 9 4 4 10
When the state is node 8:
f 4 (s4 ) f 4 (8) 3
f 4 (s4 ) f 4 (9) 4
Stage 3
8 9
x2
s2 r2 (s2 , x2 ) f3 (t2 (s2 , x2 )) f 2 ( s2 ) x2*
5 6 7
x1
s1 r1 (s1 , x1 ) f 2 (t1 (s1 , x1 )) f1 ( s1 ) x1*
2 3 4