Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

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

c(u,t)0.\boxed{ \boldsymbol{c}(\boldsymbol{u},t)\leq \boldsymbol{0}. }

Introduce the augmented Hamiltonian

HA=HμTc.\mathcal{H}_A = \mathcal{H} - \boldsymbol{\mu}^{\mathsf{T}}\boldsymbol{c}.

The multiplier is time varying. The stationarity condition is

Hu(cu)Tμ=0.\boxed{ \frac{\partial \mathcal{H}}{\partial \boldsymbol{u}} - \left( \frac{\partial \boldsymbol{c}}{\partial \boldsymbol{u}} \right)^{\mathsf{T}}\boldsymbol{\mu} = \boldsymbol{0}. }

Because the constraint is independent of the state,

λ˙=Hx.\dot{\boldsymbol{\lambda}} = - \frac{\partial \mathcal{H}}{\partial \boldsymbol{x}}.

Active and Inactive Constraints

For a scalar constraint c(u,t)0c(\boldsymbol{u},t)\leq 0:

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

μTc=0.\boxed{ \boldsymbol{\mu}^{\mathsf{T}}\boldsymbol{c}=\boldsymbol{0}. }

With the sign convention

HA=HμTc,c0,\mathcal{H}_A=\mathcal{H}-\boldsymbol{\mu}^{\mathsf{T}}\boldsymbol{c}, \qquad \boldsymbol{c}\leq\boldsymbol{0},

the multiplier satisfies

μ0.\boxed{ \boldsymbol{\mu}\leq\boldsymbol{0}. }

Componentwise,

μici=0,μi0,ci0.\mu_i c_i=0, \qquad \mu_i\leq 0, \qquad c_i\leq 0.

Thus:

ci<0μi=0,ci=0μi0.\begin{aligned} c_i<0 &\Longrightarrow \mu_i=0, \\ c_i=0 &\Longrightarrow \mu_i\leq 0. \end{aligned}

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

c(u,t)0,\boldsymbol{c}(\boldsymbol{u},t)\leq\boldsymbol{0},

the necessary conditions include

x˙=HAλ,λ˙=HAx,HAu=0,c0,μ0,μTc=0.\begin{aligned} \dot{\boldsymbol{x}} &= \frac{\partial\mathcal{H}_A}{\partial\boldsymbol{\lambda}}, \\ \dot{\boldsymbol{\lambda}} &= - \frac{\partial\mathcal{H}_A}{\partial\boldsymbol{x}}, \\ \frac{\partial\mathcal{H}_A}{\partial\boldsymbol{u}} &= \boldsymbol{0}, \\ \boldsymbol{c} &\leq \boldsymbol{0}, \\ \boldsymbol{\mu} &\leq \boldsymbol{0}, \\ \boldsymbol{\mu}^{\mathsf{T}}\boldsymbol{c} &= 0. \end{aligned}

These are supplemented by endpoint conditions and transversality conditions.

State Inequality Path Constraints

Now consider

c(x,t)0.\boxed{ \boldsymbol{c}(\boldsymbol{x},t)\leq\boldsymbol{0}. }

This case is more difficult for two reasons:

  1. the constraint does not directly appear in the control stationarity equation;

  2. the times at which the constraint becomes active are generally unknown.

The augmented Hamiltonian is

HA=HμTc.\mathcal{H}_A = \mathcal{H}-\boldsymbol{\mu}^{\mathsf{T}}\boldsymbol{c}.

The costate equation is

λ˙=Hx+(cx)Tμ.\boxed{ \dot{\boldsymbol{\lambda}} = - \frac{\partial \mathcal{H}}{\partial \boldsymbol{x}} + \left( \frac{\partial \boldsymbol{c}}{\partial \boldsymbol{x}} \right)^{\mathsf{T}}\boldsymbol{\mu}. }

The ordinary stationarity equation remains

Hu=0\frac{\partial \mathcal{H}}{\partial \boldsymbol{u}} = \boldsymbol{0}

until the state constraint is differentiated enough times for the control to appear.

Unconstrained and Constrained Arcs

An optimal trajectory may consist of:

A qualitative scalar picture is shown below.

An inequality constraint with inactive and constrained arcs.

Figure 1:An inequality constraint with inactive and constrained arcs.

Unknown Junction Times

The entry time tint_{\mathrm{in}} and exit time toutt_{\mathrm{out}} 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 qq. Define

