Inequality Path Constraints, Complementarity, and Constrained Arcs
This section develops the necessary conditions for inequality path constraints. It introduces active and inactive constraints, complementary slackness, control inequality constraints, state inequality constraints, constrained arcs, and entry conditions. The emphasis is on the theoretical structure that must hold along an optimal trajectory.
Control Inequality Path Constraints¶
Consider
Introduce the augmented Hamiltonian
The multiplier is time varying. The stationarity condition is
Because the constraint is independent of the state,
Active and Inactive Constraints¶
For a scalar constraint :
The constraint is inactive if .
The constraint is active if .
If the unconstrained optimal control already satisfies the bound strictly, then the constraint has no effect on the solution.
Complementary Slackness¶
The multiplier and constraint must satisfy
With the sign convention
the multiplier satisfies
Componentwise,
Thus:
Interpretation of the Multiplier¶
The path multiplier represents the local sensitivity of the optimal cost to relaxation of the constraint. An inactive constraint has zero sensitivity. An active constraint may have a nonzero multiplier.
The sign depends on the convention used in the augmented Hamiltonian. A different sign convention changes the sign restriction but not the underlying complementarity structure.
Complete Conditions for a Control Inequality¶
For
the necessary conditions include
These are supplemented by endpoint conditions and transversality conditions.
State Inequality Path Constraints¶
Now consider
This case is more difficult for two reasons:
the constraint does not directly appear in the control stationarity equation;
the times at which the constraint becomes active are generally unknown.
The augmented Hamiltonian is
The costate equation is
The ordinary stationarity equation remains
until the state constraint is differentiated enough times for the control to appear.
Unconstrained and Constrained Arcs¶
An optimal trajectory may consist of:
an unconstrained arc, where ;
a constrained arc, where ;
a second unconstrained arc after leaving the boundary.
A qualitative scalar picture is shown below.
Figure 1:An inequality constraint with inactive and constrained arcs.
Unknown Junction Times¶
The entry time and exit time are generally unknown. They become additional unknowns in an indirect formulation.
This is one reason state inequality constraints are significantly harder than control bounds.
Constraint Order on a Constrained Arc¶
Suppose the state constraint has order . Define
Differentiate until the control appears:
These equalities hold on the active constrained arc.
Entry Conditions¶
At the entry point, continuity and tangency require
For a first-order scalar state constraint,
For a second-order state constraint,
These conditions ensure tangential contact with the constraint boundary rather than crossing into the infeasible region.
Tangency Interpretation¶
At the moment a smooth trajectory reaches an active state boundary, it must become tangent to that boundary.
For a scalar state constraint:
on the unconstrained side and
on the constrained arc.
If were positive at entry for a constraint , the trajectory would immediately enter the infeasible region. Therefore, the appropriate tangency conditions must hold.
Control on the Constrained Arc¶
Once the state constraint has been differentiated until the control appears, the highest-order relation
can often be solved for the boundary control:
This control keeps the state exactly on the active boundary.
Multiplier Behavior¶
On inactive arcs:
On active arcs:
The multiplier may change at entry and exit points. Depending on the order and regularity of the state constraint, the costate may exhibit junction conditions or jumps. A full derivation of those jump conditions belongs to the continuation of the state-constraint theory.
Why Inequality State Constraints Are Difficult¶
They require simultaneous determination of:
the unconstrained solution;
the constrained solution;
the entry time;
the exit time;
the boundary control;
the path multiplier;
the junction conditions.
Therefore, the resulting indirect problem is a multiphase boundary-value problem with unknown switching times.
Direct Transcription Interpretation¶
In direct collocation, inequality path constraints are imposed at the discretization points:
The NLP solver determines which constraints are active. The corresponding NLP multipliers approximate the continuous path multipliers.
This is one reason direct methods are often preferred for complicated path-constrained problems.
Control Bounds as a Special Case¶
A box constraint
can be represented by
Each side has its own multiplier and complementary-slackness condition.
State Bounds as a Special Case¶
Similarly,
is represented by two sets of state inequality constraints.
Unlike control bounds, state bounds may have nonzero order and can generate constrained arcs.
Summary¶
Inequality path constraints may be active or inactive.
Inactive constraints have zero multiplier.
Active constraints satisfy the boundary equality and may have nonzero multiplier.
Complementary slackness is
Under the convention with , one has .
Control inequalities directly modify stationarity.
State inequalities must be differentiated until the control appears.
Active state constraints generate constrained arcs.
Entry conditions enforce contact and tangency.
Unknown entry and exit times make indirect formulations difficult.
Direct collocation handles active-set identification through the NLP solver.
Connection. State inequalities are especially subtle because the control affects them through the dynamics and their active intervals are not known in advance.