44.07.01 · optimization-control / optimal-control-pontryagin

Pontryagin's Maximum Principle for Constrained Optimal Control

shipped3 tiersLean: none

Anchor (Master): Pontryagin, Boltyanskii, Gamkrelidze & Mishchenko 1962 The Mathematical Theory of Optimal Processes (Interscience/Wiley) Ch. 1-2 (statement and needle-variation proof of the maximum principle, transversality conditions, the constancy of the Hamiltonian); Liberzon 2012 Calculus of Variations and Optimal Control Theory (Princeton University Press) Ch. 4 (a modern proof via needle variations and the adjoint/variational equations); Clarke 2013 Functional Analysis, Calculus of Variations and Optimal Control (Springer GTM 264) Ch. 22 (the nonsmooth maximum principle and the role of the abnormal multiplier)

Intuition Beginner

Imagine flying a small rocket to a fixed point and trying to spend as little fuel as possible. At each instant you choose how hard to burn the engine, but the throttle is not free to take any value: it can sit anywhere from fully off to fully open, and nothing beyond. That cap is the whole story. If the throttle could go arbitrarily large or arbitrarily negative, you could just nudge it to wherever the cost stops changing and call that the best setting. The cap forbids that move, and you need a rule that still works when the best setting is pinned against a limit.

Pontryagin's principle is that rule. It introduces a hidden bookkeeping quantity, one number for each thing you are tracking about the rocket, that records how much a tiny change in your current state is worth to the rest of the journey. Think of it as a running price tag on position and speed. Multiply that price tag by how each throttle setting would push the rocket, add the running fuel cost, and you get a single score for every allowed throttle setting at this instant.

The best choice is the throttle that makes this score as good as it can be among the allowed settings, evaluated separately at each instant. Not the setting where the score is flat, the setting where the score is best inside the cap. When the cap is binding, the best score sits at the edge, full on or full off, never in between.

That edge behaviour is why the principle matters. The old recipe from plain calculus, find where a derivative is zero, only finds flat spots in the interior. Pontryagin's principle keeps working when the answer lives on the boundary of what you are allowed to do.

Visual Beginner

The picture is a single instant in the flight, frozen, showing how the principle scores each allowed throttle setting and picks the best one.

Read the table top to bottom as the comparison the principle runs at one moment in time. You hold the rocket's current state and its price tag fixed. You sweep the throttle across every allowed value. For each value you compute one score. The chosen throttle is the one whose score is smallest (least total cost-rate), and because the throttle is capped, that winner often sits at an endpoint of the allowed range.

allowed throttle how it pushes the rocket running cost combined score
off (low edge) gentle drift tiny fuel use candidate
middle moderate push moderate fuel candidate
full (high edge) hard push high fuel candidate
chosen the setting with the best combined score winner

The takeaway: the principle turns a hard search over entire flight plans into a simple instant-by-instant contest among the allowed throttle settings, refereed by a price tag that someone hands you. The fact that the winner usually sits at an edge is exactly the feature that ordinary calculus misses.

Worked example Beginner

Take the simplest steering problem. A cart sits on a line at position , and you control its velocity directly: changes at the rate , where the throttle is capped between and . You start at and want to reach in the least time. The running cost is just per unit time, since adding up over the trip gives the total time.

Step 1. Form the score. The price tag on position is a number . The combined score at an instant is the running cost plus the price tag times the push: .

Step 2. Pick the best allowed throttle. To make smallest, look at the term . If is positive, the smallest comes from (the low edge). If is negative, the smallest comes from (the high edge). The throttle slams to one edge or the other; it is never in the middle.

Step 3. Find the price tag. The backward rule says the price tag does not change here, because the score does not depend on position at all. So stays constant for the whole trip.

Step 4. Read off the plan. We start at , to the right of the target, so we must move left: . For to be the choice, the constant must be positive. With the cart moves left at speed , covering the distance in time .

Step 5. Check. Position goes in time units at full leftward throttle, then stops. No allowed plan is faster, because is the top speed.

