44.07.03 · optimization-control / optimal-control-pontryagin

Bang-Bang and Minimum-Time Optimal Control

shipped3 tiersLean: none

Anchor (Master): Pontryagin, Boltyanskii, Gamkrelidze & Mishchenko 1962 The Mathematical Theory of Optimal Processes (Interscience/Wiley) Ch. 2-3 (the maximum principle for time-optimal linear systems, the bang-bang theorem, the number of switches bounded by the eigenvalue structure, the harmonic-oscillator example); Hermes & LaSalle 1969 Functional Analysis and Time Optimal Control (Academic Press) Ch. 2-4 (existence via Filippov, the bang-bang principle as an extreme-point/Lyapunov-convexity statement, normality and uniqueness); Athans & Falb 1966 Optimal Control (McGraw-Hill) Ch. 7 (synthesis of the time-optimal feedback and the switching curve)

Intuition Beginner

Picture a toy car on a straight track, and your job is to get it to a marked spot and stop there in the least possible time. The only controls you have are the gas and the brake, and both are all-or-nothing: you can push the car forward at full force, or push it backward at full force, but there is no gentle in-between. The question is when to switch from one to the other.

The answer is wonderfully blunt. To reach the spot fastest, you slam the car forward at full force for a while, then at exactly the right moment you slam it backward at full force to kill the speed, arriving at the spot just as you come to rest. One hard push, one hard brake, and a single switch between them. Any plan that eases off the pedal partway wastes time, because half-force never beats full-force when the clock is running.

This all-or-nothing, switch-once behaviour has a name: bang-bang control. The "bang" is the control pinned to its hardest setting; the two bangs are the two extremes, full forward and full backward.

The reason it happens is the same one behind every constrained optimal-control problem. When the cost grows steadily with the control and the control is capped, the best setting is always pinned to an edge of what is allowed, never in the soft middle. The only real decision left is the timing of the flip.

Visual Beginner

The picture is the time-optimal trip for the toy car, shown as the two phases and the single instant where the control flips.

Read the table top to bottom as the story of one fastest trip. The control is at one extreme, then flips once to the other extreme. The flip happens at the switching time, the single moment the whole plan turns on. Before it, you are speeding up toward the target; after it, you are braking so as to arrive exactly at rest.

phase control setting what the car does
phase 1 full force toward the target builds up speed
switch the control flips, all at once the single decision
phase 2 full force the opposite way brakes to a stop at the target

The takeaway: a hard-looking question — out of all possible driving plans, which is fastest? — collapses to a single number, the time at which you flip from full-forward to full-backward. Bang-bang control turns planning a whole trip into choosing one switching instant.

Worked example Beginner

Take the cart-on-a-track problem with numbers. The cart has a position and a speed. Pushing the cart changes its speed: the push is capped between and , and the speed changes at the rate . The position changes at the rate of the current speed. The cart starts at position , at rest (speed ), and we want to bring it to the origin, at rest, in the least time.

Step 1. Decide the first push. The cart is to the left of the target and not moving, so we push right: . The speed climbs from , and the cart moves right, gaining ground toward the origin.

Step 2. Recognise we must brake. If we kept pushing right, the cart would overshoot the origin with speed to spare. So at some moment we flip to to bleed off speed and arrive at rest.

Step 3. Use symmetry to find the flip. Pushing right then braking left with equal force is symmetric: the speeding-up phase and the slowing-down phase take equal time. Call each phase length . During phase 1 the speed reaches , and the distance covered is . During phase 2 the cart covers another while the speed falls back to .

Step 4. Match the distance. The total distance is (from to ): , so . The flip happens at time .

Step 5. Total time. Two phases of length give a total time .

What this tells us: the fastest plan is until time , then until time , arriving at the origin at rest. One switch, two extremes. The whole solution is the single switching time .

Check your understanding Beginner

Formal definition Intermediate+

Consider the linear control system of 02.06.03, with state , control , , , and the control constrained to the cube

Admissible controls are measurable functions . The columns of are written .

Definition (minimum-time problem). Given an initial state and a target (often the origin), minimise the terminal time

