Professional Documents
Culture Documents
Optimal Control Minimum Time Hamiltonian
Optimal Control Minimum Time Hamiltonian
Optimal Control Minimum Time Hamiltonian
Lecture 9
Optimal Control for Continuous Time Dynamical Systems: Partially fixed terminal state,
free terminal time cases
John T. Wen
Outline
examples
Suppose, in addition, a function of the final state is specified (e.g., certain component).
For example, for a point-to-point motion control problem, final velocity may be specified
to be zero. Let the constraint be ψ(x(t f ); t f ) = 0 where ψ 2 R q . We can include the
constraint through an additional Lagrange multiplier ν:
Z tf
J = φ(x(t f ); t f ) + ν ψ(x(t f ); t f ) +
T
L(x(t ); u(t ); t ) + λ (t ) ( f (x(t ); u(t ); t ) ẋ(t )) dt :
T
t0
The first order condition yields the same Euler-Lagrange Equations as before, except with
respect to x(t f ):
T " T #
∂φ ∂ψ
λ(t f ) = + ν :
∂x(t f ) ∂x(t f )
The TPBVP now involves 2n ODE’s and q algebraic equations ψ(x(t f ); t f ) = 0 (and q
additional variables in ν).
Special case: ψi (x(t f )) = xi (t f ) and φ = φ(xq+1 ; : : : ; xn ). Then
8
< ν i = 1; : : : ; q
i
λi (t f ) = ∂φ
: i = q + 1; : : : ; n:
∂xi (t f )
When t f is free, we need to include δt f in the first optimality condition for the addition
equation (called Transversality Condition):
∂φ
Free terminal state case: + H =0
∂t f tf
Fixed terminal state case: H jt f =0 (H = 0 in the time invariant case.)
∂φ
T ∂ψ
Partially fixed terminal state: +ν + H = 0:
∂t f ∂t tf
Examples
ẋn+1 = 0:
Define τ = t t
t f = xn+1 and xτ (τ) = x(xn+1 τ). State dynamics in terms of τ:
2 3 2 3 2 3 2 3
dxτ
xn+1 f (xτ (τ); u(xn+1τ); xn+1 τ) xτ (0) x0
4 dτ 5 = 4 5; 4 5=4 5:
dxn+1
dτ 0 xn+1 (0) xn+1 (1)
Note that if the original system is linear, the transformed system is bilinear.
We have seen the optimal constrol problem can be converted to an equivalent TPBVP
which can in turn be posed as a nonlinear least square problem involving n variables (e.g.,
final or inital costates).
Alternatively, we can take a static perspective (as in HW#2). For a given input u =
u(t ) : 0 t t f . Let the solution of ẋ = f (x; u; t ), x(t 0 ) = x0 , be x(t ) = Φ(t; u; x0 ; t0 ).
Then, for given t0 and x0 ,
Z tf
J = φ(x(t f ); t f ) + L(x(t ); u(t ); t ) dt
0
J = J1 (ΨT λ) = J2 (λ):
Typical choices of ψi : Fourier basis, Legurre polynomials, wavelet functions, Walsh func-
tions, radial basis functions (RBF), etc.