Karush-Kuhn-Tucker Conditions: Constraint Qualifications and Second-Order Conditions
Anchor (Master): Nocedal & Wright 2006 Numerical Optimization (Springer) Ch. 12 (§12.4 tangent/linearized cones, §12.5 second-order conditions); Bertsekas 1999 Nonlinear Programming (Athena Scientific) §3.3; Rockafellar 1970 Convex Analysis (Princeton) §28
Intuition Beginner
When a problem has no rules, finding the lowest point is plain: walk downhill until the ground is flat. At a flat spot the slope is zero in every direction, and that zero-slope test is the whole story. Constraints change the picture. Now a fence blocks part of the ground, and the lowest reachable point may sit pressed against the fence, where the ground is still tilted but you cannot step further because the fence stops you.
The Karush-Kuhn-Tucker conditions are the fence-aware version of "the slope is zero." At a best point, the downhill pull of the cost must be exactly balanced by the push-back of the fences you are leaning on. Each fence you touch pushes outward with some strength, and at the optimum the cost's pull is a blend of those pushes. The strength of each push is a price, the same multiplier from Lagrangian pricing: a high price means that fence is really holding you back.
A fence you are not touching cannot push at all, so its price must be zero. This pairing — either you lean on a fence and it may charge a price, or you stand clear of it and it charges nothing — is called complementary slackness. It is the bookkeeping that says only the rules currently binding you matter for balance.
For the well-behaved problems built from convex costs and convex fences, this balance test is not just a clue that you might be at the best point: it is a complete certificate. Find prices that balance the pull, with idle fences priced at zero, and you have proven you are at the true optimum. For wilder problems the same equations are still necessary, but only once the fences meet a mild non-degeneracy requirement that keeps the geometry honest.
Visual Beginner
Figure: a contour map of a cost function with one straight constraint fence. The unconstrained minimum sits outside the allowed region. The constrained best point sits on the fence, where the cost's downhill arrow points straight into the fence and the fence's outward normal arrow points straight back. The two arrows lie on one line: the cost pull equals a positive price times the fence push.
cost contours (rings around the free minimum *)
___________
/ _____ \ allowed side | blocked side
/ / \ \ |
| | * | | <- free min here | FENCE
\ \_____/ / |
\___________ / best feasible | point x* sits ON
x* o-----> | the fence
cost pull (gradient, into fence) -> | <- fence push (normal, out)
at x*: -grad f0(x*) = lambda * (outward normal), lambda >= 0
idle fences: not touched => their price is 0 (complementary slackness)
Worked example Beginner
Minimize subject to the rule . The cost is the squared distance to the point , so without the rule the best point is itself, with cost . But breaks the rule, since . The best allowed point must sit on the fence line .
Step 1. Set up the balance. The cost pull (negative gradient) at a point is the arrow toward , namely . The fence pushes outward along the direction . Balance asks for a price with and .
Step 2. Use the fence. Equal right-hand sides force , so . On the fence this gives .
Step 3. Read the price. Then , which is at least , as required. The fence is touched (), so a positive price is allowed; complementary slackness is satisfied because the fence is active.
Step 4. Check the cost. At the cost is .
What this tells us. The balance equations picked out the point with price , and that point is the closest allowed point to . The cost arrow points straight across the fence and the fence pushes straight back with strength : pull balanced by push, exactly the KKT picture.
Check your understanding Beginner
Formal definition Intermediate+
Consider the nonlinear program over ,
with continuously differentiable. The feasible set is . At a feasible the active set is : the equalities plus the inequalities holding with equality. The Lagrangian is , with , .
Definition (KKT point). A point is a Karush-Kuhn-Tucker point if there exist multipliers , with
together with (dual feasibility), and (primal feasibility), and
Complementary slackness forces whenever , so the stationarity sum runs effectively over the active set .
Definition (tangent cone and linearized feasible cone). The tangent cone collects all limiting feasible directions: if there are feasible points and scalars with . The linearized feasible cone uses only first-order data,
Always ; the tangent cone respects the curved feasible set, while replaces each constraint by its tangent half-space.
Definition (constraint qualifications). A constraint qualification (CQ) is a condition on the active constraints at that makes the linear approximation faithful. The linear independence CQ (LICQ) holds if the active gradients are linearly independent. The Mangasarian-Fromovitz CQ (MFCQ) holds if the equality gradients are linearly independent and there is a direction with for all active and for all . The linear-constraints CQ holds when all are affine. For convex problems Slater's condition of 44.02.01 plays the same role globally. Each CQ forces , the equality that makes stationarity necessary.
Counterexamples to common slips
- Without a CQ, a minimizer need not be a KKT point. Minimize subject to and . The origin is the unique minimizer, but the active gradients are -values that are linearly dependent and the linearized cone is strictly larger than the tangent cone; no multipliers satisfy stationarity. The cusp degeneracy, not the objective, breaks KKT.
- KKT is necessary, not sufficient, off the convex case. A KKT point can be a maximizer or a saddle of a nonconvex problem; the first-order system only certifies stationarity of the Lagrangian. Sufficiency for a local minimum needs the second-order condition; global sufficiency needs convexity.
- Active set is the right index set, not the full constraint list. Including inactive inequalities in the stationarity sum with nonzero multipliers violates complementary slackness; only constraints with may carry positive multipliers.
Key theorem with proof Intermediate+
The headline is the convex case, where KKT is both necessary and sufficient, followed by the general first-order necessary theorem under LICQ. The convex case rests on the saddle-point characterization of 44.02.01; the general case rests on the Farkas alternative of 44.02.04.
Theorem (KKT for the convex problem). Suppose are convex and differentiable, the are affine, and Slater's condition holds. Then is a global minimizer if and only if there exist with such that satisfies the KKT conditions.
Proof. () Let be a global minimizer, so is finite. Slater and convexity give strong duality with dual attainment by 44.02.01: there is , , with . By definition . Using and , the right side is . Equality throughout forces two facts: , hence (each term ) termwise — complementary slackness; and minimizes over . Since that map is convex and differentiable, its unconstrained minimum is characterized by — stationarity. Primal and dual feasibility hold by hypothesis, so the KKT system holds.
() Suppose satisfies KKT. The map is convex (a nonnegative-weighted sum of the convex , the affine , and convex , using ; this is the convex-operation calculus of 44.01.01). Stationarity then certifies as its global minimizer: for all . For any feasible (so , ),
where the first inequality uses and , and the final equality uses complementary slackness and feasibility of . So is a global minimizer.
Theorem (first-order necessary conditions under LICQ, general NLP). Let be a local minimizer of the differentiable NLP at which LICQ holds. Then there exist unique multipliers with satisfying the KKT conditions.
Proof. Two geometric facts drive the argument. First, local optimality gives for every : any tangent direction is a limit of feasible secants, along which cannot decrease to first order. Second, LICQ gives (proved in the Full proof set via the implicit function theorem applied to the active constraints). Combining, for all , i.e. makes a nonpositive inner product with no feasible linearized direction; equivalently whenever (active ) and .
This is exactly the hypothesis of the Farkas alternative of 44.02.04. Assemble the active inequality gradients as columns of and the equality gradients (and their negatives) to encode the sign-free conditions; the statement " on the polyhedral cone " is precisely the case where Farkas yields nonnegative coefficients (active ) and free with
Setting for inactive gives stationarity and complementary slackness simultaneously, and is dual feasibility. Uniqueness: any two multiplier vectors satisfying stationarity differ by a vector in the kernel of the active-gradient map, which LICQ (linear independence of active gradients) forces to be zero.
Bridge. This theorem builds toward the second-order conditions of the Advanced results and the constrained Newton and SQP algorithms of chapters 03-04, and appears again in every certificate of local optimality for nonlinear programs. This is exactly the differential form of the saddle-point characterization of 44.02.01: stationarity is " minimizes the Lagrangian," complementary slackness is the saddle bookkeeping, and the multiplier is the same supporting-hyperplane slope. The foundational reason a constraint qualification is needed is that KKT is a statement about the linearized feasible cone , while optimality lives on the true tangent cone ; the central insight is that a CQ is precisely what forces so the linear model is faithful. Putting these together, the convex case generalises the elementary zero-gradient test by replacing flatness with Lagrangian flatness, and is dual to the strong-duality theorem it consumes; the general case is dual to the Farkas alternative of 44.02.04, with the active gradients as the cone columns and the multipliers as the nonnegative combination certifying that lies in the cone they span.
Exercises Intermediate+
Advanced results Master
The tangent cone, the linearized cone, and Abadie's qualification
The exact necessary condition with no qualification is geometric: at a local minimizer, lies in the polar of the tangent cone, [Nocedal & Wright §12.4]. This is unconditional and contentless until the tangent cone is described by gradients, which is the role of a CQ. Abadie's constraint qualification is the weakest standard one, asserting exactly ; KKT then follows because is the cone generated by the active constraint gradients (Farkas of 44.02.04 computes the polar of a polyhedral cone). LICQ and MFCQ are sufficient conditions for Abadie's CQ, and the hierarchy
orders the qualifications by strength, with the constant-rank CQ and the linear-constraints CQ sitting between MFCQ and Abadie. The Guignard CQ, requiring only (polars equal, cones possibly not), is the genuinely weakest qualification under which KKT is necessary at every objective; everything weaker fails for some objective.
Multiplier existence, uniqueness, and the Fritz John form
Dropping every qualification, the Fritz John conditions always hold at a local minimizer: there exist with and , plus complementary slackness [Mangasarian & Fromovitz 1967]. KKT is the normalized case ; a CQ is precisely what excludes the degenerate , in which the objective drops out and the conditions say nothing about optimality. MFCQ is equivalent to being forced and, by Gauvin's theorem, to boundedness of the multiplier set; LICQ strengthens this to the multiplier set being a singleton. The pairing-with-the-MFCQ-direction bound of Exercise 8 is the quantitative form, and it is exactly the dual-attainment-plus-compactness phenomenon that Slater produces globally in 44.02.01.
Second-order necessary and sufficient conditions on the critical cone
First-order conditions cannot separate minima from maxima and saddles at a KKT point; the second-order theory does this on the critical cone. Given a KKT point , the critical cone is
the linearized feasible directions along which the objective's first-order change is zero. The second-order necessary condition states that if is a local minimizer and LICQ holds, then for all . The second-order sufficient condition states that if is KKT and for all nonzero , then is a strict local minimizer with a quadratic growth bound on a neighborhood [Nocedal & Wright §12.5]. The curvature is read off the Lagrangian Hessian, not the objective Hessian, and only on the critical cone, because the constraints absorb the curvature in their own active directions. Strict complementarity ( for all active ) collapses the critical cone to the lineality space , simplifying the test to a reduced-Hessian positive-definiteness check.
Sensitivity, the value function, and reduced-space curvature
Under LICQ, strict complementarity, and the second-order sufficient condition, the KKT solution map is differentiable in problem data and the optimal multipliers are the sensitivities of the value function to constraint perturbations, the smooth refinement of the global subgradient bound of 44.02.01. The implicit function theorem applied to the KKT system has nonsingular Jacobian exactly when the second-order sufficient condition holds, which is why that condition is the workhorse hypothesis for the local quadratic convergence of SQP and interior-point methods. On the active manifold the second-order condition is equivalent to positive definiteness of the reduced Hessian , where the columns of are a basis for the null space of the active-constraint Jacobian — the same projected-curvature object that null-space and range-space constrained-Newton methods factor.
Synthesis. The KKT conditions are exactly the differential shadow of the saddle-point characterization of 44.02.01, and the central insight of this unit is that first-order optimality is a statement about cones: at a minimizer lies in the polar of the tangent cone, and a constraint qualification is the single hypothesis that makes the tangent cone equal to its computable linearization . The foundational reason KKT can fail without a CQ is a tangent-cone/linearized-cone mismatch — the cusp degeneracy where the curved feasible set is thinner than its tangent half-spaces — and the LICQ MFCQ Abadie hierarchy orders exactly the strength of the guarantee that no such mismatch occurs. Putting these together, multiplier existence is dual to the Farkas alternative of 44.02.04: the active gradients are the cone columns and the multipliers are the nonnegative combination expressing , so LICQ (independence) yields a unique multiplier and MFCQ (a strict feasible direction, the local Slater) yields a bounded compact multiplier set. The second-order theory generalises the elementary Hessian test by reading curvature off the Lagrangian on the critical cone, and this is exactly the reduced-Hessian positive-definiteness that appears again in the constrained Newton, SQP, and interior-point algorithms of chapters 03-04, where the KKT system is the nonlinear target and its Jacobian is nonsingular precisely under the second-order sufficient condition.
Full proof set Master
Proposition 1 (tangent cone is contained in the linearized cone). For any feasible , .
Proof. Let , witnessed by feasible , , . For an active inequality , and , so by differentiability ; dividing by and passing to the limit gives . For an equality , gives by the same expansion applied to and . So .
Proposition 2 (LICQ forces ). If LICQ holds at , then , hence equality.
Proof. Let . Stack the active constraints into a map whose components are ( active) and ; LICQ says the Jacobian has full row rank . Choose a smooth curve with , , and active constraints held at their first-order targets: by full row rank, the implicit function theorem solves where for active inequalities and for equalities, with . Concretely, parametrize and solve for the correction via the implicit function theorem, valid because has full row rank. Then for active inequalities for small , equalities are held to , and inactive inequalities remain strictly negative by continuity; so for small , and , giving . With Proposition 1 this is equality.
Proposition 3 (KKT first-order necessary conditions under LICQ). If is a local minimizer and LICQ holds, KKT multipliers exist and are unique.
Proof. Local optimality gives for all : along the witnessing curve, for small , and the first-order expansion forces the directional derivative to be nonnegative. By Proposition 2, , so for every with (active ) and . Splitting each equality into two inequalities, this is the premise of the Farkas alternative of 44.02.04: lies in the cone generated by and , yielding (active), free , and . Set inactive : stationarity and complementary slackness hold, . Uniqueness is Exercise 8's LICQ argument.
Proposition 4 (second-order necessary condition). Let be a local minimizer at which LICQ holds, with KKT multipliers . Then for all .
Proof. Fix . By the curve construction of Proposition 2 (LICQ), there is a feasible curve with , , and the active constraints with held identically at their boundary (possible since on the critical cone for those ); the equalities are held to . Along this curve because every active term with stays and inactive . Local optimality gives . Differentiating twice at : the first derivative is (stationarity), so the second-order Taylor expansion of 02.05.05 gives . Dividing by and letting yields .
Proposition 5 (second-order sufficient condition). Let be a KKT point with for all nonzero . Then is a strict local minimizer, with near for some .
Proof. Suppose not: there are feasible , , with . Set ; passing to a subsequence , . Feasibility forces (Proposition 1). For active , the second-order expansion of along the secant, using stationarity small and complementary slackness, gives , where the inequality uses . The assumption forces . One checks : from the assumed near-non-increase combines with on (stationarity paired with the multiplier signs) to give equality, forcing for with . Thus , , with , contradicting the hypothesis. The quadratic growth bound follows from the uniform positive curvature on the unit critical sphere.
Connections Master
The saddle-point and strong-duality theory of
44.02.01is the direct parent: the convex KKT theorem is the differential reading of the saddle-point characterization, stationarity is " minimizes the Lagrangian," and complementary slackness is the saddle bookkeeping that closes the duality gap. The multiplier produced here is exactly the supporting-hyperplane slope and dual optimizer of that unit, and Slater's condition there is the global convex instance of the constraint qualifications studied here.Farkas' lemma and the theorems of the alternative
44.02.04are the multiplier-existence engine: the general first-order necessary theorem is Farkas applied to the objective gradient against the active-constraint gradients, with the linearized feasible cone as the polyhedral cone and the multipliers as the nonnegative combination certifying that lies in the cone the active gradients span. The polar-cone computation underlying Abadie's CQ is Farkas computing the dual of a finitely generated cone.The multivariable Taylor and extremum theory of
02.05.05supplies the smooth machinery: the first-order expansion of constraints proves , the implicit function theorem proves the reverse inclusion under LICQ, and the second-order Taylor remainder is what turns the Lagrangian-Hessian sign on the critical cone into the second-order necessary and sufficient conditions. KKT is the constrained generalization of the unconstrained stationary-point-plus-Hessian test established there.The convex-operation calculus and supporting-hyperplane apparatus of
44.01.01underwrites both directions of the convex KKT theorem: convexity of for makes stationarity globally sufficient, and the same epigraph/supporting-line structure is what gives the first-order characterization of unconstrained convex minima that the proof invokes.
Historical & philosophical context Master
The conditions carry three names because they were discovered twice. William Karush stated the first-order necessary conditions for inequality-constrained minima, together with a constraint qualification, in his 1939 University of Chicago master's thesis [Karush 1939], supervised in the calculus-of-variations tradition of Lawrence Graves and Magnus Hestenes; the thesis remained unpublished and unnoticed for decades. Harold Kuhn and Albert Tucker rediscovered and published the conditions in their 1951 paper Nonlinear Programming [Kuhn & Tucker 1951] (Proceedings of the Second Berkeley Symposium, 481-492), framing them within the emerging linear- and nonlinear-programming theory and explicitly identifying the role of a constraint qualification — they used a qualification on attainable directions that later analysis showed to be one of a graded family. Kuhn himself later credited Karush's priority, and the three-name attribution became standard.
The qualification theory was systematized in the 1960s. Fritz John's 1948 conditions had already shown that a degenerate multiplier on the objective could appear without a qualification; Olvi Mangasarian and Stan Fromovitz's 1967 paper [Mangasarian & Fromovitz 1967] (Journal of Mathematical Analysis and Applications 17, 37-47) isolated the qualification now bearing their names and proved it both excludes the degenerate Fritz John case and bounds the multiplier set, a result sharpened to compactness by Gauvin. The reorganization around convex analysis is due to Rockafellar, whose treatment placed the multipliers as subgradients of the value function, and the second-order theory on the critical cone reached its modern form in the numerical-optimization literature codified by Nocedal and Wright, where it is the standard regularity hypothesis for the local convergence analysis of constrained Newton, sequential quadratic programming, and interior-point methods.
Bibliography Master
@book{boyd2004convex,
author = {Boyd, Stephen and Vandenberghe, Lieven},
title = {Convex Optimization},
publisher = {Cambridge University Press},
year = {2004}
}
@book{nocedal2006numerical,
author = {Nocedal, Jorge and Wright, Stephen J.},
title = {Numerical Optimization},
edition = {2nd},
series = {Springer Series in Operations Research and Financial Engineering},
publisher = {Springer},
year = {2006}
}
@book{bertsekas1999nonlinear,
author = {Bertsekas, Dimitri P.},
title = {Nonlinear Programming},
edition = {2nd},
publisher = {Athena Scientific},
year = {1999}
}
@mastersthesis{karush1939minima,
author = {Karush, William},
title = {Minima of Functions of Several Variables with Inequalities as Side Conditions},
school = {Department of Mathematics, University of Chicago},
year = {1939}
}
@inproceedings{kuhn1951nonlinear,
author = {Kuhn, Harold W. and Tucker, Albert W.},
title = {Nonlinear Programming},
booktitle = {Proceedings of the Second Berkeley Symposium on Mathematical Statistics and Probability},
pages = {481--492},
publisher = {University of California Press},
year = {1951}
}
@article{mangasarian1967fritz,
author = {Mangasarian, Olvi L. and Fromovitz, Stan},
title = {The {Fritz John} Necessary Optimality Conditions in the Presence of Equality and Inequality Constraints},
journal = {Journal of Mathematical Analysis and Applications},
volume = {17},
pages = {37--47},
year = {1967}
}
@article{john1948extremum,
author = {John, Fritz},
title = {Extremum Problems with Inequalities as Subsidiary Conditions},
journal = {Studies and Essays Presented to R. Courant on his 60th Birthday},
pages = {187--204},
year = {1948}
}