What this tells us: even with the throttle capped, the best plan is dead simple, run at one edge of the allowed range the whole way. The price tag never had to be computed exactly; its sign alone decided the direction. This edge-running behaviour, called bang-bang control, is the signature of constrained optimal control.

Check your understanding Beginner

Formal definition Intermediate+

Consider the controlled system of 02.18.04's variational lineage, with state , control a measurable function taking values in a fixed nonempty constraint set , and continuously differentiable in and continuous in . Fix an initial condition and a time interval (with either fixed or free).

Definition (Bolza optimal-control problem). Among all measurable controls with the resulting absolutely continuous state trajectory, minimise the cost

subject to , , and the constraint for almost every . Here is the running cost (Lagrangian) and the terminal cost. A control attaining the minimum is optimal and denoted , with optimal trajectory .

Definition (control Hamiltonian). The Hamiltonian (in normal form, multiplier on the cost equal to one) is

where is the costate (or adjoint) vector, a row of price tags on the state. The sign convention here pairs with minimisation of ; Pontryagin's original convention writes and maximises, whence "maximum principle." The two are mirror images under .

Definition (costate / adjoint equation). The costate evolves backward by the linear time-varying ODE

driven along the optimal trajectory. The matrix is the state Jacobian.

Definition (transversality / terminal conditions). The boundary data for the costate at the free end depend on the endpoint constraints:

  • Free terminal state, fixed : .
  • Fixed terminal state : is free (determined by the requirement that the trajectory hit ).
  • Free terminal time : additionally at (for autonomous this reads ).

Definition (Pontryagin minimum principle). An optimal pair admits a costate solving the adjoint equation with the transversality conditions, such that for almost every ,

The defining feature is pointwise minimisation over the constraint set , not the interior stationarity . When is open and the minimiser is interior, the condition does collapse to ; the principle is strictly stronger when the minimiser sits on .

Notation: is the state, the control, the costate, the Hamiltonian, the running cost, the terminal cost, the dynamics, the state Jacobian; the pointwise minimiser over the constraint set.

Counterexamples to common slips

  • The maximum principle is a necessary, not sufficient, condition. A pair satisfying the adjoint equation, transversality, and pointwise minimisation is an extremal; it need not be optimal. Sufficiency requires extra structure (convexity of in , or verification against the Hamilton-Jacobi-Bellman value function). Treating an extremal as automatically optimal is the most common error.

  • The pointwise condition is minimisation, not stationarity. Writing as the optimality condition silently assumes the minimiser is interior to . For a box-constrained the minimiser is generically on the boundary, where ; the gradient points out of the feasible set. Stationarity is the open-set special case, not the general rule.

  • The normal multiplier is not guaranteed. In the abnormal case the cost multiplier multiplying vanishes and carries no cost information; the extremal is forced entirely by the endpoint geometry. Normality (taking , as above) holds under a controllability-type regularity at the endpoint and fails for degenerate problems; assuming normality without checking is a genuine pitfall.

Key theorem with proof Intermediate+

Theorem (Pontryagin maximum principle, free-endpoint Bolza problem; Pontryagin et al. Ch. 1-2 [source pending]; Liberzon Ch. 4 [source pending]). Let be optimal for the problem of minimising subject to , , , with fixed and free, under the smoothness hypotheses above. Then there is an absolutely continuous costate satisfying the adjoint equation with terminal condition , such that for almost every the optimal control minimises the Hamiltonian pointwise: for all .

Proof. The construction is the needle (spike) variation. Fix a Lebesgue point of and a value . For small define the perturbed control

a brief spike to on an interval of length , admissible because . Let be the resulting trajectory. Before the trajectory is unchanged. Across the spike, the state at shifts by

since on the dynamics integrate instead of and the integrand is continuous at the Lebesgue point. The vector is the spike direction.

For the controls agree again, so the deviation propagates by the variational equation obtained by linearising about the optimal trajectory:

This is a linear ODE; write its state-transition matrix as , so for .

Optimality requires for all small , hence the first-order change in cost is non-negative:

where the explicit spike contributes the running-cost difference over the length- interval.

Now introduce the costate defined as the solution of the adjoint equation with . The key identity is that accumulates exactly the integrated running-cost sensitivity: differentiating,

