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.

Globalization for Constrained Optimization

References: Biegler (2010), Nonlinear Programming, §§5.5–5.8, pp.109–130; Nocedal and Wright (2006), Numerical Optimization, §§15.4–15.6, pp.435–446 and Theorem 17.3, p.507. Use the Biegler errata. This reference supplies the complete penalty, filter, composite-step and second-order-correction details behind Lecture 22. The SQP implementation uses these ideas in an actual algorithm.

Two quantities to improve

Consider min⁡xf(x)\min_{\mathbf x}f(\mathbf x) subject to h(x)=0\mathbf h(\mathbf x)=\mathbf0. Use the row Jacobian J=∇hT\mathbf J=\nabla\mathbf h^{\mathsf T}, the sign convention L=f+vThL=f+\mathbf v^{\mathsf T}\mathbf h, gradient g=∇f\mathbf g=\nabla f, and Hessian W=∇xx2L\mathbf W=\nabla_{\mathbf{xx}}^2L. A step should reduce constraint violation and eventually improve the objective on the feasible set. Raw objective decrease alone can reward moving away from the constraints. Raw violation decrease alone can converge to a feasible nonoptimal point.

The equality QP has objective gTd+12dTWd\mathbf g^{\mathsf T}\mathbf d+\frac12\mathbf d^{\mathsf T}\mathbf W\mathbf d and constraint Jd=−h\mathbf J\mathbf d=-\mathbf h. Its KKT multiplier is the updated multiplier vˉ\bar{\mathbf v}:

Wd+JTvˉ=−g,Jd=−h.\mathbf W\mathbf d+\mathbf J^{\mathsf T}\bar{\mathbf v}=-\mathbf g,\qquad \mathbf J\mathbf d=-\mathbf h.

Equality Newton owns the derivation, normal/tangential decomposition and multiplier increment distinction. Independent rows and positive reduced curvature make the equality QP a unique minimization problem. A merit function combines progress in one scalar; a filter keeps the two goals separate. Neither supplies a global-minimum certificate for a nonconvex NLP.

Quadratic penalties and conditioning

Prepared illustration

The smooth quadratic penalty is

Q(x;ρpen)=f(x)+ρpen2∥h(x)∥22.Q(\mathbf x;\rho_{\rm pen})=f(\mathbf x)+\frac{\rho_{\rm pen}}2\|\mathbf h(\mathbf x)\|_2^2.

Stationarity gives g+ρpenJTh=0\mathbf g+\rho_{\rm pen}\mathbf J^{\mathsf T}\mathbf h=\mathbf0. Thus ρpenh\rho_{\rm pen}\mathbf h estimates the multiplier. With a nonzero limiting multiplier, the residual must remain nonzero at finite weight; the constraint is approached as the weight grows. This motivates penalty algorithms, but a weight tending to infinity is inconvenient for an acceptance function intended to permit a fast local Newton rate.

For f=x1+x2f=x_1+x_2 and h=x12+x22−2h=x_1^2+x_2^2-2, the constrained minimum is (−1,−1)(-1,-1) with v∗=1/2v^*=1/2. Cauchy’s inequality gives f≥−2∥x∥f\ge-\sqrt2\|\mathbf x\|, so the quadratic-penalty minimum is on the negative diagonal x=(−t,−t)\mathbf x=(-t,-t), t>1t>1. It solves

4ρpent(t2−1)=1,h=2t2−2,ρpenh=12t⟶12.4\rho_{\rm pen}t(t^2-1)=1,\qquad h=2t^2-2,\qquad \rho_{\rm pen}h=\frac1{2t}\longrightarrow\frac12.

At that point the Hessian is 2ρpenhI+4ρpenxxT2\rho_{\rm pen}h\mathbf I+4\rho_{\rm pen}\mathbf x\mathbf x^{\mathsf T}. Its tangential and normal eigenvalues are 2ρpenh2\rho_{\rm pen}h and 2ρpenh+8ρpent22\rho_{\rm pen}h+8\rho_{\rm pen}t^2. The former approaches1 while the latter grows like 8ρpen8\rho_{\rm pen}. Better feasibility therefore comes with increasing anisotropy and condition number. The numerical table below computes the actual radial roots and both eigenvalues.

A general smooth residual-only penalty f+ρpenφ(h)f+\rho_{\rm pen}\varphi(\mathbf h), with φ≥0\varphi\ge0 and φ(0)=0\varphi(\mathbf0)=0, has ∇φ(0)=0\nabla\varphi(\mathbf0)=\mathbf0. At a feasible point its gradient is exactly ∇f\nabla f. It cannot have an unconstrained local minimum there when ∇f≠0\nabla f\ne\mathbf0. This is a qualified obstruction, not a statement that smooth penalties are never exact. For f=x2,h=xf=x^2,h=x, the penalty (1+ρpen)x2(1+\rho_{\rm pen})x^2 is exact for every positive weight. Its constrained multiplier and objective gradient vanish.

import numpy as np
from scipy.optimize import brentq
print(f"{'rho_pen':>10} {'t':>12} {'|h|':>12} {'rho*h':>12} {'lambda_t':>12} {'lambda_n':>12} {'condition':>12}")
for rho_pen in [.25,.5,1,10,100,1000]:
    t=brentq(lambda t:4*rho_pen*t*(t*t-1)-1,1,5)
    residual=2*t*t-2
    lambda_t=2*rho_pen*residual
    lambda_n=lambda_t+8*rho_pen*t*t
    assert abs(1-2*rho_pen*residual*t)<1e-9
    print(f"{rho_pen:10g} {t:12.7f} {residual:12.5g} {rho_pen*residual:12.7f} {lambda_t:12.7f} {lambda_n:12.4g} {lambda_n/lambda_t:12.4g}")
   rho_pen            t          |h|        rho*h     lambda_t     lambda_n    condition
      0.25    1.3247180       1.5098    0.3774388    0.7548777        4.265        5.649
       0.5    1.1914879      0.83929    0.4196434    0.8392868        6.518        7.766
         1    1.1071599      0.45161    0.4516060    0.9032119        10.71        11.86
        10    1.0122731     0.049394    0.4939378    0.9878757        82.96        83.98
       100    1.0012477    0.0049938    0.4993769    0.9987539          803          804
      1000    1.0001250   0.00049994    0.4999375    0.9998750         8003         8004

