Algorithm Search⌘K

Definitionadvanced

Transversality conditions

Also called transversality condition.

The boundary conditions on the costate and the Hamiltonian at the end of the horizon when the final state or time is free.

The transversality conditions are the boundary conditions that the maximum principle adds at the end of the horizon for each part of the end data that is not fixed. A free final state gives a condition on the final costate, and a free final time gives a condition on the final value of the Hamiltonian. They supply exactly as many equations as there are free quantities, so the boundary value problem for the state and the costate has as many conditions as unknowns.

Definition

Take the optimal control problem with dynamics x˙=f(t,x,u)\dot x = f(t, x, u), x(t0)=x0x(t_0) = x_0, running cost L(t,x,u)L(t, x, u), terminal cost K(tf,x(tf))K(t_f, x(t_f)) with KK of class C1C^1, and a target

S={x∈Rn:ψ(x)=0},S = \{x \in \mathbb{R}^n : \psi(x) = 0\},

where ψ:Rn→Rk\psi : \mathbb{R}^n \to \mathbb{R}^k is C1C^1 and its Jacobian ψx\psi_x has rank kk on SS. The case k=0k = 0 is a free end point, and ψ(x)=x−x1\psi(x) = x - x_1 (k=nk = n) is a fixed end point. Let H=λ0L+λTfH = \lambda_0 L + \lambda^T f with λ0∈{0,1}\lambda_0 \in \{0, 1\}, and let (x∗,u∗,λ,λ0)(x^*, u^*, \lambda, \lambda_0) be an extremal on [t0,tf][t_0, t_f].

Transversality condition for the final state. There is a vector ν∈Rk\nu \in \mathbb{R}^k with

λ(tf)=λ0∇xK(tf,x∗(tf))+ψx(x∗(tf))Tν.\lambda(t_f) = \lambda_0 \nabla_x K(t_f, x^*(t_f)) + \psi_x(x^*(t_f))^T \nu.

Equivalently, λ(tf)−λ0∇xK\lambda(t_f) - \lambda_0 \nabla_x K is orthogonal to the tangent space {d:ψxd=0}\{d : \psi_x d = 0\} of SS at x∗(tf)x^*(t_f). This gives n−kn - k equations, one for each free direction of the end point.

Transversality condition for the final time. If tft_f is free,

H(tf,x∗(tf),u∗(tf),λ(tf),λ0)=−λ0∂K∂t(tf,x∗(tf)).H(t_f, x^*(t_f), u^*(t_f), \lambda(t_f), \lambda_0) = -\lambda_0 \frac{\partial K}{\partial t}(t_f, x^*(t_f)).

For a time-invariant problem, with ff, LL and KK independent of tt, this is H(tf)=0H(t_f) = 0, and because HH is then constant along the extremal, H≡0H \equiv 0.

Special cases.

End data Condition at tft_f
final state free λ(tf)=λ0∇xK(x∗(tf))\lambda(t_f) = \lambda_0 \nabla_x K(x^*(t_f))
final state fixed none on λ(tf)\lambda(t_f); the nn conditions are x(tf)=x1x(t_f) = x_1
some components xi(tf)x_i(t_f) fixed, the rest free λj(tf)=λ0∂K/∂xj\lambda_j(t_f) = \lambda_0 \partial K / \partial x_j for each free component jj
final time free, time-invariant data H(tf)=0H(t_f) = 0

At the initial time. If the initial state is only required to lie in a set S0={x:ψ0(x)=0}S_0 = \{x : \psi_0(x) = 0\} and the cost contains a term K0(x(t0))K_0(x(t_0)), then λ(t0)+λ0∇K0(x∗(t0))\lambda(t_0) + \lambda_0 \nabla K_0(x^*(t_0)) is orthogonal to the tangent space of S0S_0. The sign differs from the final condition because a larger initial state enters the remaining cost with the opposite sign of a larger final state.

Why these conditions. The costate is the sensitivity of the cost to the state (costate). At the final time the remaining cost is KK, so along every free direction dd of the end point the costate must agree with the gradient of KK; otherwise a small move of the end point along dd would lower the cost. Along the directions normal to SS the end point cannot move, and the multiplier ν\nu absorbs the difference, as a Lagrange multiplier does. In the same way, stopping a little earlier or later changes the cost at the rate H+∂K/∂tH + \partial K / \partial t, which must vanish. The proof for the free end point and the free final time is on the page of the maximum principle.

Examples and non-examples

Free end point. For x˙=u\dot x = u, J=∫01u2 dt+x(1)2J = \int_0^1 u^2\, dt + x(1)^2, x(0)=1x(0) = 1: the condition is λ(1)=2x(1)\lambda(1) = 2 x(1). With the constant costate λ=2x(1)\lambda = 2 x(1) and u=−λ/2u = -\lambda/2, this gives x(1)=1/2x(1) = 1/2, λ=1\lambda = 1 and the optimal cost 1/21/2.