Integrating from to and using ,

So the entire downstream cost sensitivity collapses to the instantaneous inner product . The inequality becomes

which is exactly . Since was arbitrary and ranges over the full-measure set of Lebesgue points, minimises over for almost every .

Bridge. This needle-variation identity builds toward the Advanced results, where the same costate-pairing argument yields the constancy of the Hamiltonian along autonomous optimal trajectories and the transversality conditions for free terminal time, and it appears again in the linear-quadratic specialisation, where the adjoint equation and the dynamics together form the Hamiltonian system whose stable invariant subspace produces the Riccati matrix of 44.07.02. The foundational reason the principle generalises the Euler-Lagrange equations of 09.02.02 is visible in the proof: when is open and interior, the pointwise minimisation reduces to , which combined with the adjoint equation reproduces under the identification , . This is exactly the move from interior stationarity to boundary minimisation; the costate is dual to the variational multiplier, and putting these together, the bridge is the recognition that Euler-Lagrange handles unconstrained interior optima while Pontryagin handles the constrained boundary case by replacing a derivative-zero condition with a genuine minimisation over the admissible set.

Exercises Intermediate+

Advanced results Master

Theorem (constancy of the Hamiltonian; Pontryagin et al. Ch. 2 [source pending]). For an autonomous problem (, independent of ), along any extremal the value is constant in . If in addition the terminal time is free with autonomous terminal cost, that constant is zero.

The constancy is the optimal-control image of energy conservation for autonomous Lagrangian systems 09.02.02: the Hamiltonian plays the role of the conserved energy function , and the costate plays the role of the conjugate momentum. The free-time condition pins the otherwise-undetermined level set, fixing the duration through the requirement that the marginal value of one more instant of motion be zero.

Theorem (transversality on a terminal manifold; Pontryagin et al. Ch. 2 [source pending]; Liberzon Ch. 4 [source pending]). If the terminal state is constrained to a smooth manifold rather than fixed or free, then the costate satisfies , i.e. is a linear combination of the rows of at . The free-endpoint and fixed-endpoint conditions are the extremes: gives , and leaves entirely free. Transversality is the boundary bookkeeping that closes the two-point boundary-value problem formed by the forward state equation and the backward adjoint equation.

Theorem (normal/abnormal form and the multiplier ; Clarke Ch. 22 [source pending]). In full generality the maximum principle carries a scalar multiplier on the running cost, with the Hamiltonian , and the nontriviality condition for all . The normal case permits the normalisation (or in the minimisation convention) and recovers the cost-bearing Hamiltonian above; the abnormal case produces extremals determined purely by the constraint and endpoint geometry, independent of . Abnormal extremals are not pathological curiosities: they arise in sub-Riemannian geometry and in problems where the attainable set has empty interior at the endpoint, and ignoring the abnormal branch can miss genuine minimisers.

Theorem (sufficiency via the HJB value function). Suppose is a solution of the Hamilton-Jacobi-Bellman equation with , and let achieve the minimum with corresponding trajectory . Then is optimal, and is a costate satisfying the maximum principle. The HJB equation is the sufficient counterpart to the necessary maximum principle: where Pontryagin gives conditions every optimum must satisfy, dynamic programming gives a verification certificate. The costate is the gradient of the value function, , which is the precise sense in which the price tag of the Beginner intuition is a marginal value.

Synthesis. Pontryagin's principle is one object — an optimal control minimises the Hamiltonian pointwise over the admissible set while the costate runs backward along — and every face of the classical theory falls out of it. This is exactly why the principle generalises the Euler-Lagrange equations of 09.02.02: when is open and the optimum interior, pointwise minimisation collapses to , the costate becomes the conjugate momentum, and the adjoint equation becomes . The foundational reason the two theories diverge is that Euler-Lagrange tests a stationary flat spot while Pontryagin tests a genuine minimum, and only the latter survives when the optimum is pinned to a constraint boundary, producing bang-bang control. The central insight is that the needle variation localises the entire downstream cost sensitivity into the single inner product , collapsing an infinite-dimensional search over control functions into an instant-by-instant minimisation refereed by the costate. Putting these together, the costate is dual to the value-function gradient of dynamic programming, which is the bridge from the necessary maximum principle to the sufficient HJB equation; the linear-quadratic case makes this explicit, where the state-costate Hamiltonian system carries the matrix whose stable invariant subspace is the Riccati matrix of 44.07.02.