Augmented Lagrangians and variable multipliers

The augmented Lagrangian is

LA(x,v;ρpen)=f(x)+vTh(x)+ρpen2∥h(x)∥22.\mathcal L_A(\mathbf x,\mathbf v;\rho_{\rm pen})=f(\mathbf x)+\mathbf v^{\mathsf T}\mathbf h(\mathbf x)+\frac{\rho_{\rm pen}}2\|\mathbf h(\mathbf x)\|_2^2.

At a feasible KKT point with the fixed true multiplier, its gradient vanishes and its Hessian is W+ρpenJTJ\mathbf W+\rho_{\rm pen}\mathbf J^{\mathsf T}\mathbf J. Under LICQ and SOSC, this matrix is positive definite for sufficiently large finite weight. To see why, use orthonormal bases Y,Z\mathbf Y,\mathbf Z for the normal and tangent spaces. The tangent block ZTWZ\mathbf Z^{\mathsf T}\mathbf W\mathbf Z is positive definite. The normal block receives ρpenYTJTJY\rho_{\rm pen}\mathbf Y^{\mathsf T}\mathbf J^{\mathsf T}\mathbf J\mathbf Y, positive definite under full row rank. Its Schur complement after eliminating the tangent block is positive definite once this growing normal term dominates the bounded original block and coupling. Thus the fixed-multiplier augmented function has a strict local minimum at the constrained solution. Biegler p.110 states this with LICQ and SOSC.

The true multiplier is unknown; practical augmented-Lagrangian algorithms alternate primal solves and multiplier updates rather than minimize jointly in x,v\mathbf x,\mathbf v. A nonzero constraint residual makes the multiplier term linear and unbounded below in some multiplier direction, so joint unconstrained minimization is the wrong problem.

Where J\mathbf J has full row rank, a smooth least-squares multiplier estimate is

v(x)=−(JJT)−1J∇f.\mathbf v(\mathbf x)=-(\mathbf J\mathbf J^{\mathsf T})^{-1}\mathbf J\nabla f.

Substituting this into a multiplier-dependent merit function gives a Fletcher-type differentiable construction, rather than a residual-only penalty. Its smoothness requires rank locally and its derivatives include derivatives of the multiplier estimate. Dropping those terms changes the construction. This approach is distinct from simply freezing the multiplier in an augmented Lagrangian. See Biegler Eq.5.58 p.110 and Nocedal–Wright p.436. Nonsmooth exact penalties avoid these derivative costs.

Exact nonsmooth penalties: statement, proof and boundary case

Prepared illustration

Define

ϕp(x;ρpen)=f(x)+ρpen∥h(x)∥p,1p+1q=1.\phi_p(\mathbf x;\rho_{\rm pen})=f(\mathbf x)+\rho_{\rm pen}\|\mathbf h(\mathbf x)\|_p,\qquad \frac1p+\frac1q=1.

Exactness here means that a constrained local minimizer is also a local minimizer of this unconstrained merit function for a finite penalty weight. It does not mean that every stationary point is feasible or that every minimum anywhere solves the NLP.

With C2C^2 data, a feasible KKT pair (x∗,v∗)(\mathbf x^*,\mathbf v^*), LICQ and SOSC, every ρpen>∥v∗∥q\rho_{\rm pen}>\|\mathbf v^*\|_q makes x∗\mathbf x^* a strict local minimum of ϕp\phi_p. The dual norm appears through Hölder’s inequality. Strictness needs the curvature assumption: f=0,h=x2f=0,h=x_2 satisfies LICQ and KKT with zero multiplier, but ρpen∣x2∣\rho_{\rm pen}|x_2| is flat along the entire feasible x1x_1 axis. Nocedal–Wright Theorem 17.3 p.507 explicitly distinguishes its local-minimum conclusion from the additional SOSC conclusion. Do not infer strictness from a multiplier threshold alone.

Here is a complete contradiction proof of the SOSC statement. Suppose distinct xk→x∗\mathbf x^k\to\mathbf x^* satisfy ϕp(xk)≤ϕp(x∗)\phi_p(\mathbf x^k)\le\phi_p(\mathbf x^*). Write rk=∥xk−x∗∥2r_k=\|\mathbf x^k-\mathbf x^*\|_2 and pk=(xk−x∗)/rk\mathbf p_k=(\mathbf x^k-\mathbf x^*)/r_k. Fix the true multiplier in LL. Stationarity and Taylor’s theorem give

L(xk)−L(x∗)=12rk2pkTWpk+o(rk2).L(\mathbf x^k)-L(\mathbf x^*)=\frac12r_k^2\mathbf p_k^{\mathsf T}\mathbf W\mathbf p_k+o(r_k^2).

Put δ=ρpen−∥v∗∥q>0\delta=\rho_{\rm pen}-\|\mathbf v^*\|_q>0. Hölder gives

ϕp(xk)−ϕp(x∗)≥12rk2pkTWpk+o(rk2)+δ∥h(xk)∥p.\phi_p(\mathbf x^k)-\phi_p(\mathbf x^*)\ge\frac12r_k^2\mathbf p_k^{\mathsf T}\mathbf W\mathbf p_k+o(r_k^2)+\delta\|\mathbf h(\mathbf x^k)\|_p.

