Bellman's
Bellman's
Curriculum Development
of Master’s Degree Program in
Industrial Engineering for Thailand Sustainable Smart Industry
Session 1.5:
Dynamic Programming
Curriculum Development
of Master’s Degree Program in
Industrial Engineering for Thailand Sustainable Smart Industry
Introduction
1 4 15 3
6
7 10
1 4 8 9
3 3 7
2 15
3 6
4
Define:
: minimum total travel time from node i to node 9.
: travel time through the directed arc .
Introduction
+
Hence:
However, the shortage path from node i to node 9 should include some intermediate node j (if these
intermediate nodes exist). Then,
The above equation is the recursive equation (or functional equation) of the shortage path problem
in the backward form.
Introduction
4
Introduction
7
2 5 7
4 3
6
10
1 4 8 9
3
2 15
3 6
Introduction
The above problem can also be solved by use of forward recursive equation as presented below
Define:
: minimum total travel time from node 1 to node j.
: travel time through the directed arc .
+
Hence:
However, the shortage path from node 1 to node j should include some intermediate node i (if these
intermediate nodes exist). Then,
Introduction
Note:
An optimal policy has the property that whatever the initial state and the
initial decision are, the remaining decisions must constitute an optimal
policy with regard to the state resulting from the first decision
sn sn+1
state state
rn sn , xn
Introduction
Bellman’s Principle of Optimality
f n sn max rn sn , xn f n 1 tn sn , xn
xn Dsn
f n1 sn1 max rn sn , xn f n sn
xn Dsn 1
In stage 4, the state can be node 8 or node 9, and the only decision
(i.e., ) that can be taken is go to node 10.
Introduction
Bellman’s Principle of Optimality
Due to the fact that there exists only one possible decision, that
decision is the optimal decision.
rsxf3333*((ss33,)x3 ) f 4 (t3 ( s3 , x3 ))
Introduction
Bellman’s Principle of Optimality
Stage 3:
x3 r3 ( s3 , x3 ) f 4 (t3 ( s3 , x3 )) f3 ( s3 ) x3*
s3 8 9
Node 5 1+3=4 4+4=8 4 8
Node 6 6+3=9 3+4=7 7 9
Node 7 3+3=6 3+4=7 6 8
Stage 2:
Stage 1:
x1 r1 ( s1 , x1 ) f 2 (t1 ( s1 , x1 )) f1 ( s1 ) x1*
s1 2 3 4
Node 1 2 + 11 = 13 4 + 7 = 11 3 + 8 = 11 11 3 or 4
The optimal solution has been found. There exist three shortage
paths from node 1 to node 10:
Example 3:
No. of Additional person-years life
Five medical teams will be Teams (in 1000 units)
dispatched to 3 regions to help
Region 1 Region 2 Region 3
improve medical care. The
performance is measured by the 0 0 0 0
expected additional person-years of 1 45 20 50
2 70 45 70
life. The estimated performance 3 90 75 80
measures are given in the table: 4 105 110 100
5 120 150 130
Introduction
Bellman’s Principle of Optimality
Denote:
: number of teams to be allocated to region n (n = 1, 2, 3).
: number of teams available for allocation to the regions
n, n +1,…, 3.
: the measure of performance from allocation teams to region n.
: Total maximum performance obtained when teams are
allocated to regions n, n +1,…, 3.
Introduction
Bellman’s Principle of Optimality
s.t.
and integer
s.t.
and integer
Introduction
Bellman’s Principle of Optimality
f n sn max
0xn sn
pn xn f n1 sn xn
xn integer
Max
s.t.
In which:
: profit obtained by producing units of product j.
: units of the resource consumed for producing units of product j.
: the set of possible production levels for product j.
The above problem can be solved by dynamic programming
Introduction
Bellman’s Principle of Optimality
Define:
• : state - y units of resource are allocated to produce products
from n through N.
• : maximum total profit obtained from products n through N,
when y units of resource are allocated to them.
• : the optimal value to be determined.
Introduction
Bellman’s Principle of Optimality
Notes:
1. can be expressed as:
Max
s.t.
2. Boundary conditions:
Max
s.t.
Introduction
Bellman’s Principle of Optimality
Define:
• : state - y units of resource are allocated to produce products
from 1 to n.
• : maximum total profit obtained from products 1 through n,
when y units of resource are allocated to them.
• : the optimal value to be determined.
Introduction
Bellman’s Principle of Optimality