Full proof set Master

Proposition 1 (needle variation reduces optimality to pointwise Hamiltonian minimisation). Under the smoothness hypotheses, an optimal control minimises over for almost every , where solves the adjoint equation with terminal condition .

Proof. This is the Key theorem. A spike of value on at a Lebesgue point creates the first-order state shift with ; the deviation propagates by the variational equation . The costate makes , so integrating collapses the downstream cost sensitivity to . Non-negativity of the first-order cost change gives for every .

Proposition 2 (the costate identity). Along the optimal trajectory, for the deviation solving the variational equation with , .

Proof. Differentiate : with and , the terms cancel and . Integrate from to : . Substituting and rearranging gives the identity.

Proposition 3 (constancy of the Hamiltonian, autonomous case). If and do not depend on , then is constant.

Proof. On any open subinterval where is continuous, (no explicit ). The canonical relations , cancel the first two: . At an interior minimiser ; at a boundary minimiser on a smooth arc is constant so . Thus on each arc. At a switching instant the function is continuous because the pointwise minimum value is continuous in (state and costate are continuous, fixed). A continuous function constant on each arc of a partition into finitely or countably many arcs is globally constant.

Proposition 4 (free-time condition). If the terminal time is free and is autonomous, then .

Proof. Compare the optimum on with the trajectory continued under to . The terminal cost changes to first order by and the running integral by , totalling . Since is free, takes either sign and optimality forces this first-order change to vanish, so the Hamiltonian is zero at ; by Proposition 3 it is zero throughout.

Proposition 5 (Euler-Lagrange as the open-set interior special case). For , , and an interior optimum, the maximum principle is equivalent to the Euler-Lagrange equation with .

Proof. Interior minimisation of gives , so . With , , so the adjoint equation is . Differentiating the costate identification, , and equating, . Under , this is the Euler-Lagrange equation. Conversely, any Euler-Lagrange solution defines satisfying both the adjoint equation and interior stationarity, hence the maximum principle for the unconstrained problem.

Connections Master

The maximum principle is the constrained-control generalisation of the Euler-Lagrange equations of 09.02.02: when the constraint set is open and the optimum is interior, pointwise Hamiltonian minimisation reduces to , the costate becomes the conjugate momentum , and the adjoint equation becomes the Euler-Lagrange equation, so Euler-Lagrange is exactly the interior-stationary special case while Pontryagin handles bounded controls whose optima live on the boundary.

The principle rests on and extends the direct method of the calculus of variations of 02.18.04: where the direct method establishes existence of a minimiser by compactness and lower-semicontinuity arguments over a function space, the maximum principle supplies the necessary conditions that any such minimiser must satisfy, and the needle-variation proof is the control-theoretic refinement of the variational (first-variation) argument that the direct method's existence guarantee makes nonvacuous.

The maximum principle produces bang-bang controls whenever the Hamiltonian is affine in the control over a box constraint, the subject of the downstream unit on bang-bang and singular controls (44.07.03): the switching function is the control-coefficient of , its sign determines the extreme-value control, and singular arcs occur where the switching function vanishes on an interval, the degenerate case the bang-bang theory must separately resolve.

The maximum principle is the necessary-condition counterpart of the Hamilton-Jacobi-Bellman equation and dynamic programming (44.07.04): HJB gives a sufficient verification via the value function , the costate is the value gradient evaluated along the optimal trajectory, and the two theories are dual readings of the same optimal-control problem — Pontryagin from the trajectory side, Bellman from the value side.

The linear-quadratic regulator of 44.07.02 is the maximum principle's most important solvable instance: the state-costate pair satisfies the Hamiltonian system with matrix \mathcal H = \begin{psmallmatrix}A & -BR^{-1}B^{\mathsf T}\\ -Q & -A^{\mathsf T}\end{psmallmatrix}, the ansatz converts the linear two-point boundary-value problem into the Riccati equation, and the stable invariant subspace of that produces the stabilising Riccati solution is exactly the optimal state-costate subspace selected by the maximum principle.