Bounded curvature and the assumed nonpositive left side imply ∥h(xk)∥p=O(rk2)\|\mathbf h(\mathbf x^k)\|_p=O(r_k^2). Extract a convergent subsequence of unit directions, pk→p\mathbf p_k\to\mathbf p. The first-order constraint expansion divided by rkr_k yields Jp=0\mathbf J\mathbf p=\mathbf0 and ∥p∥2=1\|\mathbf p\|_2=1. Divide the merit inequality by rk2r_k^2 and discard its nonnegative residual term. In the limit it asserts 0≥12pTWp0\ge\frac12\mathbf p^{\mathsf T}\mathbf W\mathbf p, contradicting SOSC. For the empty tangent space, the unit tangent conclusion itself is impossible. This proves strict local exactness.

For the circle example and p=1p=1, write x=c(−1,−1)\mathbf x=c(-1,-1):

ϕ1(c)=−2c+ρpen∣2c2−2∣,D−=−2−4ρpen,D+=−2+4ρpen.\phi_1(c)=-2c+\rho_{\rm pen}|2c^2-2|,\quad D_-=-2-4\rho_{\rm pen},\quad D_+=-2+4\rho_{\rm pen}.
Exact-penalty kink and one-sided slopes

The radial illustration is supported by the all-direction Cauchy bound above. The strict theorem uses ρpen>1/2\rho_{\rm pen}>1/2 as a sufficient bound. In this particular example, equality is also exact and strictly minimizing. At ρpen=1/2\rho_{\rm pen}=1/2, ϕ1(c)+2=(c−1)2\phi_1(c)+2=(c-1)^2 for c≥1c\ge1, and (1−c)(c+3)(1-c)(c+3) for 0≤c<10\le c<1. Both are positive off1; Cauchy equality selects the negative diagonal. A zero right derivative is first-order flatness, not a flat set of minima. For smaller weights, moving radially outward reduces the merit function.

Infeasible stationarity: what it does and does not show

A stationary point of every penalty weight need not be a least-infeasible point. At x=0x=0, h=x2−1h=x^2-1 and f=0f=0, the smooth local branch ϕ1=ρpen(1−x2)\phi_1=\rho_{\rm pen}(1-x^2) has derivative zero for every positive weight, but is a strict local maximum of violation. Feasible points x=±1x=\pm1 exist. The quadratic penalty also has zero gradient at0. Thus stationarity cannot establish local violation minimality, global infeasibility, or an excessive number of constraints.

Even a genuine positive-residual local minimum of a restoration objective only describes that local search region; feasibility may exist elsewhere. Investigate derivative correctness, scaling, starts and the constraint structure. Full row rank guarantees that a nonzero residual can be reduced in the linear model by a right-inverse step, so an infeasible stationary violation point also warns that the regularity needed by such a model may be absent. This is diagnostic evidence, not a global proof.

One-sided directional derivatives

Prepared illustration

Use the forward derivative

Dϕ(x;d)=lim⁡α↓0ϕ(x+αd)−ϕ(x)α.D\phi(\mathbf x;\mathbf d)=\lim_{\alpha\downarrow0}\frac{\phi(\mathbf x+\alpha\mathbf d)-\phi(\mathbf x)}\alpha.

For the ℓ1\ell_1 residual, C1C^1 data imply

D∥h∥1=∑hi≠0sign⁡(hi)Jid+∑hi=0∣Jid∣.D\|\mathbf h\|_1=\sum_{h_i\ne0}\operatorname{sign}(h_i)\mathbf J_i\mathbf d+\sum_{h_i=0}|\mathbf J_i\mathbf d|.

A kink may arise when an individual residual component is zero, even if the whole residual vector is nonzero. Composition can remove a kink, as in ∣x2∣=x2|x^2|=x^2.

For an exact linearized-feasibility step Jd=−h\mathbf J\mathbf d=-\mathbf h,

Dϕp=∇fTd−ρpen∥h∥p.D\phi_p=\nabla f^{\mathsf T}\mathbf d-\rho_{\rm pen}\|\mathbf h\|_p.

Indeed h(x+αd)=(1−α)h+o(α)\mathbf h(\mathbf x+\alpha\mathbf d)=(1-\alpha)\mathbf h+o(\alpha), and the reverse and ordinary triangle inequalities bound the norm error by o(α)o(\alpha). With C2C^2 data, the remainder is O(α2)O(\alpha^2). At feasibility, Jd=0\mathbf J\mathbf d=\mathbf{0} and the residual contribution is zero. If the tangent objective slope is nonnegative, increasing the penalty weight cannot repair it: revise the direction/curvature model. A regularized equality row or truncated normal step may not satisfy Jd=−h\mathbf J\mathbf d=-\mathbf h; evaluate the actual derivative or actual model reduction instead.

Choosing the weight: full positive curvature versus reduced curvature

QP stationarity gives

∇fTd=−dTWd+vˉTh.\nabla f^{\mathsf T}\mathbf d=-\mathbf d^{\mathsf T}\mathbf W\mathbf d+\bar{\mathbf v}^{\mathsf T}\mathbf h.

When W≻0\mathbf W\succ0, Hölder and ρpen>∥vˉ∥q\rho_{\rm pen}>\|\bar{\mathbf v}\|_q give strict merit descent except at the zero residual/zero step. This is Biegler p.117’s full positive-definite case. The updated QP multiplier is not generally interchangeable with the first-order multiplier estimate.

Only reduced positivity is needed for a unique equality QP, but then the full quadratic form can be negative. A concrete counterexample uses

W=diag⁡(−200,1),J=[1,0],h=1,∇f=(−300,0)T.\mathbf W=\operatorname{diag}(-200,1),\quad \mathbf J=[1,0],\quad \mathbf h=1,\quad \nabla f=(-300,0)^{\mathsf T}.