c(0)=c.\boldsymbol{c}^{(0)}=\boldsymbol{c}.

Differentiate until the control appears:

c(0)(x,t)=0,c(1)(x,t)=0,c(q1)(x,t)=0,c(q)(x,u,t)=0.\begin{aligned} \boldsymbol{c}^{(0)}(\boldsymbol{x},t)&=\boldsymbol{0},\\ \boldsymbol{c}^{(1)}(\boldsymbol{x},t)&=\boldsymbol{0},\\ &\vdots\\ \boldsymbol{c}^{(q-1)}(\boldsymbol{x},t)&=\boldsymbol{0},\\ \boldsymbol{c}^{(q)}(\boldsymbol{x},\boldsymbol{u},t)&=\boldsymbol{0}. \end{aligned}

These equalities hold on the active constrained arc.

Entry Conditions

At the entry point, continuity and tangency require

c(j)(tin)=0,j=0,,q1.\boxed{ \boldsymbol{c}^{(j)}(t_{\mathrm{in}})=\boldsymbol{0}, \qquad j=0,\ldots,q-1. }

For a first-order scalar state constraint,

c(tin)=0.c(t_{\mathrm{in}})=0.

For a second-order state constraint,

c(tin)=0,c˙(tin)=0.c(t_{\mathrm{in}})=0, \qquad \dot{c}(t_{\mathrm{in}})=0.

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:

c<0c<0

on the unconstrained side and

c=0c=0

on the constrained arc.

If c˙\dot{c} were positive at entry for a constraint c0c\leq 0, 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

c(q)(x,u,t)=0\boldsymbol{c}^{(q)}(\boldsymbol{x},\boldsymbol{u},t)=\boldsymbol{0}

can often be solved for the boundary control:

u=uboundary(x,t).\boxed{ \boldsymbol{u}=\boldsymbol{u}_{\mathrm{boundary}}(\boldsymbol{x},t). }

This control keeps the state exactly on the active boundary.

Multiplier Behavior

On inactive arcs:

μ=0.\boldsymbol{\mu}=\boldsymbol{0}.

On active arcs:

c=0,μ0.\boldsymbol{c}=\boldsymbol{0}, \qquad \boldsymbol{\mu}\leq\boldsymbol{0}.

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:

  1. the unconstrained solution;

  2. the constrained solution;

  3. the entry time;

  4. the exit time;

  5. the boundary control;

  6. the path multiplier;

  7. 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:

cminc(Xi,Ui,ti)cmax.\boldsymbol{c}_{\min} \leq \boldsymbol{c}(\boldsymbol{X}_i,\boldsymbol{U}_i,t_i) \leq \boldsymbol{c}_{\max}.

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

uminu(t)umax\boldsymbol{u}_{\min} \leq \boldsymbol{u}(t) \leq \boldsymbol{u}_{\max}

can be represented by

uumax0,uminu0.\begin{aligned} \boldsymbol{u}-\boldsymbol{u}_{\max}&\leq\boldsymbol{0},\\ \boldsymbol{u}_{\min}-\boldsymbol{u}&\leq\boldsymbol{0}. \end{aligned}

Each side has its own multiplier and complementary-slackness condition.

State Bounds as a Special Case

Similarly,

xminx(t)xmax\boldsymbol{x}_{\min} \leq \boldsymbol{x}(t) \leq \boldsymbol{x}_{\max}

is represented by two sets of state inequality constraints.

Unlike control bounds, state bounds may have nonzero order and can generate constrained arcs.

Summary

  1. Inequality path constraints may be active or inactive.

  2. Inactive constraints have zero multiplier.

  3. Active constraints satisfy the boundary equality and may have nonzero multiplier.

  4. Complementary slackness is

μTc=0.\boldsymbol{\mu}^{\mathsf{T}}\boldsymbol{c}=0.
  1. Under the convention HA=HμTc\mathcal{H}_A=\mathcal{H}-\boldsymbol{\mu}^{\mathsf{T}}\boldsymbol{c} with c0\boldsymbol{c}\leq 0, one has μ0\boldsymbol{\mu}\leq 0.

  2. Control inequalities directly modify stationarity.

  3. State inequalities must be differentiated until the control appears.

  4. Active state constraints generate constrained arcs.

  5. Entry conditions enforce contact and tangency.

  6. Unknown entry and exit times make indirect formulations difficult.

  7. 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.