Algorithm Search⌘K

Theoremcore

Pontryagin maximum principle

Also called Pontryagin's minimum principle, PMP.

An optimal control minimizes the Hamiltonian at each time, along state and costate trajectories that satisfy the canonical equations. It is a necessary condition, not a sufficient one.

The Pontryagin maximum principle (PMP) is the main necessary condition for optimality in an optimal control problem. If an input u∗u^* is optimal, then there is a costate λ(t)\lambda(t) such that at almost every time u∗(t)u^*(t) minimizes the Hamiltonian H=λ0L(x,u)+λTf(x,u)H = \lambda_0 L(x, u) + \lambda^T f(x, u) over all allowed inputs, while xx and λ\lambda follow the canonical equations with end conditions. It extends the Euler-Lagrange equation to inputs that take values in a closed or even a discrete set, where setting a derivative to zero does not work. It gives necessary conditions only.

Sign convention. Pontryagin, Boltyanskii, Gamkrelidze and Mishchenko (1962) state the result as a maximum principle: they use the function ψTf+ψ0L\psi^T f + \psi_0 L with a constant ψ0≤0\psi_0 \le 0, and the optimal input maximizes it. With ψ=−λ\psi = -\lambda and ψ0=−λ0\psi_0 = -\lambda_0 their function is −H-H, so maximizing it is minimizing HH. Liberzon (2012) uses the same maximum form. This page and the other pages of this area use the minimum form with HH and λ0∈{0,1}\lambda_0 \in \{0, 1\}, as Kirk (1970) does.

Statement

Problem. Minimize J(u)=∫t0tfL(x,u) dt+K(x(tf))J(u) = \int_{t_0}^{t_f} L(x, u)\, dt + K(x(t_f)) subject to x˙=f(x,u)\dot x = f(x, u), x(t0)=x0x(t_0) = x_0, u(t)∈Uu(t) \in U and x(tf)∈Sx(t_f) \in S, with tft_f fixed or free. Here U⊆RmU \subseteq \mathbb{R}^m is any set. The functions f:Rn×U→Rnf : \mathbb{R}^n \times U \to \mathbb{R}^n and LL are continuous, and their derivatives fxf_x and LxL_x exist and are continuous on Rn×U\mathbb{R}^n \times U. KK is C1C^1. The target is S=RnS = \mathbb{R}^n, or a point, or S={x:ψ(x)=0}S = \{x : \psi(x) = 0\} for a C1C^1 map ψ:Rn→Rk\psi : \mathbb{R}^n \to \mathbb{R}^k whose Jacobian has rank kk on SS. Admissible inputs are piecewise continuous. The Lipschitz condition that follows from fxf_x being continuous gives unique trajectories by the Picard-Lindelöf theorem.

Theorem. Let u∗u^* be an optimal input on [t0,tf∗][t_0, t_f^*] with trajectory x∗x^*. Then there are a number λ0∈{0,1}\lambda_0 \in \{0, 1\} and a continuous, piecewise C1C^1 function λ:[t0,tf∗]→Rn\lambda : [t_0, t_f^*] \to \mathbb{R}^n with (λ0,λ(t))≠(0,0)(\lambda_0, \lambda(t)) \ne (0, 0) for all tt, such that:

  1. Canonical equations. x˙∗=HλT=f(x∗,u∗)\dot x^* = H_\lambda^T = f(x^*, u^*) and λ˙=−HxT\dot\lambda = -H_x^T, evaluated at (x∗(t),u∗(t),λ(t),λ0)(x^*(t), u^*(t), \lambda(t), \lambda_0).
  2. Minimum condition. At every tt where u∗u^* is continuous,
H(x∗(t),u∗(t),λ(t),λ0)=min⁡v∈UH(x∗(t),v,λ(t),λ0).H(x^*(t), u^*(t), \lambda(t), \lambda_0) = \min_{v \in U} H(x^*(t), v, \lambda(t), \lambda_0).
  1. Constant Hamiltonian. t↦H(x∗(t),u∗(t),λ(t),λ0)t \mapsto H(x^*(t), u^*(t), \lambda(t), \lambda_0) is constant. If tft_f is free, the constant is 0.
  2. Transversality. λ(tf∗)−λ0∇K(x∗(tf∗))\lambda(t_f^*) - \lambda_0 \nabla K(x^*(t_f^*)) is orthogonal to the tangent space of SS at x∗(tf∗)x^*(t_f^*). For S=RnS = \mathbb{R}^n this means λ(tf∗)=λ0∇K(x∗(tf∗))\lambda(t_f^*) = \lambda_0 \nabla K(x^*(t_f^*)), and for a fixed end point it says nothing (transversality conditions).