The QP returns d=(−1,0)\mathbf d=(-1,0) and vˉ=100\bar v=100, while the reduced curvature is1. Choosing ρpen=∣vˉ∣+1=101\rho_{\rm pen}=|\bar v|+1=101 gives Dϕ=300−101=199>0D\phi=300-101=199>0. It is therefore not a valid general reduced-space descent rule.

For a normal step n=YpY\mathbf n=\mathbf Y\mathbf p_Y with Jn=−h\mathbf J\mathbf n=-\mathbf h, tangent basis Z\mathbf Z, positive HR=ZTWZ\mathbf H_R=\mathbf Z^{\mathsf T}\mathbf W\mathbf Z, reduced gradient gR=ZT∇f\mathbf g_R=\mathbf Z^{\mathsf T}\nabla f and coupling w=ZTWn\mathbf w=\mathbf Z^{\mathsf T}\mathbf W\mathbf n, the QP tangent is q=−HR−1(gR+w)\mathbf q=-\mathbf H_R^{-1}(\mathbf g_R+\mathbf w). Then

Dϕ=−gRTHR−1gR+∇fT(n−ZHR−1w)−ρpen∥h∥p.D\phi=-\mathbf g_R^{\mathsf T}\mathbf H_R^{-1}\mathbf g_R+\nabla f^{\mathsf T}(\mathbf n-\mathbf Z\mathbf H_R^{-1}\mathbf w)-\rho_{\rm pen}\|\mathbf h\|_p.

For h≠0\mathbf h\ne\mathbf{0}, taking the weight above ∇fT(n−ZHR−1w)/∥h∥p\nabla f^{\mathsf T}(\mathbf n-\mathbf Z\mathbf H_R^{-1}\mathbf w)/\|\mathbf h\|_p plus a positive margin yields descent. This is the full coupling-aware Biegler 5.71 p.116 expression, with the missing gradient in5.70 restored by the errata. When coupling is zero, the book permits a bound using its first-order multiplier from Eq.5.21. Check which multiplier the implementation has computed. Directly checking the slope also avoids silently extending the full-PD rule.

A common monotone update ρk=max⁡(ρk−1,ak+ϵ)\rho_k=\max(\rho_{k-1},a_k+\epsilon) can remain bounded yet change at every iteration: take ak=1−1/(k+1)a_k=1-1/(k+1). A bounded monotone sequence need not become constant. If the proof needs finitely many changes, enforce a minimum jump: when a required bound exceeds the current weight, set ρk=max⁡(ρk−1+δ,ak+ϵ)\rho_k=\max(\rho_{k-1}+\delta,a_k+\epsilon) with fixed δ>0\delta>0. A bounded required bound then permits only finitely many changes. Flexible decrease rules require their own acceptance/convergence safeguards; the monotone proof does not automatically apply.

Filters: entries, rejected region, and sufficient progress

Prepared illustration

Let a stored list contain pairs (ϑj,fj)(\vartheta_j,f_j), where ϑ=∥h∥1\vartheta=\|\mathbf h\|_1 is a violation value, not the course’s convex-combination weight. A trial passes this axis-margin filter if, for every stored pair,

ϑtrial<(1−γϑ)ϑjorftrial<fj−γfϑj.\vartheta_{\rm trial}<(1-\gamma_\vartheta)\vartheta_j\quad\text{or}\quad f_{\rm trial}<f_j-\gamma_f\vartheta_j.

The list and its rejected region are different sets. The rejected region is the union of the upper-right rectangles

R=⋃j{(ϑ,f):ϑ≥(1−γϑ)ϑj, f≥fj−γfϑj}.\mathcal R=\bigcup_j\{(\vartheta,f):\vartheta\ge(1-\gamma_\vartheta)\vartheta_j,\ f\ge f_j-\gamma_f\vartheta_j\}.

A trial passes when its pair lies outside R\mathcal R, not merely when it differs from the finitely many stored pairs. This strict-outside convention puts boundary points in the rejected set. Some algorithm statements use non-strict progress tests and a corresponding boundary convention; implement one convention consistently. Fletcher et al. (2002), Eq. 2.5, uses the stored violation in the objective margin; Eq. 2.6 is a distinct slanted-margin rule using trial violation. Do not combine their diagrams and tests inadvertently.

Take stored pairs (.5,4),(1,3),(2,2),(3,1)(.5,4),(1,3),(2,2),(3,1), γϑ=.1\gamma_\vartheta=.1, γf=.2\gamma_f=.2, and current pair (1.7,1.7)(1.7,1.7). TrialA(.4,4.2)(.4,4.2) passes the filter but increases f+ϑf+\vartheta; trialB(2.2,1.05)(2.2,1.05) passes both; trialC(2.8,.5)(2.8,.5) decreases f+ϑf+\vartheta and passes the current-pair margin, but fails the last stored pair: 2.8>2.72.8>2.7 and .5>.4.5>.4. History prevents accepting it. Scalar merit and filter acceptance can differ in both directions.

Switching, restoration and a line-search outline

Historical acceptance and progress relative to the current point are both needed. Near feasibility, a pure violation-or-objective test can accept feasible nonoptimal stagnation. A switching test selects objective-type steps when ∇fTd<0\nabla f^{\mathsf T}\mathbf d<0 and

α(−∇fTd)sf>δ∥h∥sh,sf≥1, sh>1.\alpha(-\nabla f^{\mathsf T}\mathbf d)^{s_f}>\delta\|\mathbf h\|^{s_h},\qquad s_f\ge1,\ s_h>1.

For those steps, require objective Armijo f(x+αd)≤f(x)+ηfα∇fTdf(\mathbf x+\alpha\mathbf d)\le f(\mathbf x)+\eta_f\alpha\nabla f^{\mathsf T}\mathbf d along with historical acceptance. Otherwise require sufficient improvement relative to the current pair. Non-objective-type accepted steps add the old point’s margin region to the filter. The implementation must state all constants, its maximum violation region, boundary conventions and restoration trigger; the basic dominance picture alone is not the algorithm. Biegler Algorithm 5.4 pp.120–121 gives an equality line-search version. Wächter–Biegler (2006), §2.3, adds a near-feasibility test and uses the barrier objective for its interior-point version; they are distinct formulations.

