- Introduced by
- Lev Pontryagin
- Year
- 1962
- Type
- algorithm
- Family
- Optimal Control
What does it do?
The Pontryagin Maximum Principle (PMP) is a theorem in optimal control theory that gives necessary conditions which any optimal control trajectory must satisfy.
It is associated with Lev Pontryagin and the 1962 monograph *The Mathematical Theory of Optimal Processes* (see the citation on this page). PMP extends the variational approach to problems in which the controls are constrained, which is why it is a common reference point for trajectory optimisation in engineering.
The intuition behind the method
PMP introduces costate variables λ, one per state, and the Hamiltonian H(x, u, λ) = L(x, u) + λ^T f(x, u), where L is the running cost and f the system dynamics. Along an optimal trajectory the state and costate satisfy x_dot = ∂H/∂λ and λ_dot = −∂H/∂x. For a cost to be minimised with this H, the control minimises H pointwise in time. Pontryagin's original statement is written in maximisation form, which corresponds to a different sign convention for H or the cost, so the convention must be fixed before the control condition is applied. The conditions turn an optimisation over control functions into a two-point boundary-value problem for x and λ, which is usually solved numerically. Dynamic programming addresses the same class of problems through a value function over the state space, whereas PMP characterises individual candidate trajectories.
History
The principle was developed by Lev Pontryagin and collaborators and is presented in the 1962 monograph *The Mathematical Theory of Optimal Processes* listed in the citation. It extends the classical calculus of variations to control problems with constraints. Its consequences for feedback control are discussed in comparison with dynamic programming on the related pages.
When to use it
Choose PMP for continuous-time problems with differentiable dynamics and cost, where the control is constrained and the goal is an optimal open-loop trajectory, for example in minimum-time or minimum-effort transfers. The basic statement assumes smooth dynamics and running cost, an admissible control set stated in advance, and either a fixed or a free final time. It is also suited to problems where the structure of the optimal control (switching or bang-bang arcs) is of interest. Do not choose PMP when a feedback law over the whole state space is needed, since it yields individual trajectories rather than a feedback map; dynamic programming or the Hamilton–Jacobi–Bellman approach addresses that case. Avoid it when the dynamics or cost are strongly non-smooth, when decisions are discrete, or when a solution is needed in real time, where receding-horizon methods are more appropriate.
Limitations and considerations
- PMP is necessary but not sufficient: an extremal that satisfies it may be a local optimum or not optimal at all.
- The resulting two-point boundary-value problem is numerically demanding; shooting methods depend strongly on the initial guess for the costate.
- Where H does not determine the control (singular arcs), the principle alone does not specify the control and higher-order analysis is needed.
- The standard conditions assume differentiable dynamics and cost; non-smooth problems require generalised versions of the conditions.
- The principle produces open-loop trajectories for a given initial state, so a feedback implementation needs additional design.
- The basic statement assumes no pure state constraints; such problems require the extended form of the principle, with additional multipliers and jump conditions at points of contact with the constraint.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- PMP gives necessary conditions that any optimal control must satisfy, so it can exclude many candidate controls and reduce the search to extremal trajectories.
- The principle accommodates bounded or otherwise constrained controls directly through the pointwise optimisation of H, which the classical calculus of variations does not treat in the same way.
- When H is linear in the control over a bounded set, the optimal control is often bang-bang, which gives a concrete structural description of the solution.
- The costate has a clear meaning as the sensitivity of the optimal cost to the state, which helps interpret the solution.
- The principle applies directly to minimum-time problems, where the running cost is constant.
Applications
- Aerospace: trajectory optimisation for spacecraft transfers and landing, where minimum-time or minimum-fuel objectives are common.
- Robotics: time-optimal motion of manipulators or vehicles with bounded actuator inputs.
- Process engineering: optimisation of batch or continuous operations with bounded manipulated variables.
- Energy systems: continuous-time optimal dispatch problems with control limits.
- Vehicle control: fuel- or time-efficient trajectory planning under bounded control inputs.
How it works
How it works
Define the state x, the control u and its admissible set, the dynamics x_dot = f(x, u), and the cost J = ∫L(x, u)dt + V(x(T)), together with any initial, terminal or path constraints.
Introduce a costate λ with one component per state and form the Hamiltonian H = L + λ^T f. Before using the control condition, confirm the sign convention (minimisation or maximisation) that matches the cost being used.
Solve the two-point boundary-value problem x_dot = ∂H/∂λ and λ_dot = −∂H/∂x. For a cost to be minimised, choose the control to minimise H at each time over the admissible set (under the opposite convention, maximise H), subject to the initial condition on x and the transversality condition on λ at the final time. For a fixed final time, λ(T) equals the gradient of the terminal cost V with respect to x(T). For a free final time with autonomous dynamics, H equals zero at the final time.
Check the candidate extremals against the further necessary conditions that apply to the problem, such as the Legendre–Clebsch condition on the regular arcs, and compare candidates. Satisfying the principle does not by itself establish global optimality.
Common pitfalls
- Treating a trajectory that satisfies PMP as globally optimal; it is only a candidate and must be compared with other extremals.
- Mixing sign conventions: applying a maximisation condition to a cost that is minimised (or the reverse) yields a trajectory that is not optimal.
- Ignoring singular arcs, where the control is not determined by H, and assuming the extremum condition always gives a unique control.
- Using a naive shooting solver with a poor costate guess, which often fails to converge on this boundary-value problem.
- Applying PMP to a real-time control task; PMP gives offline trajectories, and online use requires a different method such as model predictive control.
Frequently asked questions
What are costate variables λ and what is their physical meaning?
Costates are multipliers associated with the state dynamics. For an optimal trajectory, λ_i(t) equals the partial derivative of the optimal cost-to-go with respect to state x_i at time t, so it measures how sensitive the optimal cost is to a small change in that state. At the final time, the transversality condition sets λ(T) equal to the gradient of the terminal cost V with respect to x(T). In that sense, costates act as shadow prices for the state.
How does PMP relate to dynamic programming?
Both approaches address optimal control. Dynamic programming, via the Hamilton–Jacobi–Bellman equation, characterises the optimal cost over the whole state space and yields a feedback law. PMP gives necessary conditions along individual trajectories, using the costate as the gradient of the cost. PMP is typically used to compute open-loop trajectories, while dynamic programming provides a feedback structure.
Related methods
Sources
Pontryagin, L. S., Boltyanskii, V. G., Gamkrelidze, R. V., & Mischenko, E. F. (1962). The Mathematical Theory of Optimal Processes. John Wiley & Sons.
Open publication reference