over all admissible controls steering to along . The running cost is and the terminal time is free.

Definition (control Hamiltonian and costate). Following 44.07.01 with , , the Hamiltonian (minimisation convention) is

with costate obeying the adjoint equation . The adjoint is the linear ODE , so in the matrix-exponential form of 02.06.03.

Definition (switching function). The switching function is the vector

the costate-projected coefficient of the control in . The Hamiltonian's -dependence is the single term .

Definition (bang-bang control). A control is bang-bang on if for almost every each component equals or , i.e. takes values at the vertices of the cube . The pointwise minimisation of over — minimising over — separates by component and gives

A switch of component is a sign change of ; the control flips between and there.

Definition (singular arc; normality). Component has a singular arc on a subinterval where , since then the minimisation does not determine . The single-input pair is normal when has only isolated zeros for every ; equivalently the controllability matrix has full rank (the Kalman controllability condition of 02.06.03's reachability circle). Under normality there are no singular arcs and the bang-bang control is determined almost everywhere.

Notation: are the system matrices, the columns of ; the control cube; the costate; the switching function; the bang-bang control; the adjoint state-transition matrix; the scalar sign function.

Counterexamples to common slips

  • Bang-bang is not the same as "few switches." The bang-bang property — control at the cube vertices almost everywhere — holds for every normal time-optimal problem, but the number of switches is bounded only under extra spectral structure. If has complex eigenvalues (an oscillator), the switching function is a damped or undamped sinusoid and the control can switch arbitrarily many times as the horizon grows; the at-most- bound needs to have only real eigenvalues.

  • Normality is a genuine hypothesis, not a formality. Without controllability of the switching function can vanish on an interval, producing a singular arc where the maximum principle leaves undetermined; the time-optimal control may then fail to be bang-bang or fail to be unique. Asserting bang-bang for an uncontrollable single-input system is the typical error.

  • The switching function lives on the costate, not the state. Writing the switch condition in terms of the state confuses the synthesis (the switching curve in state space) with the necessary condition (the sign of ). The switching curve is derived afterward by eliminating the costate, and only for low-dimensional, explicitly solvable cases.

Key theorem with proof Intermediate+

Theorem (bang-bang principle and the time-optimal double integrator; Pontryagin et al. Ch. 2-3 [source pending]; Athans-Falb Ch. 6-7 [source pending]). For the minimum-time problem , , with free terminal time and the maximum principle of 44.07.01, the optimal control satisfies with and ; in particular is bang-bang wherever each is nonzero. For the double integrator , , , steering to the origin, the switching function is affine in , so the time-optimal control switches at most once, taking the values , and the loci of single-switch trajectories assemble into the parabolic switching curve .

Proof. By the maximum principle, the optimal control minimises over for almost every . The only -dependent term is , a linear functional of that separates across components. Minimising over sends to when and to when , i.e. wherever . The adjoint equation has solution , so is an analytic (indeed exponential-polynomial) function of ; under normality its zeros are isolated and the bang-bang control is determined almost everywhere. This proves the first claim.

For the double integrator, A = \begin{psmallmatrix} 0 & 1 \\ 0 & 0\end{psmallmatrix}, b = \begin{psmallmatrix} 0 \\ 1\end{psmallmatrix}. The adjoint equations are and , so constant and , affine in . The switching function is , affine in , hence with at most one zero. Therefore switches at most once, taking values . The pair is controllable ([\,b\ Ab\,] = \begin{psmallmatrix} 0 & 1 \\ 1 & 0\end{psmallmatrix} has rank ), so the problem is normal and no singular arc occurs.

To assemble the switching curve, integrate a single constant-control arc. With , gives , and gives . Eliminating via and using yields the family of parabolas , opening in opposite directions for and . The two arcs that pass through the origin are the half-parabolas : the arc with arriving from and the arc with arriving from . Their union is the switching curve

the locus from which a single final constant-control arc reaches the origin at rest.

Bridge. This sign-of-the-switching-function argument builds toward the Advanced results, where the same costate-projection governs the switch-count bound under real-eigenvalue structure and the harmonic-oscillator example whose sinusoidal produces periodically spaced switches, and it appears again in the synthesis section, where the switching curve becomes a state-feedback law. The foundational reason the minimum-time control is bang-bang is exactly the linearity of in over a polytope: the minimiser of a linear functional on a polytope is attained at a vertex, which is the central insight that this unit shares with linear programming and which generalises the scalar of 44.07.01 to the cube. The switching function is dual to the reachable-set support functional, and putting these together, the bridge is the recognition that minimum-time control replaces the smooth interior optimisation of the linear-quadratic regulator of 44.07.02 — where is quadratic in and the optimum is interior, giving smooth feedback — with a boundary optimisation whose optimum is a cube vertex, giving discontinuous bang-bang feedback.

Exercises Intermediate+

Advanced results Master

Theorem (existence of time-optimal controls, Filippov; Hermes-LaSalle Ch. 2 [source pending]). Let with , compact and convex, and suppose the target is reachable from by some admissible control. Then a time-optimal control exists. The argument is the compactness of the attainable set: for fixed the reachable set is convex (the control set is convex and the dynamics enter linearly) and compact (a continuous image of the weak- compact set of admissible controls), and is continuous, so the infimal time at which is attained. Convexity of is what makes closed; for nonconvex one must pass to the closed convex hull, which is the relaxation that the bang-bang principle then shows loses nothing.

Theorem (bang-bang principle via Lyapunov convexity; Hermes-LaSalle Ch. 3 [source pending]). The attainable set of bang-bang controls (valued at the vertices of the cube ) equals the attainable set of all admissible controls valued in . Consequently every point reachable in time is reachable in time by a bang-bang control. The mechanism is Lyapunov's theorem on the range of a nonatomic vector-valued measure: the map has the same range over bang-bang controls as over all -valued controls because the range of a nonatomic vector measure is convex and compact, and its extreme points are images of extreme-valued (vertex) integrands. This is the deep reason the time-optimal control may be taken bang-bang even when uniqueness fails, and it is independent of the maximum principle: it is a measure-theoretic convexity statement about the reachable set.

Theorem (number of switches; Pontryagin et al. Ch. 3 [source pending]). For a normal single-input system , , with having only real eigenvalues, the time-optimal control switches at most times. If has a complex-conjugate pair of eigenvalues , the switching function carries a factor whose zeros are infinite in number and spaced apart, so the switch count is unbounded as the horizon grows. The real-eigenvalue bound is the Pólya–Descartes zero bound for exponential polynomials applied to , which has at most exponential-monomial terms and hence at most real zeros. For the harmonic oscillator (, , ) the switching loci are translated half-circles in the phase plane, and the time-optimal synthesis is a sequence of semicircular arcs joined at switches spaced apart.

Theorem (normality and uniqueness; Athans-Falb Ch. 6 [source pending]; Hermes-LaSalle Ch. 4 [source pending]). If is controllable for each input column (the system is normal), then for every reachable target the time-optimal control is unique and bang-bang almost everywhere, with no singular arcs. Conversely, loss of controllability of some permits a switching component to vanish on an interval, creating a singular arc on which the maximum principle does not determine . Normality is the precise hypothesis separating the clean bang-bang regime from the singular regime; on a singular arc the order of the singularity (the first time-derivative of in which appears explicitly) and the generalised Legendre–Clebsch condition determine the singular control, a phenomenon outside the box-vertex picture.

Theorem (feedback synthesis for the double integrator; Athans-Falb Ch. 7 [source pending]). For , , , the time-optimal feedback to the origin is the state-feedback law

with . Above the switching curve the control brakes with until the state hits the curve, then rides the curve to the origin with ; below the curve the roles reverse. This converts the open-loop two-phase plan into a closed-loop law: the controller need not know the elapsed time, only the current state, and the switching curve is the locus where the bang flips. The discontinuity of across the curve is the synthesised image of the costate's sign change.

Synthesis. Minimum-time control is one principle — minimise the linear functional over the control cube, which the maximum principle of 44.07.01 supplies — and every feature of the theory is a reading of that single fact. The central insight is that a linear functional on a polytope is minimised at a vertex, so the time-optimal control is bang-bang, , with the switching function deciding the sign and the eigenstructure of deciding how often it flips. This is exactly why the double integrator switches once while the harmonic oscillator switches forever: is affine for nilpotent and sinusoidal for an imaginary-eigenvalue , and the Pólya–Descartes bound on exponential-polynomial zeros is the foundational reason the real-eigenvalue switch count is capped at . The bang-bang principle generalises beyond the necessary conditions through Lyapunov's convexity theorem, which shows the reachable set of vertex-valued controls already fills the reachable set of all controls — putting these together, existence (Filippov, by compactness of the reachable set), the bang-bang property, and uniqueness (by normality and the supporting-hyperplane costate) are three faces of the convex geometry of the attainable set. The construction is dual to the linear-quadratic regulator of 44.07.02: quadratic cost makes strictly convex in with an interior smooth minimiser and continuous feedback , while time cost makes linear with a vertex minimiser and discontinuous switching-curve feedback, and the bridge is the same Hamiltonian/costate machinery specialised to two running costs.

Full proof set Master

Proposition 1 (bang-bang from linearity). For , , minimum time, the optimal control satisfies with , , wherever .

Proof. This is the Key theorem. The maximum principle minimises over ; the -dependence is the separable linear form , each term minimised over at when . The adjoint gives , so .

Proposition 2 (affine switching function for the double integrator). For , , the switching function is for constants , so there is at most one switch.

Proof. A = \begin{psmallmatrix} 0 & 1 \\ 0 & 0\end{psmallmatrix}, b = \begin{psmallmatrix} 0 \\ 1\end{psmallmatrix}. The adjoint gives , , so and . Then , affine, with at most one zero unless , excluded by the nontriviality of the costate under controllability of .

Proposition 3 (the switching curve). The single-final-arc loci reaching the origin at rest for the double integrator form the curve .

Proof. Integrate backward from the origin: , for . From and , requires , and . The union over both signs is .

Proposition 4 (number of switches under real eigenvalues). If has only real eigenvalues and is controllable, the time-optimal control switches at most times.

Proof. with distinct real and . A nonzero real exponential polynomial has at most real zeros: argue by induction on the number of terms . For , has at most zeros. For the step, divide by (no change in zeros) and differentiate times; this annihilates the first group and yields an exponential polynomial with terms whose zero count, by the inductive hypothesis and Rolle's theorem (each differentiation reduces the zero count by at most one and is bounded below by the next stage's count), gives the bound. Controllability makes , so the zeros are finite and each is a switch.