For a merit line search: evaluate derivatives, form an appropriate equality step, verify its derivative and update the weight, then backtrack from α=1\alpha=1 until

ϕp(x+αd;ρpen)≤ϕp(x;ρpen)+ηαDϕp.\phi_p(\mathbf x+\alpha\mathbf d;\rho_{\rm pen})\le\phi_p(\mathbf x;\rho_{\rm pen})+\eta\alpha D\phi_p.

Both sides use the same current weight. If near-solution rejection has the Maratos signature, first try the second-order correction below. If that corrected trial fails, discard the correction and continue backtracking. The SQP notebook supplies the actual active-set/QP/BFGS implementation rather than a second duplicate algorithm here.

A filter line search restores feasibility when backtracking cannot find an acceptable step. Restoration seeks a sufficiently feasible point acceptable to the filter, then returns to the optimization phase. It need not find a globally minimum violation point.

For interpreting actual Ipopt output, the printed objective is the original objective and printed inf_pr is the original-model violation; acceptance can use the barrier objective and internal scaled/slack residual. Both printed quantities can rise during a valid step. A local-infeasibility status describes a local violation minimum; another start can reach feasibility. A nearly feasible restoration failure can involve degeneracy, scaling or derivative errors and is not a diagnosis of one cause. See the official Ipopt output and status documentation. Interior-point details belong with the barrier-method material.

What a global-convergence argument proves

Prepared illustration

Here is the precise telescoping mechanism, not an unconditional algorithm guarantee. Suppose after some index the weight is fixed, accepted step lengths satisfy αk≥α‾>0\alpha_k\ge\underline\alpha>0, the merit function is bounded below, and

Dϕk≤−cRk,Rk=∥Pk∇fk∥22+∥hk∥p,c>0,D\phi_k\le-cR_k,\quad R_k=\|\mathbf P_k\nabla f_k\|_2^2+\|\mathbf h_k\|_p,\quad c>0,

where P=I−JT(JJT)−1J\mathbf P=\mathbf I-\mathbf J^{\mathsf T}(\mathbf J\mathbf J^{\mathsf T})^{-1}\mathbf J is the orthogonal tangent projector. Armijo yields ϕk−ϕk+1≥ηα‾cRk\phi_k-\phi_{k+1}\ge\eta\underline\alpha cR_k. Summing gives ∑kRk<∞\sum_kR_k<\infty, hence Rk→0R_k\to0. Compact iterates supply cluster points. Full row rank at each such point makes P\mathbf P continuous nearby, so every cluster point is feasible and has zero tangent gradient; the least-squares multiplier gives KKT stationarity.

A standard step/backtracking analysis must separately establish uniform derivative bounds, a uniformly well-conditioned right inverse, uniformly positive and bounded reduced curvature, bounded coupling/bases, a suitable penalty rule and a uniform step-length bound. Pointwise positivity and pointwise rank alone are not uniform constants. Biegler Assumptions I and Theorem 5.10 pp.118–119 motivate this analysis, but the displayed residual/telescoping argument does not by itself prove convergence of the entire sequence to one point. It also does not prove second-order optimality or a global minimum. For example, points (sin⁡log⁡(k+1),0)(\sin\log(k+1),0) with f=0,h=x2f=0,h=x_2 all have zero residual but do not converge; this illustrates the logical gap and is not asserted to be the trajectory of a particular algorithm.

Filter conclusions depend on the exact algorithm and restoration assumptions. Biegler Theorems 5.11/5.13 state feasibility convergence and a liminf stationarity conclusion, assuming no unsuccessful restoration termination. A liminf conclusion is weaker than stationarity of every cluster point. Fletcher et al. (2002), Theorem 7, gives alternatives involving finite KKT termination, restoration failure, or a feasible cluster point that is KKT or fails MFCQ. Do not promote any of these into an unqualified whole-sequence or global-optimum promise.

Trust-region feasibility and minimum-distance normal steps

Prepared illustration

The equality QP with ∥d∥2≤Δ\|\mathbf d\|_2\le\Delta can be infeasible even when the original constraints are feasible. With full-row-rank J\mathbf J, the minimum-norm normal step is

nmin⁡=−JT(JJT)−1h.\mathbf n_{\min}=-\mathbf J^{\mathsf T}(\mathbf J\mathbf J^{\mathsf T})^{-1}\mathbf h.

Every solution of Jd=−h\mathbf J\mathbf d=-\mathbf h is nmin⁡+Zq\mathbf n_{\min}+\mathbf Z\mathbf q, with an orthogonal null basis. Orthogonality gives ∥d∥22=∥nmin⁡∥22+∥q∥22\|\mathbf d\|_2^2=\|\mathbf n_{\min}\|_2^2+\|\mathbf q\|_2^2. Thus the linearized equality intersects the ball exactly when ∥nmin⁡∥2≤Δ\|\mathbf n_{\min}\|_2\le\Delta. An arbitrary right-inverse coordinate step may be longer and cannot establish infeasibility. For J=[1,1],h=1\mathbf J=[1,1],h=1, the minimum step (−.5,−.5)(-.5,-.5) has length.7071; the coordinate step(−1,0)(-1,0) has length1. A radius.8 is feasible despite excluding the coordinate step.

Composite steps, prediction and acceptance

Prepared illustration

Byrd–Omojokun first solves a normal problem

min⁡n∈range⁡(JT)12∥h+Jn∥22s.t.∥n∥2≤ξΔ,0<ξ<1.\min_{\mathbf n\in\operatorname{range}(\mathbf J^{\mathsf T})}\frac12\|\mathbf h+\mathbf J\mathbf n\|_2^2\quad\text{s.t.}\quad\|\mathbf n\|_2\le\xi\Delta,\quad0<\xi<1.