The case λ0=1\lambda_0 = 1 is normal, and λ0=0\lambda_0 = 0 is abnormal. In the abnormal case the cost does not enter the conditions at all: the conditions then describe inputs that are extreme for the constraints alone, whatever the cost. For a free end point (S=RnS = \mathbb{R}^n), item 4 gives λ(tf)=λ0∇K\lambda(t_f) = \lambda_0 \nabla K, so λ0=0\lambda_0 = 0 would force λ(tf)=0\lambda(t_f) = 0 and then, by the linear adjoint equation, λ≡0\lambda \equiv 0, which is excluded. So problems with a free end point are always normal.

A pair (x∗,u∗)(x^*, u^*) with such multipliers is an extremal. Time-varying data f(t,x,u)f(t, x, u) and L(t,x,u)L(t, x, u) are handled by adding the state tt; then item 3 changes to ddtH=Ht\frac{d}{dt} H = H_t along the extremal.

In plain words

Attach to each state variable a price that changes with time, the costate. Then the best input does something simple at each moment: among all allowed inputs, it picks the one that makes the current cost plus the priced rate of change of the state as small as possible. The prices themselves move backward in time by a fixed rule, starting from what the final state is worth. This turns a search over whole input functions into a pointwise choice plus a boundary value problem. The rule is necessary, not sufficient: an input that passes it may still be poor, and the rule says nothing when no best input exists. In rare cases the price of the cost itself is zero, and then the rule only reflects the constraints.

Proof

We prove the theorem in full for a fixed final time and a free end point, S=RnS = \mathbb{R}^n, where λ0=1\lambda_0 = 1. Then we prove item 3 and sketch the general case.

Setup. Let λ\lambda solve λ˙=−Hx(x∗,u∗,λ,1)T\dot\lambda = -H_x(x^*, u^*, \lambda, 1)^T with λ(tf)=∇K(x∗(tf))\lambda(t_f) = \nabla K(x^*(t_f)). This is a linear equation with piecewise continuous coefficients, so λ\lambda exists and is unique on [t0,tf][t_0, t_f].

Needle variation. Fix a time τ∈(t0,tf]\tau \in (t_0, t_f] where u∗u^* is continuous, a value v∈Uv \in U, and a small ε>0\varepsilon > 0. Let uε=vu_\varepsilon = v on (τ−ε,τ](\tau - \varepsilon, \tau] and uε=u∗u_\varepsilon = u^* elsewhere. This input is admissible. Let xεx_\varepsilon be its trajectory. Up to τ−ε\tau - \varepsilon it equals x∗x^*. On the short interval,

xε(τ)−x∗(τ)=∫τ−ετ(f(xε,v)−f(x∗,u∗))dt=ε Δf+o(ε),x_\varepsilon(\tau) - x^*(\tau) = \int_{\tau - \varepsilon}^{\tau} \left( f(x_\varepsilon, v) - f(x^*, u^*) \right) dt = \varepsilon\, \Delta f + o(\varepsilon),

with Δf=f(x∗(τ),v)−f(x∗(τ),u∗(τ))\Delta f = f(x^*(\tau), v) - f(x^*(\tau), u^*(\tau)), because xε−x∗=O(ε)x_\varepsilon - x^* = O(\varepsilon) on the interval and ff and u∗u^* are continuous there. After τ\tau both trajectories use the same input, and by differentiable dependence on initial values, xε(t)=x∗(t)+ε δ(t)+o(ε)x_\varepsilon(t) = x^*(t) + \varepsilon\, \delta(t) + o(\varepsilon) uniformly on [τ,tf][\tau, t_f], where δ\delta solves the linearized equation δ˙=fx(x∗,u∗) δ\dot\delta = f_x(x^*, u^*)\, \delta with δ(τ)=Δf\delta(\tau) = \Delta f.

Change of the cost. In the same way,

J(uε)−J(u∗)=ε(ΔL+∫τtfLxδ dt+∇KTδ(tf))+o(ε),J(u_\varepsilon) - J(u^*) = \varepsilon \left( \Delta L + \int_\tau^{t_f} L_x \delta\, dt + \nabla K^T \delta(t_f) \right) + o(\varepsilon),

