Hamiltonian Conservation, Minimum-Time Control, and Bang–Bang Solutions
This section develops several important consequences of the Hamiltonian formulation and applies Pontryagin’s Minimum Principle to a classic bounded-control problem.
The main topics are:
the evolution of the Hamiltonian along an optimal trajectory;
conditions under which the Hamiltonian is constant;
conditions under which the optimal Hamiltonian is identically zero;
the minimum-time double-integrator problem;
bang–bang control;
switching functions and switching times;
state-space switching curves; and
an introduction to singular arcs.
Hamiltonian Evolution Along an Optimal Trajectory¶
Consider the Hamiltonian
Suppose the optimal control has been obtained in feedback form:
After substitution, the optimal Hamiltonian can be viewed as
The canonical equations are
For clarity, write the scalar components as
The total derivative of the Hamiltonian is
Substituting the canonical equations gives
Therefore,
When Is the Hamiltonian Constant?¶
If the Hamiltonian has no explicit time dependence,
then
Hence,
This result does not require that the state or costate be constant. Their contributions cancel through the canonical equations.
When Is the Optimal Hamiltonian Zero?¶
The statement
requires more than a free final time.
For a problem with endpoint cost
and endpoint constraints
the final-time transversality condition is
If:
the Hamiltonian has no explicit time dependence;
the final time is free;
the terminal cost has no explicit dependence on ; and
the terminal constraints have no explicit dependence on ,
then
Since is constant,
Minimum-Time Double-Integrator Problem¶
Consider a point mass subject to a bounded force. After normalization, the dynamics are
with
Define the state variables
Then
The boundary conditions are
The goal is to minimize transfer time:
Equivalently,
The admissible control set is
Hamiltonian for the Minimum-Time Problem¶
Using the integral representation of time, the Hamiltonian is
Some sign conventions absorb the constant 1 differently, but the control-dependent term is always
Because the system is autonomous and the final time is free with no explicit terminal-time dependence,
Why Stationarity Does Not Determine the Control¶
The stationarity derivative is
This derivative does not contain . Therefore, the interior stationarity equation
does not provide an explicit formula for the optimal control.
This is expected because the Hamiltonian is linear in , so its minimum over a closed interval generally occurs at one of the bounds.
Pontryagin’s Minimum Principle¶
The optimal control satisfies
Since only the term depends on ,
Hence,
Equivalently,
whenever .
The switching function is
Costate Dynamics¶
The costate equations are
Thus,
where is constant.
Integrating the second equation gives
Therefore, is an affine function of time.
Number of Possible Switches¶
Because is a straight line, it can cross zero at most once unless it is identically zero.
Therefore, the optimal control can have at most one switching time.
The only possible control structures are:
;
;
switches from +1 to -1; or
switches from -1 to +1.
Excluding an Identically Zero Switching Function¶
If
on an interval, then
so
This would imply
Such a trivial multiplier violates the nontriviality condition of Pontryagin’s Minimum Principle. Therefore, the switching function cannot vanish identically on an interval for this problem.
Hence, no singular arc is present in the minimum-time double integrator.
State Trajectories Along Constant-Control Arcs¶
Let
Then
Integrating from an initial point gives
Eliminate time using
Since ,
Thus, constant-control trajectories are parabolas in the phase plane.
Switching Curves Through the Origin¶
For a trajectory that reaches the origin under a constant control , set
in (47). The initial point on such a terminal arc must satisfy
Hence,
Equivalently, the two switching curves are
A common compact representation is
This curve separates regions of the state space associated with different initial control actions.
State-Space Interpretation¶
If the initial point lies directly on a terminal switching curve, the origin can be reached using a single constant control.
Otherwise:
apply one extreme control to move toward the appropriate switching curve;
switch control when the trajectory reaches the curve; and
apply the opposite extreme control until the state reaches the origin.
Figure 1:Switching curves for the minimum-time double integrator separate the terminal arcs associated with the two extreme controls.
Piecewise State Solution with One Switch¶
Suppose the control switches from -1 to +1 at .
For ,
Define
For ,
For the reverse switch, from +1 to -1, the signs reverse:
followed by
Computing the Switching Time¶
The switching time is determined by enforcing the terminal conditions:
For a specified initial condition, one selects the switching sequence consistent with the phase-plane region and solves the resulting algebraic equations for and .
An equivalent geometric procedure is:
identify the constant-control parabola passing through the initial state;
determine its intersection with the appropriate terminal switching curve;
use that intersection as the switching point; and
compute the travel time along both arcs.
Why Minimum-Time Problems Favor Extreme Controls¶
If the control enters the dynamics linearly and the cost penalizes only elapsed time, reducing the magnitude of the control generally delays arrival.
Pontryagin’s Minimum Principle formalizes this intuition. Since the Hamiltonian is linear in , minimizing it over a bounded interval selects one of the endpoints.
Thus,
almost everywhere, except possibly at switching times or on singular arcs.
Higher-Order Integrator Systems¶
For the th-order integrator
the costate components become higher-degree polynomials in time.
Therefore, the switching function can possess more zeros, and the optimal control can switch more than once.
The double integrator is especially simple because its switching function is affine in time and therefore has at most one zero.
Singular Arcs¶
A singular arc occurs when the switching function vanishes over a nonzero interval:
for all in that interval.
On a singular arc, direct Hamiltonian minimization does not determine the control. One must differentiate the switching function until the control appears explicitly:
The resulting conditions may produce a singular control law.
Singular arcs are common in:
chemical-process control;
bioreactor optimization;
aerospace trajectory optimization;
energy-management problems; and
systems with one-sided actuation.
One-Sided and Two-Sided Control¶
Mechanical systems often admit two-sided control:
Examples include positive and negative torque, force, or acceleration.
Many process systems instead admit one-sided control:
For example, material can be added to a reactor but may not be removable through the same control channel.
One-sided control can create asymmetric switching structures and often increases the likelihood of boundary and singular arcs.
Common Errors¶
Claiming that a free final time always implies .
Omitting the running-cost term 1 from a minimum-time Hamiltonian without explaining the adopted convention.
Applying to a Hamiltonian that is linear in a bounded control.
Ignoring the admissible control interval in Hamiltonian minimization.
Reversing the sign of the bang–bang law.
Assuming that at an isolated switch implies a singular arc.
Treating a switching curve as a state trajectory valid for every control.
Forgetting continuity of the state at the switching time.
Summary¶
The main conclusions are:
Along an optimal trajectory,
If the Hamiltonian has no explicit time dependence, it is constant.
If the final time is free and the endpoint terms have no explicit final-time dependence, then the constant Hamiltonian is zero.
The minimum-time double integrator has a Hamiltonian linear in the bounded control.
Stationarity does not determine the optimal control in this problem.
Pontryagin’s Minimum Principle yields
The switching function is affine in time and can cross zero at most once.
The optimal control is bang–bang with at most one switch.
Constant-control trajectories are parabolas in the phase plane.
Singular arcs require separate higher-order analysis but do not occur in the standard minimum-time double integrator.
Connection. Before treating more delicate switching behavior, it is useful to unify the common Bolza, Mayer, and Lagrange formulations and clarify minimum-time conventions.