










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











New York 1
Columbus 2
Kansas City 5
Denver 8
Los Angeles 10
Omaha 6
Dallas 7
Nashville 3
Louisville 4
San Antonio 9
Stage 1
Stage 2 Stage 3
Stage 4
Stage 5
550
680 610
1030
1390
270
790
940
540
790
790 1050
580
660
510
830
700
770
900 760
Stage 2 computations
Work backward one stage (to stage 2 cities) and find the
shortest path to LA from each stage 2 city.
f 2 (2) = min
c 25 + f 3 (5) = 680 + 1640 = 2320 *
c 26 + f 3 (6) = 790 + 1570 = 2360
c 27 + f 3 (7) = 1050 + 1660 = 2710
f 2 (3) = min
c 35 + f 3 (5) = 580 + 1640 = 2220 *
c 36 + f 3 (6) = 760 + 1570 = 2330
c 37 + f 3 (7) = 660 + 1660 = 2320
f 2 (4) = min
c 45 + f 3 (5) = 510 + 1640 = 2150 *
c 46 + f 3 (6) = 700 + 1570 = 2270
c 47 + f 3 (7) = 830 + 1660 = 2490
Stage 1 computations
Now we can find f 1 (1), and the shortest path from NY to LA.
Checking back our calculations, the shortest path is
1 – 2 – 5 – 8 – 10
that is,
NY – Columbus – Kansas City – Denver – LA
with total mileage 2870.
f 1 (1) = min
c 12 + f 2 (2) = 550 + 2320 = 2870 *
c 13 + f 2 (3) = 900 + 2220 = 3120
c 14 + f 2 (4) = 770 + 2150 = 2920
The problem is divided into smaller subproblems each of
them represented by a stage.
The stages are defined in many different ways depending on
the context of the problem.
If the problem is about long-time development of a system
then the stages naturally correspond to time periods.
If the goal of the problem is to move some objects from
one location to another on a map then partitioning the map into several geographical regions might be the natural division into stages.
Generally, if an accomplishment of a certain task can be
considered as a multi-step process then each stage can be defined as a step in the process.
Optimal Policy and Principle of Optimality
The goal of the solution procedure is to find an optimal policy
for the overall problem, i.e., an optimal policy decision at each stage for each of the possible states.
Given the current state, the optimal decision for each of the
remaining states does not depend on the previous states or decisions. This is known as the principle of optimality for dynamic programming.
For example, in the geographical setting the principle works as
follows: the optimal route from a current city to the final destination does not depend on the way we got to the city.
A system can be formulated as a dynamic programming
problem only if the principle of optimality holds for it.
Period 1 2 3
Demand 1 2 1
Unit cost 3 5 4