Proposition 5 (uniqueness under normality). For a normal single-input system, the time-optimal control to a reachable target is unique and bang-bang a.e.

Proof. At the minimal time the target lies on , the boundary of the convex compact attainable set. A supporting hyperplane at the target has outward normal , unique up to positive scaling since the target is an exposed boundary point of a convex set reached at minimal time. Setting and integrating backward, every time-optimal control minimises pointwise, so where . Normality (controllability of ) makes have isolated zeros for every , so is determined a.e. by ; positive rescaling of leaves unchanged, so the control is the same for every supporting normal. Hence the time-optimal control is unique and bang-bang a.e.

Connections Master

The bang-bang principle is the boundary-minimisation face of Pontryagin's maximum principle of 44.07.01: where the general principle states the optimal control minimises the Hamiltonian pointwise over the constraint set, the linear-in-control minimum-time problem makes that minimisation a linear functional on a cube, so the optimum is a vertex and the control is with the costate-projected coefficient, the explicit instance the maximum principle was built to handle.

Minimum-time control is the discontinuous-feedback counterpart of the linear-quadratic regulator of 44.07.02: both ride the same costate dynamics and the same Hamiltonian structure, but the quadratic cost of LQR makes strictly convex in with an interior minimiser and continuous gain , while the time cost makes linear in with a vertex minimiser and a discontinuous switching-curve feedback, so the two units are the convex and the linear specialisations of one Hamiltonian framework.

