Path Constraints, Active Sets, and Augmented Hamiltonians
Real optimal-control problems almost always include restrictions that must hold throughout the trajectory. These are called path constraints.
This section develops:
general path-constraint formulations;
conversion of two-sided bounds into standard inequality form;
active and inactive arcs;
multiplier functions;
complementary slackness;
the augmented Hamiltonian;
boundary arcs;
switching structure; and
why path constraints make indirect methods difficult.
General Path Constraints¶
A general path constraint may be written as
The constraint may involve:
only the state;
only the control;
both state and control;
time explicitly; or
nonlinear combinations of all of them.
Examples include:
Two-Sided Bounds¶
Suppose
This can be written as two one-sided inequalities:
Stacking them gives
Thus, one-sided inequality form is sufficient for the theory.
Augmented Cost Functional¶
Consider a Bolza problem:
subject to
and
Introduce the multiplier function for the path constraint.
The augmented integrand becomes
The sign convention used here corresponds to the inequality
Augmented Hamiltonian¶
The ordinary Hamiltonian is
The augmented Hamiltonian is
Equivalently,
All first-order conditions must now be derived from rather than .
Active and Inactive Constraints¶
For a scalar path constraint
there are two possibilities.
Inactive arc¶
If
then the constraint does not affect the optimal solution locally.
Therefore,
Active arc¶
If
then the trajectory lies on the constraint boundary.
The multiplier may be nonzero:
under the sign convention adopted here.
Complementary Slackness¶
The active/inactive structure is summarized by
In vector form:
This is complementary slackness.
Typical Active-Set Structure¶
A path constraint may be inactive, become active, remain active over an interval, and later become inactive.
A typical sequence is
The transition times are unknown and must be solved as part of the problem.
Boundary Arcs¶
On an active state path constraint,
To remain on the boundary, one must also satisfy consistency conditions such as
If the control does not appear, differentiate again:
Continue until the control appears. The resulting condition can determine the boundary control.
This resembles singular-control analysis, but the origin is different:
a singular arc arises from loss of control information in Hamiltonian minimization;
a boundary arc arises because a state or mixed constraint is active.
Modified Costate Dynamics¶
The costate equation becomes
Therefore,
On inactive arcs,
so the ordinary costate equation is recovered.
On active arcs, the multiplier modifies the costate dynamics.
Modified Control Optimality Condition¶
The control must minimize the augmented Hamiltonian:
If an interior stationarity condition applies,
Thus,
Why Path Constraints Complicate Indirect Methods¶
Indirect methods require solving:
state equations;
costate equations;
control optimality conditions;
endpoint conditions;
multiplier conditions;
complementary slackness;
switching times;
boundary-arc equations; and
continuity or jump conditions.
The active set is not known beforehand.
Therefore, the analyst may need to guess:
how many active intervals exist;
where each one begins;
where each one ends; and
which constraints are active on each interval.
A wrong structural guess produces the wrong boundary-value problem.
Constraint Violation During Shooting¶
In a shooting method, an initial costate guess generates a trajectory.
If the trajectory violates
then it is inadmissible.
However, the violation may occur only after integrating for some time. At that point, the method must determine whether to:
reject the trajectory;
introduce a boundary arc;
modify the control;
add an event time; or
restart with a different structural assumption.
This makes indirect path-constrained shooting fragile.
Physical Examples¶
Vehicle motion¶
Aerospace systems¶
Chemical processes¶
Common Errors¶
Treating every path constraint as active everywhere.
Forgetting that inactive constraints have zero multipliers.
Using the ordinary Hamiltonian instead of the augmented Hamiltonian.
Ignoring complementary slackness.
Guessing an active interval without checking admissibility.
Confusing singular arcs with state-constraint boundary arcs.
Assuming a numerical trajectory is valid even when it briefly violates a path constraint.
Ignoring the unknown entry and exit times of active arcs.
Summary¶
Path constraints restrict state, control, or mixed quantities throughout time.
Two-sided bounds can be converted to stacked one-sided inequalities.
Path constraints introduce multiplier functions.
The augmented Hamiltonian is .
Complementary slackness determines active and inactive behavior.
Active constraints create boundary arcs.
Unknown active-set structure makes indirect methods difficult.
These difficulties motivate direct numerical methods.