Under full row rank this is strictly convex in normal coordinates. It reduces linearized violation but need not reach zero: the smaller ball may prevent that. An inexact normal solve should satisfy a specified fraction-of-Cauchy decrease, rather than be accepted solely because it is inside the ball.

Then solve the tangent problem with d=n+Zq\mathbf d=\mathbf n+\mathbf Z\mathbf q:

min⁡q (ZT∇f+ZTWn)Tq+12qTHRqs.t.∥n+Zq∥2≤Δ.\min_{\mathbf q}\ (\mathbf Z^{\mathsf T}\nabla f+\mathbf Z^{\mathsf T}\mathbf W\mathbf n)^{\mathsf T}\mathbf q+\frac12\mathbf q^{\mathsf T}\mathbf H_R\mathbf q\quad\text{s.t.}\quad\|\mathbf n+\mathbf Z\mathbf q\|_2\le\Delta.

The coupling term is retained. Exact positive reduced curvature is not mandatory for a globally solved bounded trust subproblem; negative curvature can be handled by the trust-region solver. Positive-definite approximations can be useful globalization choices, but they do not preserve an indefinite full Hessian’s normal curvature. They are perfectly legitimate when the true full Hessian is itself positive definite.

For the ℓ2\ell_2 merit model,

m(d)=f+∇fTd+12dTWd+ρpen∥h+Jd∥2.m(\mathbf d)=f+\nabla f^{\mathsf T}\mathbf d+\tfrac12\mathbf d^{\mathsf T}\mathbf W\mathbf d+\rho_{\rm pen}\|\mathbf h+\mathbf J\mathbf d\|_2.

Let vN=∥h∥2−∥h+Jn∥2v_N=\|\mathbf h\|_2-\|\mathbf h+\mathbf J\mathbf n\|_2 and qT=−(ZT∇f+ZTWn)Tq−12qTHRqq_T=-(\mathbf Z^{\mathsf T}\nabla f+\mathbf Z^{\mathsf T}\mathbf W\mathbf n)^{\mathsf T}\mathbf q-\frac12\mathbf q^{\mathsf T}\mathbf H_R\mathbf q. Then

pred=qT−∇fTn−12nTWn+ρpenvN,ared=ϕ2(x)−ϕ2(x+d).\mathrm{pred}=q_T-\nabla f^{\mathsf T}\mathbf n-\tfrac12\mathbf n^{\mathsf T}\mathbf W\mathbf n+\rho_{\rm pen}v_N,\qquad\mathrm{ared}=\phi_2(\mathbf x)-\phi_2(\mathbf x+\mathbf d).

If vN>0v_N>0, increase the weight as necessary so pred>0\mathrm{pred}>0, e.g. to make the non-tangential contribution at least ζρpenvN\zeta\rho_{\rm pen}v_N for chosenζ∈(0,1)\zeta\in(0,1):

ρpen≥∇fTn+12nTWn(1−ζ)vN.\rho_{\rm pen}\ge\frac{\nabla f^{\mathsf T}\mathbf n+\frac12\mathbf n^{\mathsf T}\mathbf W\mathbf n}{(1-\zeta)v_N}.

The full book 5.98 bound includes −qT-q_T as well when targeting the total prediction; state which inequality is enforced. If vN=0v_N=0, do not divide by it: tangent decrease or a restoration/stationarity branch must handle the case. If approximated full normal curvature is omitted from the model, consistently omit it from the bound and prediction; do not mix exact and approximate formulas.

For positive prediction, accept when ared/pred\mathrm{ared}/\mathrm{pred} exceeds a small threshold; shrink on poor agreement and enlarge on strong agreement when the step reaches the boundary. A high ratio does not justify unbounded radius growth independently of the chosen algorithm safeguards. Stop only when both primal and stationarity residuals satisfy their tolerances; a small step alone is not convergence. Biegler Algorithm 5.5 pp.125–126 gives the detailed scheme; its convergence theorem needs its stated regularity and step-quality assumptions.

An explicit truncated example uses h=x1+2h=x_1+2, f=−x1−x2+12x12+x22f=-x_1-x_2+\frac12x_1^2+x_2^2, start(0,0)(0,0), Δ=1,ξ=.8\Delta=1,\xi=.8. The full linearized equality is distance2 away. The normal step is(−.8,0)(-.8,0), leaving violation1.2. The tangent optimum is(0,.5)(0,.5), so d=(−.8,.5)\mathbf d=(-.8,.5) has length.9434. At weight2, current merit is4 and trial merit is3.27; prediction and actual reduction are both.73 and the ratio is1. The accepted composite step makes progress without making the linearized constraints exactly feasible.

A filter trust-region method instead uses restoration to find a filter-acceptable iterate whose linearized constraints intersect the current ball, then solves the equality trust QP and applies historical/current-pair and objective-model tests. This is distinct from always computing a truncated composite step. Biegler Algorithm 5.6 pp.126–127 gives one formulation; its model-reduction notation should be evaluated at step0 and the trial step, with a consistent positive predicted reduction.

Constrained quasi-Newton information

The constrained secant pair uses a single fixed updated multiplier for both gradients:

sk=xk+1−xk,yk=∇xL(xk+1,vk+1)−∇xL(xk,vk+1).\mathbf s_k=\mathbf x^{k+1}-\mathbf x^k,\qquad \mathbf y_k=\nabla_{\mathbf x}L(\mathbf x^{k+1},\mathbf v^{k+1})-\nabla_{\mathbf x}L(\mathbf x^k,\mathbf v^{k+1}).

