Professional Documents
Culture Documents
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
4
1
2
4
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
Vj =
min fc (j, y ) +
y =1,2,...,n
pjk (y )Vk g
k =1
min fc (j, y ) + Vy g.
y =1,2,...,n
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
min fc (j, y ) + Vy g,
y =1,2,...,n
j = 1, 2, . . . , n.
min fc (j, y ) + Vy g,
y =1,2,...,n
j = 1, 2, . . . , n.
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
1+r
c(i,j)
i\j
1
2
3
4
1
100
4
100
1
2
4
100
1
100
3
100
5
100
100
4
3
100
100
100
0.00
0.00
0.00
0.00
1
2
3
4
1
100
4
100
1
2
4
100
1
100
3
100
5
100
100
4
3
100
100
100
1
2
3
4
1
100
4
100
1
2
4
100
1
100
3
100
5
100
100
1
2
3
4
1
100
4
100
1
2
4
100
1
100
3
100
5
100
100
i\j
i\j
i\j
1.3
V/(1+r)
V/(1+r)
+c
new V
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
100.00
4.00 100.00
3.00
4.00 100.00
5.00 100.00
100.00
1.00 100.00 100.00
1.00 100.00 100.00 100.00
3.00
4.00
1.00
1.00
3.00
4.00
1.00
1.00
2.31
3.08
0.77
0.77
2.31
3.08
0.77
0.77
102.31
7.08 100.77
3.77
6.31 103.08
5.77 100.77
102.31
4.08 100.77 100.77
3.31 103.08 100.77 100.77
3.77
5.77
4.08
3.31
4
3
100
100
100
3.77
5.77
4.08
3.31
2.90
4.44
3.14
2.54
2.90
4.44
3.14
2.54
102.90
8.44 103.14
5.54
6.90 104.44
8.14 102.54
102.90
5.44 103.14 102.54
3.90 104.44 103.14 102.54
5.54
6.90
5.44
3.90
4
3
100
100
100
5.54
6.90
5.44
3.90
4.26
5.31
4.18
3.00
4.26
5.31
4.18
3.00
104.26
9.31 104.18
6.00
8.26 105.31
9.18 103.00
104.26
6.31 104.18 103.00
5.26 105.31 104.18 103.00
6.00
8.26
6.31
5.26
..
.
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
Set = 1
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
2 1 2 1
>
1.3
Next
1
2
3
4
C(i,j)
2
1
2
1
100
4
100
1
4
100
1
100
100
5
100
100
3
100
100
100
Cost
1
2
3
4
17.33331
17.33331
14.33331
14.33331
4
4
1
1
V
i
Next
1
2
3
4
Discounted
C(i,j)
4
3
2
1
100
4
100
1
4
100
1
100
100
5
100
100
3
100
100
100
17.33331
17.33331
14.33331
14.33331
13.33
13.33
11.03
11.03
c + V/(1+r)
13.33
113.33
17.33
113.33
14.33
13.33
17.33
113.33
14.33
113.33
V
11.03
111.03
16.03
111.03
111.03
11.03
14.03
111.03
111.03
111.03
14.03
16.03
14.33
14.33
Cost
1 9.231872
2 14.13042
3 11.86955
4 8.10144
V
i
Next
1
2
3
4
Discounted
C(i,j)
4
1
2
1
100
4
100
1
4
100
1
100
100
5
100
100
3
100
100
100
9.231872
14.13042
11.86955
8.10144
7.10
10.87
9.13
6.23
c + V/(1+r)
7.10
107.10
11.10
107.10
8.10
10.87
14.87
110.87
11.87
110.87
V
9.13
109.13
14.13
109.13
109.13
6.23
9.23
106.23
106.23
106.23
9.23
11.10
11.87
8.10
Cost
1 9.231872
2 11.10144
3 9.539569
4 8.10144
V
i
Next
1
2
3
4
Discounted
C(i,j)
4
1
2
1
100
4
100
1
4
100
1
100
100
5
100
100
3
100
100
100
9.231872
11.10144
9.539569
8.10144
7.10
8.54
7.34
6.23
c + V/(1+r)
7.10
107.10
11.10
107.10
8.10
8.54
12.54
108.54
9.54
108.54
V
7.34
107.34
12.34
107.34
107.34
6.23
9.23
106.23
106.23
106.23
9.23
11.10
9.54
8.10
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
min fc (j, y ) + Vy g,
y =1,2,...,n
whence
Vj
c (j, y ) + Vy ,
j, y = 1, 2, . . . , n,
V1 + V2 +
+ Vn
c (j, y ) + Vy , j, y = 1, 2, . . . , n.
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
The dual is
D: minimize
nj=1 ny =1 c (j, y )x (j, y )
n
s.t.
y =1 x (j, y ) ny =1 x (y , j ) = 1, j = 1, 2, . . . , n.
x (j, y ) 0.
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
x (j, y )
The solution is Excel is
0.
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic
ENGSCI 760: Dynamic programming Formulations Stochastic dynamic programming Stopping problems Innite-horizon dynamic