The switching function and the switch-count bound rest on the matrix-exponential and reachability theory of 02.06.03: the costate solves , the switching function is an exponential polynomial whose zero structure is set by the spectrum of , and normality is exactly the Kalman controllability rank condition on that guarantees isolated switches and a controllable, hence reachable, target.

The existence and bang-bang theorems are convex-geometry statements about the attainable set, linking forward to convex analysis (44.01.01): Filippov existence is the compactness of the reachable set under a convex control constraint, and the bang-bang principle is Lyapunov's theorem that a nonatomic vector measure has convex range with vertex-valued extreme points, so the reachable set of bang-bang controls already equals the reachable set of all controls.

The singular-arc phenomenon forward-links to the broader optimal-control theory of singular controls and the Hamilton-Jacobi-Bellman value function of 44.07.04: when normality fails and on an interval the maximum principle underdetermines the control, and the HJB value function's nonsmoothness across the switching surface is the dynamic-programming image of the bang-bang discontinuity, with the switching curve appearing as the locus where the value gradient changes the sign of .

Historical & philosophical context Master

The bang-bang principle emerged directly from the work of Lev Pontryagin and his collaborators Vladimir Boltyanskii, Revaz Gamkrelidze, and Evgenii Mishchenko at the Steklov Institute in the mid-1950s; the time-optimal control of bounded linear systems was the motivating class of problems, drawn from aircraft and missile guidance, that exposed the inadequacy of the classical calculus of variations and prompted the maximum principle [Pontryagin 1962]. The recognition that the optimal control jumps between extreme values, and that for the double integrator there is a single switch governed by a parabolic switching curve, is worked out in their monograph alongside the harmonic-oscillator example with its periodic switching.