with ΔL=L(x∗(τ),v)−L(x∗(τ),u∗(τ))\Delta L = L(x^*(\tau), v) - L(x^*(\tau), u^*(\tau)) and ∇K\nabla K at x∗(tf)x^*(t_f).

The adjoint removes the integral. Since Hx=Lx+λTfxH_x = L_x + \lambda^T f_x,

ddt(λTδ)=−Hxδ+λTfxδ=−Lxδ.\frac{d}{dt}\left( \lambda^T \delta \right) = -H_x \delta + \lambda^T f_x \delta = -L_x \delta.

Integrating from τ\tau to tft_f gives ∫τtfLxδ dt=λ(τ)Tδ(τ)−λ(tf)Tδ(tf)\int_\tau^{t_f} L_x \delta\, dt = \lambda(\tau)^T \delta(\tau) - \lambda(t_f)^T \delta(t_f), and λ(tf)Tδ(tf)=∇KTδ(tf)\lambda(t_f)^T \delta(t_f) = \nabla K^T \delta(t_f). So the bracket above is ΔL+λ(τ)TΔf\Delta L + \lambda(\tau)^T \Delta f, and

J(uε)−J(u∗)=ε(H(x∗(τ),v,λ(τ),1)−H(x∗(τ),u∗(τ),λ(τ),1))+o(ε).J(u_\varepsilon) - J(u^*) = \varepsilon \left( H(x^*(\tau), v, \lambda(\tau), 1) - H(x^*(\tau), u^*(\tau), \lambda(\tau), 1) \right) + o(\varepsilon).

Optimality gives J(uε)≥J(u∗)J(u_\varepsilon) \ge J(u^*). Divide by ε\varepsilon and let ε→0\varepsilon \to 0: H(x∗(τ),v,λ(τ),1)≥H(x∗(τ),u∗(τ),λ(τ),1)H(x^*(\tau), v, \lambda(\tau), 1) \ge H(x^*(\tau), u^*(\tau), \lambda(\tau), 1). This holds for every v∈Uv \in U, which is item 2. Items 1 and 4 hold by the choice of λ\lambda.

Item 3, for compact UU. Let m(t)=min⁡v∈UH(x∗(t),v,λ(t))m(t) = \min_{v \in U} H(x^*(t), v, \lambda(t)). For a fixed vv, the function gv(t)=H(x∗(t),v,λ(t))g_v(t) = H(x^*(t), v, \lambda(t)) has the derivative

gv′(t)=Hx(x∗,v,λ) f(x∗,u∗(t))−f(x∗,v)THx(x∗,u∗(t),λ)Tg_v'(t) = H_x(x^*, v, \lambda)\, f(x^*, u^*(t)) - f(x^*, v)^T H_x(x^*, u^*(t), \lambda)^T

at every tt where u∗u^* is continuous, and this derivative is bounded uniformly in v∈Uv \in U. So mm, a minimum of uniformly Lipschitz functions, is Lipschitz, and it is differentiable almost everywhere. Take such a tt where u∗u^* is also continuous, and let w=u∗(t)w = u^*(t). Then gw(s)−m(s)≥0g_w(s) - m(s) \ge 0 for all ss, with equality at s=ts = t by item 2. So s=ts = t is a minimum, and m′(t)=gw′(t)m'(t) = g_w'(t). Put v=wv = w in the formula: the two terms cancel, and m′(t)=0m'(t) = 0. A Lipschitz function with derivative 0 almost everywhere is constant. By item 2, m(t)m(t) is the Hamiltonian along the extremal.

Free final time. Still with a free end point, let tf∗t_f^* be optimal. Stopping at tf∗−εt_f^* - \varepsilon changes the cost by −ε(L+∇KTf)+o(ε)=−εH(tf∗)+o(ε)-\varepsilon (L + \nabla K^T f) + o(\varepsilon) = -\varepsilon H(t_f^*) + o(\varepsilon), where λ(tf∗)=∇K\lambda(t_f^*) = \nabla K was used. Running on to tf∗+εt_f^* + \varepsilon with the input held at u∗(tf∗)u^*(t_f^*) changes it by +εH(tf∗)+o(ε)+\varepsilon H(t_f^*) + o(\varepsilon). Both changes are at least 0, so H(tf∗)=0H(t_f^*) = 0, and by item 3, H≡0H \equiv 0.