End point on a line. In R2\mathbb{R}^2, minimize ∫01∣u∣2dt\int_0^1 |u|^2 dt with x˙=u\dot x = u, x(0)=(0,0)x(0) = (0, 0) and x(1)x(1) on the line x1+x2=1x_1 + x_2 = 1. Here ψ(x)=x1+x2−1\psi(x) = x_1 + x_2 - 1, ψx=(1,1)\psi_x = (1, 1), and K=0K = 0. The costate is constant, u=−λ/2u = -\lambda/2, and the condition is λ=ν(1,1)\lambda = \nu (1, 1), so the motion is normal to the line. Then x(1)=−λ/2=−(ν/2)(1,1)x(1) = -\lambda/2 = -(\nu/2)(1, 1) lies on the line for ν=−1\nu = -1, so x(1)=(1/2,1/2)x(1) = (1/2, 1/2), u=(1/2,1/2)u = (1/2, 1/2) and the cost is 1/21/2. This is the closest point of the line to the origin, as it should be.

Free final time. Minimize ∫0tf(1+u2) dt\int_0^{t_f} (1 + u^2)\, dt with x˙=u\dot x = u, x(0)=1x(0) = 1, x(tf)=0x(t_f) = 0 and tft_f free. Here H=1+u2+λuH = 1 + u^2 + \lambda u and λ\lambda is constant, so u=−λ/2u = -\lambda/2 and H=1−λ2/4H = 1 - \lambda^2/4. The condition H=0H = 0 gives λ=±2\lambda = \pm 2. To move from 1 to 0 the input must be negative, so λ=2\lambda = 2, u=−1u = -1, tf=1t_f = 1 and the cost is 2. A direct check: a constant speed ss takes the time 1/s1/s and costs (1+s2)/s(1 + s^2)/s, which is smallest at s=1s = 1 with the value 2.

The same problem with a terminal cost in time. Write the cost as ∫0tfu2 dt+K(tf)\int_0^{t_f} u^2\, dt + K(t_f) with K(t)=tK(t) = t. Now H=u2+λu=−λ2/4H = u^2 + \lambda u = -\lambda^2/4, and the condition is H(tf)=−∂K/∂t=−1H(t_f) = -\partial K / \partial t = -1. Again λ=2\lambda = 2, u=−1u = -1 and tf=1t_f = 1.

Non-example: forgetting the time term. In the last example, the condition H(tf)=0H(t_f) = 0 would give λ=0\lambda = 0 and u=0u = 0, and the state would never reach 0. The rule H(tf)=0H(t_f) = 0 holds only when KK does not depend on tt.

Non-example: a condition on a fixed end point. For x˙=u\dot x = u, J=∫01u2 dtJ = \int_0^1 u^2\, dt, x(0)=0x(0) = 0, x(1)=1x(1) = 1, the optimal input is u=1u = 1 and the costate is λ=−2\lambda = -2. Writing λ(1)=∇K=0\lambda(1) = \nabla K = 0 would be wrong: a fixed end point puts no condition on λ(1)\lambda(1), and the end condition x(1)=1x(1) = 1 replaces it.

Non-example: an infinite horizon. For tf=∞t_f = \infty, the condition λ(t)→0\lambda(t) \to 0 as t→∞t \to \infty looks natural, but it is not necessary in general. Halkin (1974) gave an example of an optimal input whose costate does not tend to 0. Infinite-horizon problems need extra hypotheses for any condition at infinity.

  • Natural boundary condition. In the calculus of variations, a free end value y(b)y(b) gives Ly′=0L_{y'} = 0 at bb (Euler-Lagrange equation). With λ=−Ly′\lambda = -L_{y'} this is the free end point case with K=0K = 0.
  • Normality. With a free end point the condition λ(tf)=λ0∇K\lambda(t_f) = \lambda_0 \nabla K excludes λ0=0\lambda_0 = 0, so every such problem is normal (maximum principle).
  • Shooting. In the indirect method, the transversality conditions are the residual equations that Newton's method drives to zero.
  • Time-optimal control. For the time-optimal problem with L=1L = 1, the free final time gives λ0+λ(tf)Tf(x∗(tf),u∗(tf))=0\lambda_0 + \lambda(t_f)^T f(x^*(t_f), u^*(t_f)) = 0.

References

  1. Daniel Liberzon, Calculus of Variations and Optimal Control Theory, A Concise Introduction, Princeton University Press, 2012, Section 2.3.5 (variable-endpoint problems in the calculus of variations) and Section 4.2.10 (the transversality condition in the proof of the maximum principle)
  2. Donald E. Kirk, Optimal Control Theory, An Introduction, Prentice-Hall, 1970 (Dover reprint, 2004), Section 5.1 (the boundary conditions for the cases of fixed and free final time and final state)
  3. Arthur E. Bryson and Yu-Chi Ho, Applied Optimal Control, Optimization, Estimation, and Control, Hemisphere, 1975 (revised printing of the 1969 edition)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/SE57GX/text.yaml