Changing the multiplier between the two terms adds constraint-gradient/multiplier variation that is not the intended fixed-multiplier curvature measurement. Damped BFGS enforces its curvature test before updating a positive-definite approximation. The complete unconstrained update derivation belongs to Quasi-Newton Methods, and the actual constrained update is in SQP. A full positive-definite approximation imposes more than positive reduced curvature; reduced-space updates can preserve the weaker local requirement. This is a modeling/linear-algebra choice, not a theorem that full BFGS always fails.

The Maratos effect and a second-order correction

Powell’s example is h=x12+x22−1h=x_1^2+x_2^2-1, f=2h−x1f=2h-x_1, x∗=(1,0)\mathbf x^*=(1,0), v∗=−3/2v^*=-3/2, and W(x∗,v∗)=I\mathbf W(\mathbf x^*,v^*)=\mathbf I. At a feasible point xk=(cos⁡t,sin⁡t)\mathbf x^k=(\cos t,\sin t), use that identity Hessian in the equality QP. The solve returns

d=(sin⁡2t,−sin⁡tcos⁡t)T,vˉ=cos⁡t−42.\mathbf d=(\sin^2t,-\sin t\cos t)^{\mathsf T},\qquad\bar v=\frac{\cos t-4}2.

Put c=cos⁡t,s=sin⁡tc=\cos t,s=\sin t. Then xk+d−x∗=(1−c)(c,s)T\mathbf x^k+\mathbf d-\mathbf x^*=(1-c)(c,s)^{\mathsf T}, so the full trial’s error is exactly half the old error squared. Nevertheless, h(xk+d)=s2h(\mathbf x^k+\mathbf d)=s^2 and f(xk+d)−f(xk)=s2f(\mathbf x^k+\mathbf d)-f(\mathbf x^k)=s^2. For s≠0s\ne0, every positive-weight ℓ1\ell_1 merit increases by (1+ρpen)s2(1+\rho_{\rm pen})s^2, and the current-pair filter margin also rejects it. This occurs arbitrarily near the minimum. Do not say it occurs at every nonzero angle: at t=πt=\pi or multiples of2π2\pi, the sine-based strict inequalities fail.

Evaluate the constraint at the full trial and compute a minimum-normal increment

r=−JT(JJT)−1h(xk+d),xSOC=xk+d+r.\mathbf r=-\mathbf J^{\mathsf T}(\mathbf J\mathbf J^{\mathsf T})^{-1}\mathbf h(\mathbf x^k+\mathbf d),\qquad \mathbf x_{\rm SOC}=\mathbf x^k+\mathbf d+\mathbf r.

For the circle, r=−12s2(c,s)T\mathbf r=-\frac12s^2(c,s)^{\mathsf T}, the corrected error is 12(1−c)2\frac12(1-c)^2, and the corrected residual is exactly s4/4s^4/4. Thus the error is the old error to the fourth power divided by8. Biegler’s norm equality after 5.111 p.129 has an incorrect coefficient; this is the corrected exact expression. For a fixed finite weight, Armijo constant 0<η<1/20<\eta<1/2, and sufficiently small nonzero tt, the corrected trial satisfies sufficient decrease and restores full steps. In fact Dϕ1=−s2D\phi_1=-s^2 and ϕ1(xSOC)−ϕ1(xk)=−s2(1−c/2)+(2+ρpen)s4/4\phi_1(\mathbf x_{\rm SOC})-\phi_1(\mathbf x^k)=-s^2(1-c/2)+(2+\rho_{\rm pen})s^4/4; dividing by −s2-s^2 gives a limiting decrease ratio of 1/21/2. Mere merit decrease at an arbitrary angle is not enough to assert Armijo acceptance: att=1t=1, weight2 and Armijo constant.1, this particular correction decreases merit but fails that Armijo test.

KKT-computed Maratos step, correction and Armijo test

This shared illustration and archive are generated by the actual SQP notebook’s model and KKT solver, att=.4t=.4, weight2 and Armijo constant.1. Its algorithm experiments also compare trajectories with and without the correction.

A second variant reoptimizes a replacement step:

min⁡d^∇fTd^+12d^TWd^,Jd^+hˉ=0,hˉ=h(xk+d)−Jd.\min_{\hat{\mathbf d}}\nabla f^{\mathsf T}\hat{\mathbf d}+\tfrac12\hat{\mathbf d}^{\mathsf T}\mathbf W\hat{\mathbf d},\quad \mathbf J\hat{\mathbf d}+\bar{\mathbf h}=\mathbf0,\quad \bar{\mathbf h}=\mathbf h(\mathbf x^k+\mathbf d)-\mathbf J\mathbf d.

Test xk+d^\mathbf x^k+\hat{\mathbf d}. Its increment is d^−d\hat{\mathbf d}-\mathbf d, never the replacement itself. For linear constraints the second QP equals the first and returnsd^=d\hat{\mathbf d}=\mathbf d, demonstrating why adding both would double the step. Taylor expansion gives hˉ=hk+12hk′′[d,d]+O(∥d∥3)\bar{\mathbf h}=\mathbf h_k+\frac12\mathbf h''_k[\mathbf d,\mathbf d]+O(\|\mathbf d\|^3) under the required extra smoothness; C2C^2 alone gives an o(∥d∥2)o(\|\mathbf d\|^2) remainder. One extra constraint evaluation supplies the quadratic residual information without evaluating its Hessians.

Replacement-QP and minimum-normal correction are different algorithms in general. Their increments satisfy the same linear correction constraint, but the QP also reoptimizes the tangent component. For J=[1,0]\mathbf J=[1,0], W=[2112]\mathbf W=\left[\begin{smallmatrix}2&1\\1&2\end{smallmatrix}\right], ∇f=(−1,−2)\nabla f=(-1,-2) and h=x1+12x22h=x_1+\frac12x_2^2 at the origin, the original step is(0,1)(0,1). The minimum-normal correction yields full step(−.5,1)(-.5,1), while the replacement QP yields(−.5,1.25)(-.5,1.25). Their tangent components differ because of Hessian coupling. They coincide in the identity-Hessian circle example. Either convention is valid when consistently defined and properly safeguarded; equality in one toy is not a universal equivalence theorem.