The general case, a sketch. With a terminal constraint, the needle variations cannot all be compared with u∗u^* directly, because they move the end point off SS. The proof first converts the cost to Mayer form with the extra state xn+1x_{n+1}, x˙n+1=L\dot x_{n+1} = L (optimal control problem, Reductions). Each needle variation, and each change of the final time, moves the augmented end point by a vector to first order. These vectors, and their nonnegative combinations from several needles at different times, form a convex cone, the terminal cone. Optimality implies that the direction of a lower cost, −en+1-e_{n+1}, does not point into the interior of the cone, after the tangent space of SS is taken into account. A separating hyperplane then gives a nonzero normal vector (λ0,λ(tf))(\lambda_0, \lambda(t_f)) with λ0≥0\lambda_0 \ge 0, and one scales it so that λ0∈{0,1}\lambda_0 \in \{0, 1\}. The case λ0=0\lambda_0 = 0 is the case where the hyperplane is vertical, that is, where the cone fails to reach some direction of the end constraint, whatever the cost. The adjoint equation carries the normal back in time, and the separation gives items 2 to 4. The hard step is the topological argument that the end point map of the needle variations covers a neighborhood in the cone; Pontryagin et al. (1962, Chapter 2) and Liberzon (2012, Section 4.2) give it in full.

Consequences

A worked example. 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, U=RU = \mathbb{R}, the end point is free, so λ0=1\lambda_0 = 1. H=u2+λuH = u^2 + \lambda u gives u=−λ/2u = -\lambda/2, the adjoint equation gives a constant λ\lambda, and item 4 gives λ=2x(1)\lambda = 2 x(1). Then x(1)=1−x(1)x(1) = 1 - x(1), so x(1)=1/2x(1) = 1/2, λ=1\lambda = 1, u∗=−1/2u^* = -1/2 and J=1/2J = 1/2. The Hamiltonian is H=1/4−1/2=−1/4H = 1/4 - 1/2 = -1/4 at all times, constant as item 3 says.

An abnormal example. Minimize ∫01u dt\int_0^1 u\, dt subject to x˙=u2\dot x = u^2, x(0)=x(1)=0x(0) = x(1) = 0, U=RU = \mathbb{R}. Since x˙≥0\dot x \ge 0, the end condition forces ∫01u2dt=0\int_0^1 u^2 dt = 0, so u=0u = 0 is the only admissible input, and it is optimal. The Hamiltonian is H=λ0u+λu2H = \lambda_0 u + \lambda u^2, and λ\lambda is constant. If λ0=1\lambda_0 = 1, then HH has a minimum over u∈Ru \in \mathbb{R} only if λ>0\lambda > 0, and the minimum is at u=−1/(2λ)≠0u = -1/(2\lambda) \ne 0. So u∗=0u^* = 0 satisfies the theorem only with λ0=0\lambda_0 = 0 and λ>0\lambda > 0. The conditions here say nothing about the cost.

  • Euler-Lagrange. With f(x,u)=uf(x, u) = u and U=RnU = \mathbb{R}^n, the minimum condition gives λ=−Lu\lambda = -L_u, and the adjoint equation becomes the Euler-Lagrange equation. The minimum condition also gives the Weierstrass condition, which is stronger than the Legendre condition.
  • LQR. For linear dynamics and quadratic cost, the extremals solve a linear two-point boundary value problem, and λ=2P(t)x\lambda = 2 P(t) x with the Riccati solution PP (LQR problem). Because this problem is convex, the extremal is optimal.
  • Bang-bang and singular controls. If HH is affine in uu and UU is a box, the minimum is at a vertex of UU wherever the switching function is nonzero. This gives the bang-bang principle for time-optimal control. Where the switching function vanishes on an interval, the minimum condition does not decide uu, and higher-order conditions are needed (singular arc).
  • Computation. The theorem turns the problem into a boundary value problem for (x,λ)(x, \lambda) in 2n2n unknowns, which the indirect method solves by shooting.
  • Sufficiency under convexity. For a fixed final time and a fixed or free end point, if λ0=1\lambda_0 = 1, KK is convex and (x,u)↦H(x,u,λ(t),1)(x, u) \mapsto H(x, u, \lambda(t), 1) is convex for each tt with UU convex, then every extremal is optimal (the Mangasarian condition).
  • Link to dynamic programming. Where the value function is C2C^2, λ(t)=Vx(t,x∗(t))T\lambda(t) = V_x(t, x^*(t))^T (costate, HJB equation).