Historical & philosophical context Master

The maximum principle was formulated by Lev Pontryagin and his students Vladimir Boltyanskii, Revaz Gamkrelidze, and Evgenii Mishchenko at the Steklov Institute in the mid-1950s, motivated by problems of optimal trajectories for aircraft and rockets where the controls were physically bounded and the classical calculus of variations, built for interior optima, did not apply. The decisive new element was the replacement of the Euler-Lagrange stationarity condition by a pointwise maximisation of the Hamiltonian over a constraint set, proved by the needle-variation (spike-variation) technique that perturbs the control on a vanishingly short interval [Pontryagin 1962]. Boltyanskii is generally credited with the proof and with isolating the role of the abnormal multiplier; the priority among the collaborators was a point of later dispute.

The principle stood beside Richard Bellman's dynamic programming, developed contemporaneously in the United States, as the second pillar of modern optimal control; Bellman's Hamilton-Jacobi-Bellman equation provides the sufficient, value-function side that complements Pontryagin's necessary, trajectory side [Bellman 1957]. The relation between the costate and the gradient of the value function — the precise statement that along the optimum — was clarified through the 1960s and is the bridge between the two theories. The modern, fully rigorous treatment encompassing nonsmooth data, the abnormal case, and the role of measurable selections is due to a line of work running through Hestenes, Berkovitz, and Clarke, the last of whom recast the principle in the language of nonsmooth analysis and generalised gradients [Clarke 1983].

Bibliography Master

@book{Pontryagin1962,
  author    = {Pontryagin, Lev S. and Boltyanskii, Vladimir G. and Gamkrelidze, Revaz V. and Mishchenko, Evgenii F.},
  title     = {The Mathematical Theory of Optimal Processes},
  publisher = {Interscience Publishers (Wiley)},
  address   = {New York},
  year      = {1962},
  note      = {English translation by K. N. Trirogoff of the 1961 Russian original}
}

@book{Liberzon2012,
  author    = {Liberzon, Daniel},
  title     = {Calculus of Variations and Optimal Control Theory: A Concise Introduction},
  publisher = {Princeton University Press},
  address   = {Princeton, NJ},
  year      = {2012}
}

@book{Bertsekas2017DPv1,
  author    = {Bertsekas, Dimitri P.},
  title     = {Dynamic Programming and Optimal Control, Volume I},
  edition   = {4th},
  publisher = {Athena Scientific},
  address   = {Belmont, MA},
  year      = {2017}
}

@book{Bellman1957DP,
  author    = {Bellman, Richard E.},
  title     = {Dynamic Programming},
  publisher = {Princeton University Press},
  address   = {Princeton, NJ},
  year      = {1957}
}

@book{Clarke1983,
  author    = {Clarke, Frank H.},
  title     = {Optimization and Nonsmooth Analysis},
  publisher = {Wiley-Interscience},
  address   = {New York},
  year      = {1983}
}

@book{Clarke2013,
  author    = {Clarke, Frank H.},
  title     = {Functional Analysis, Calculus of Variations and Optimal Control},
  series    = {Graduate Texts in Mathematics},
  volume    = {264},
  publisher = {Springer},
  address   = {London},
  year      = {2013}
}

@book{AthansFalb1966,
  author    = {Athans, Michael and Falb, Peter L.},
  title     = {Optimal Control: An Introduction to the Theory and Its Applications},
  publisher = {McGraw-Hill},
  address   = {New York},
  year      = {1966}
}

@article{Boltyanskii1960,
  author  = {Boltyanskii, Vladimir G. and Gamkrelidze, Revaz V. and Pontryagin, Lev S.},
  title   = {The Theory of Optimal Processes. I. The Maximum Principle},
  journal = {Izvestiya Akademii Nauk SSSR, Seriya Matematicheskaya},
  volume  = {24},
  year    = {1960},
  pages   = {3--42}
}