Pontryagin Maximum Principle
The maximum principle as a necessary condition for constrained dynamic optimization: Hamiltonian convention, adjoint dynamics, pointwise maximization, transversality, normal and abnormal extremals, switching functions, singular arcs, and the bridge to HJB.
The Pontryagin maximum principle (PMP) turns an optimization over whole control functions into coupled differential equations plus an instantaneous optimization over the admissible input set. It is powerful precisely because it respects hard input constraints and discontinuous optimal controls. It is a necessary-condition engine, not a global-optimality certificate.
One sign convention, stated once #
Consider the minimization problem
GTK uses the maximum convention
where is the costate and is the cost multiplier. Many books instead define and minimize it. Both conventions are valid; mixing their adjoint, terminal, and optimization signs is not.
The necessary conditions #
For an optimal process , under the theorem's regularity assumptions there exist and an absolutely continuous costate , not both identically zero, such that almost everywhere:
and
The state runs forward from . The costate is constrained at the terminal end. That makes the PMP system a two-point boundary-value problem rather than an ordinary initial-value simulation.
For a free terminal state and terminal cost , this convention gives
If the terminal state must lie on a smooth manifold , then for a multiplier ,
Equivalently, after subtracting the terminal-cost gradient, the costate is normal to the target manifold. If is free,
For an autonomous problem, time-independent terminal cost, and a time-independent target, ; along a smooth autonomous extremal, is constant, so .
Why a costate appears #
The differential constraint couples a control perturbation at one time to the terminal state. The costate propagates the marginal value of that state perturbation backward. Formally, augment the running integrand with
Integration by parts moves the variation of onto . Choosing to cancel every interior term produces the adjoint equation; the surviving endpoint term produces transversality; the remaining first-order control term produces pointwise Hamiltonian optimization.
Needle variations make this argument work even when is bounded and jumps. Instead of requiring a small-amplitude variation, replace by another admissible value on a short interval of width and let .
Control-affine systems and switching functions #
For
the Hamiltonian is
If does not depend on and the scalar input satisfies , define the switching function
Then
whenever . Saturation is not a heuristic here: a nonzero linear functional reaches its maximum over an interval at an endpoint.
For a box ,
For a Euclidean ball ,
Thus a box selects a vertex componentwise, while a ball selects the boundary point aligned with the switching vector.
Singular arcs #
If only at isolated instants, it merely marks switches. If
on an interval, first-order Hamiltonian maximization does not determine . This is a singular arc. Differentiate the switching function along the state-costate dynamics until the control appears:
Solving the first derivative that contains gives a singular candidate. It must also satisfy the input bounds and a higher-order condition such as the generalized Legendre–Clebsch condition. Setting merely because is unjustified.
Normal and abnormal extremals #
If , scale all multipliers so ; the extremal is normal. If , the running and terminal costs disappear from and the necessary conditions depend only on geometry and constraints. Such an abnormal extremal can be real; setting without checking may exclude it.
The nontriviality condition
prevents a vacuous multiplier solution that would satisfy every homogeneous equation.
Necessary does not mean optimal #
A PMP extremal can fail for several reasons:
- it violates a state or endpoint constraint;
- it is a local maximum or saddle of the cost;
- another extremal has lower cost;
- a singular arc violates a higher-order condition;
- the infimum is not attained at all.
For convex problems, PMP plus feasibility can become sufficient. One common sufficient setting has convex , affine dynamics, convex running and terminal costs, and compatible convex endpoint constraints, expressed in the corresponding minimum-Hamiltonian convention.
PMP and HJB are the same geometry locally #
Let be a differentiable value function for the minimization problem. HJB chooses
With this article's maximum convention, set
Then maximizing is exactly the same pointwise choice. Along a smooth optimal trajectory, differentiating recovers the adjoint equation. PMP follows one characteristic through state-costate space; HJB solves for the value over an entire state region. At switching surfaces is often nondifferentiable, which is why the viscosity-solution formulation matters.
Solving a PMP boundary-value problem #
- Fix the formulation and Hamiltonian convention.
- Write state, costate, maximization, and every transversality condition.
- Determine bang, interior, and singular control laws from the maximization.
- Guess unknown initial costates, switching times, and possibly .
- Integrate the state and costate and drive terminal residuals to zero.
- Reject constraint-violating or inconsistent arcs.
- Compare costs and use sufficiency, second variation, or HJB verification where available.
This shooting workflow is numerically sensitive because unstable costate directions amplify an initial guess. Direct transcription and collocation are often more robust computationally, but they discretize the same continuous necessary conditions and should be checked against their residuals and constraints.
Sources
- paperTheory of Optimal Processes. I. The Maximum Principlepdfnotes
- bookCalculus of Variations and Optimal Control Theory: A Concise Introductionpdfnotes
- bookOptimal Control Methods: Lectures 2–6pdfnotes