Tightness

Necessary, not sufficient. Take x˙=u\dot x = u, J=∫0T(u2−x2) dtJ = \int_0^T (u^2 - x^2)\, dt, x(0)=x(T)=0x(0) = x(T) = 0, U=RU = \mathbb{R}, with T>πT > \pi. The input u=0u = 0 with λ=0\lambda = 0 and λ0=1\lambda_0 = 1 satisfies all four items: H=u2−x2+λuH = u^2 - x^2 + \lambda u is minimized at u=−λ/2=0u = -\lambda/2 = 0, and λ˙=2x=0\dot\lambda = 2 x = 0. But x=csin⁡(πt/T)x = c \sin(\pi t / T) gives J=c2T2(π2/T2−1)<0J = c^2 \frac{T}{2}(\pi^2/T^2 - 1) < 0, and J→−∞J \to -\infty as c→∞c \to \infty. So the extremal is not optimal, and no optimal input exists.

The theorem assumes an optimal input. For x˙=u\dot x = u, U={−1,1}U = \{-1, 1\}, x(0)=0x(0) = 0 and J=∫01x2 dtJ = \int_0^1 x^2\, dt, the infimum 0 is not attained (optimal control problem, Examples). The principle then gives no information. Existence must come from a separate theorem, such as Filippov's.

λ0\lambda_0 cannot be fixed to 1. The abnormal example above shows that the normal form can miss the optimal input.

The minimum condition cannot be replaced by Hu=0H_u = 0. With a bounded UU the minimum is often on the boundary, as in time-optimal problems, where Hu=0H_u = 0 has no solution.

Discrete time is different. For xk+1=F(xk,uk)x_{k+1} = F(x_k, u_k) the KKT conditions give Hu=0H_u = 0, but the pointwise minimum of Hk=L+λk+1TFH_k = L + \lambda_{k+1}^T F over UU can fail. Example: x1=x0+u0x_1 = x_0 + u_0, x0=0x_0 = 0, U=[−1,1]U = [-1, 1], cost −u02+2x12-u_0^2 + 2 x_1^2. The cost is u02u_0^2, so u0=0u_0 = 0 is optimal, with λ1=4x1=0\lambda_1 = 4 x_1 = 0. But H0=−u2+λ1u=−u2H_0 = -u^2 + \lambda_1 u = -u^2 is minimized at u=±1u = \pm 1, not at 0. A discrete maximum principle needs convexity of the set of possible (L,F)(L, F) values.

History

Pontryagin, Boltyanskii and Gamkrelidze announced the maximum principle in 1956. Boltyanskii gave the first general proof, and the four authors published the book in Russian in 1961 and in English in 1962. The work came from problems of the time-optimal control of aircraft and from the classical calculus of variations, whose Weierstrass condition it extends to closed input sets. At the same time, Bellman developed dynamic programming in the United States. Liberzon (2012, Chapter 4) gives a modern proof that follows the original.

References

  1. L. S. Pontryagin, V. G. Boltyanskii, R. V. Gamkrelidze and E. F. Mishchenko, The Mathematical Theory of Optimal Processes, translated by K. N. Trirogoff, edited by L. W. Neustadt, Interscience, 1962 (Russian edition 1961), Chapter 1 (the statement of the maximum principle) and Chapter 2 (its proof)
  2. Daniel Liberzon, Calculus of Variations and Optimal Control Theory, A Concise Introduction, Princeton University Press, 2012, Section 4.1 (statement), Section 4.2 (proof, with the temporal and spatial perturbations, the terminal cone, the adjoint equation, the properties of the Hamiltonian and the transversality condition) and Section 4.3 (discussion)
  3. Donald E. Kirk, Optimal Control Theory, An Introduction, Prentice-Hall, 1970 (Dover reprint, 2004), Section 5.3 (Pontryagin's minimum principle and state inequality constraints)
  4. Lawrence C. Evans, An Introduction to Mathematical Optimal Control Theory, lecture notes, University of California, Berkeley, Chapter 4 (the Pontryagin maximum principle) and the appendix (proofs of the maximum principle)

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/9JA2MM/text.yaml