9.3 Deterministic DynProg
For a given deterministic dynamic programming without end point constraints: minJ=ϕ(xN)+N−1∑i=0Li(xi,ui)s.t.xi+1=fi(xi,ui)x0=x_0ui∈Ui
9.3.1 Pontryagins Maximum principle
The necessary condition for ˆu0,ˆu1,...,ˆuN−1 being critical points is given by the Euler-Lagrange equations: xi+1,j=fi(xi,j,ui,j)for j=1,2,...,M and i=0,1,2,...,N(state equations)λi,j=∂Hi∂xi,jfor j=1,2,...,M and i=0,1,2,...,N(costate equations)ui,j=argminui∈UiHifor j=1,2,...,M and i=0,1,2,...,N(optimality conditions) where the boundary conditions are: x0=x_0λTi,N=∂∂xi,Nϕ(xN)for j=1,2,...,M and i=0,1,2,...,N
Exm 9.2 with 2-D Expressions
If the original two-dimensional expressions are to be used, the deterministic dynamic programming becomes: minu,vJ=N−1∑i=0[mgyi+12mglsin(θi)]s.t.[zy]i+1=[zy]i+l[uv]ifor i=0,1,...,N−1u2i+v2i=l2for i=0,1,...,N−1[zy]0=[00][zy]N=[h0] where z1,z2,...,zN−1 and y1,y2,...,yN−1 are decision variables as well, but they are determined once θ0,θ1,...,θN−1 are chosen.
The i-th Hamiltonian function becomes:
Hi=mgyi+12mgvi+λzi+1(zi+ui)+λyi+1(yi+vi)
according to Pontryagins Maximum principle, if we consider :
λzi+1=λziλyi+1=λyi−mg[ui,vi]T=argminu2i+v2i=l2{mgyi+12mgvi+λzi+1(zi+ui)+λyi+1(yi+vi)}zi+1=zi+uiyi+1=yi+vi
The optimization algorithms and the inputed original values have large influence on the final result. If the correct values are inputed as the original values, we can get the correct values.