Optional supplement: nonmonotone watchdog cycles

A second-order correction changes the trial point to compensate for constraint curvature. A watchdog instead permits a limited period of merit increase while taking the algorithm’s ordinary directions. It saves an anchor and returns to it if subsequent steps do not earn sufficient progress. Thus it changes acceptance history rather than adding a normal correction. This supplementary topic is outside the fourteen-page classroom sequence.

For the one-relaxed-step variant in Nocedal–Wright Algorithm 15.3, p.445, hold the penalty weight fixed throughout a cycle and choose 0<η<1/20<\eta<1/2. Let x0\mathbf x_0 be the saved anchor, d0\mathbf d_0 its descent direction, D0=Dϕ(x0;d0)<0D_0=D\phi(\mathbf x_0;\mathbf d_0)<0 and ϕi=ϕ(xi)\phi_i=\phi(\mathbf x_i).

  1. Form the full trial x1=x0+d0\mathbf x_1=\mathbf x_0+\mathbf d_0. If ϕ1≤ϕ0+ηD0\phi_1\le\phi_0+\eta D_0, finish the cycle there. Otherwise keep this point temporarily as a relaxed step, retaining the saved anchor and direction.

  2. Compute an ordinary descent direction d1\mathbf d_1 at the relaxed point and backtrack to x2=x1+α1d1\mathbf x_2=\mathbf x_1+\alpha_1\mathbf d_1, requiring ϕ2≤ϕ1+ηα1Dϕ(x1;d1)\phi_2\le\phi_1+\eta\alpha_1D\phi(\mathbf x_1;\mathbf d_1).

  3. Resolve the cycle with the following branches:

    • If ϕ1≤ϕ0\phi_1\le\phi_0 or ϕ2≤ϕ0+ηD0\phi_2\le\phi_0+\eta D_0, keep x2\mathbf x_2 and finish the cycle.

    • If neither holds and ϕ2>ϕ0\phi_2>\phi_0, roll back to the saved anchor and backtrack along the saved direction. Set x3=x0+α0d0\mathbf x_3=\mathbf x_0+\alpha_0\mathbf d_0 with ϕ3≤ϕ0+ηα0D0\phi_3\le\phi_0+\eta\alpha_0D_0, then finish the cycle.

    • Otherwise ϕ2≤ϕ0\phi_2\le\phi_0, but the earlier tests did not establish the required recovery. Take one further ordinary descent step from x2\mathbf x_2, with its own Armijo line search, and finish the cycle at x3\mathbf x_3.

The saved anchor, primal/dual state, direction and weight must remain recoverable until the cycle succeeds; accepted trial state should not overwrite the only rollback copy. In this variant at most three new indices separate the distinguished cycle endpoints. More permissive multi-relaxed-step schemes need their own limits and recovery tests; they are not obtained by simply suppressing Armijo indefinitely.

For an acceptance trace with ϕ0=0,D0=−1,η=.1\phi_0=0,D_0=-1,\eta=.1, a relaxed full trial ϕ1=.2\phi_1=.2 fails the anchor bound -.1. If the next direction has derivative-1 and step length.5, its own Armijo bound is.15. A second merit-.12 passes that local bound and recovers the anchor’s required decrease, so the two-step cycle succeeds. A different trace with ϕ1=.4\phi_1=.4, second-direction derivative-1, step length1 and ϕ2=.25\phi_2=.25 satisfies its local bound.3 yet remains above the anchor: it must roll back. Local decrease from the relaxed point is not the same as recovery relative to the saved anchor.

A convergence proof analyzes the distinguished cycle endpoints and the underlying direction/line-search assumptions. It does not demand that every intermediate merit value decrease. Local full-step and rate results also require the usual regularity and curvature hypotheses; a finite relaxation window alone proves neither convergence nor a global minimum. Compared with correction, watchdog cycles can avoid the extra correction-specific constraint evaluation, but rollback and extra ordinary steps can still cost evaluations. See Nocedal–Wright §§15.5–15.6, pp.440–446, especially Algorithm15.3; the existing SQP notebook implements second-order correction, not this optional watchdog variant.

Inequality extensions and implementation scope

For the convention gi≤0g_i\le0, an ℓ1\ell_1 violation measure is ∑j∣hj∣+∑imax⁡(gi,0)\sum_j|h_j|+\sum_i\max(g_i,0). Equality multipliers are unrestricted and inequality multipliers nonnegative; exactness thresholds include their corresponding magnitudes. Directional derivatives for a zero inequality residual usemax⁡(∇giTd,0)\max(\nabla g_i^{\mathsf T}\mathbf d,0) rather than the absolute value used for an equality. Active inequalities, critical-cone curvature, QP feasibility and elastic relaxation need their own assumptions. The equality formulas do not transfer unchanged merely by renaming the residual. Local Optimality, Constraint Qualifications, Second Order Optimality Conditions and the SQP implementation provide the canonical details.

Additional references

  • Fletcher, Leyffer and Toint (2002), “On the global convergence of a filter-SQP algorithm,” SIAM Journal on Optimization13(1), pp.44–59. Equations 2.5/2.6 distinguish margin choices; Theorem 7 states the convergence alternatives. DOI.

  • Wächter and Biegler (2006), “On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming,” Mathematical Programming106, pp.25–57. Section2.3 specifies the barrier filter, switching and restoration. DOI.

References
  1. Fletcher, R., Leyffer, S., & Toint, P. L. (2002). On the Global Convergence of a Filter–SQP Algorithm. SIAM Journal on Optimization, 13(1), 44–59. 10.1137/s105262340038081x