The measure-theoretic foundation — that bang-bang controls reach everything all admissible controls reach — was placed on rigorous footing by Aleksei Lyapunov's 1940 theorem on the convexity of the range of a nonatomic vector measure, and its application to control existence and the bang-bang property was developed by LaSalle, Hermes, and Aleksei Filippov around 1960; Filippov's existence theorem, resting on the closedness of the reachable set under a convex control constraint, became the standard existence tool [Filippov 1962]. The synthesis problem — converting the open-loop optimal control into a state-feedback switching law — and the systematic treatment of the switching function, normality, and the number of switches were consolidated by Michael Athans and Peter Falb in their 1966 text, which remains the canonical engineering reference for time-optimal design [Athans 1966].

Bibliography Master

@book{Pontryagin1962BangBang,
  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{AthansFalb1966BangBang,
  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}
}

@book{HermesLaSalle1969,
  author    = {Hermes, Henry and LaSalle, Joseph P.},
  title     = {Functional Analysis and Time Optimal Control},
  publisher = {Academic Press},
  address   = {New York},
  year      = {1969}
}

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

@article{Filippov1962,
  author  = {Filippov, Aleksei F.},
  title   = {On Certain Questions in the Theory of Optimal Control},
  journal = {SIAM Journal on Control},
  volume  = {1},
  number  = {1},
  year    = {1962},
  pages   = {76--84},
  note    = {English translation of the 1959 Russian original}
}

@article{LaSalle1960,
  author  = {LaSalle, Joseph P.},
  title   = {The Time Optimal Control Problem},
  journal = {Contributions to the Theory of Nonlinear Oscillations},
  volume  = {5},
  publisher = {Princeton University Press},
  year    = {1960},
  pages   = {1--24}
}

@article{Lyapunov1940,
  author  = {Lyapunov, Aleksei A.},
  title   = {Sur les fonctions-vecteurs compl\`etement additives},
  journal = {Izvestiya Akademii Nauk SSSR, Seriya Matematicheskaya},
  volume  = {4},
  year    = {1940},
  pages   = {465--478}
}

@book{LeeMarkus1967,
  author    = {Lee, Ernest B. and Markus, Lawrence},
  title     = {Foundations of Optimal Control Theory},
  publisher = {Wiley},
  address   = {New York},
  year      = {1967}
}