4.10.19 · D5Advanced Topics (Elite Level)

Question bank — KKT conditions for constrained optimization

1,623 words7 min readBack to topic

Two reminders before we start, so every symbol below is already grounded:


True or false — justify

TF1. If a KKT point exists, it must be the global minimum.
False — for non-convex problems KKT are only necessary, so a KKT point can be a maximum, a saddle, or a local (not global) min; only convexity upgrades them to sufficient.
TF2. Equality multipliers must be non-negative.
False — only inequality multipliers ; equality multipliers are free in sign, exactly like ordinary Lagrange Multipliers.
TF3. At any feasible point, complementary slackness holds automatically.
False — it is a condition KKT imposes at the optimum, not a fact about every feasible point; a random feasible point can have with a nonzero and violate it.
TF4. If (fence not touched), then .
True — slackness with forces ; an untouched fence exerts no push.
TF5. If , the corresponding constraint must be active.
True — slackness forces whenever ; a fence only pushes back when you're leaning on it.
TF6. For a convex problem, satisfying all four KKT conditions guarantees a global minimum.
True — with convex and affine, KKT are necessary and sufficient for a global min.
TF7. Every point where (a flat spot of ) is a KKT point.
False — it's only KKT if it's also feasible and the multipliers can be chosen to satisfy stationarity/slackness; a flat spot outside the feasible region isn't a solution at all.
TF8. LICQ is needed for KKT to be sufficient.
False — LICQ is needed for KKT to be necessary at a minimum; sufficiency comes from convexity, a separate ingredient.
TF9. If both fences are inactive at , the problem locally behaves like an unconstrained one.
True — inactive constraints have zero multipliers and drop out of stationarity, so locally you're just at a flat spot of .
TF10. In a convex problem, KKT points are unique.
False — convexity guarantees a global optimum value but the minimizer set can be a whole flat region (e.g. minimizing a constant on a segment), giving many KKT points.

Spot the error

SE1. "I wrote with and got , so the problem has no solution."
The sign is wrong: with the correct stationarity is , i.e. ; converting to form first fixes the flipped .
SE2. "To find the optimum I set every constraint active and solved the resulting system."
Forcing a truly-inactive constraint to be active yields a , which violates dual feasibility — that negative value is a flag that your active-set guess is wrong, not the answer.
SE3. "The point is feasible and , so it's optimal — no need to check ."
Stationarity plus feasibility isn't enough; without checking you may have found a maximum or a wrong active-set case that leans the wrong way against the fence.
SE4. "I have , so I used pointing outward with directly."
You must first rewrite as ; skipping the conversion silently flips the sign that the rule depends on.
SE5. "My problem is non-convex but I found a KKT point, so I reported it as the global minimum."
For non-convex problems KKT is only necessary; you must compare all KKT candidates (and possibly boundary/infeasibility cases) since some are maxima or saddles.
SE6. "LICQ failed at my optimum, so my point can't actually be a minimum."
LICQ failing only means the KKT multipliers may not exist or be unique — the point can still be a genuine minimum; you just can't rely on KKT to certify it.
SE7. "Complementary slackness gives me , so I can always set ."
Only when ; if the constraint is active () the product is zero for any , so you must solve for , not assume it's zero.

Why questions

WHY1. Why must but can be any sign?
A fence blocks motion only on one side (), so its push must point one way (non-negative multiplier); a wire () blocks motion on both sides, so its multiplier can pull either direction.
WHY2. Why is complementary slackness the single statement that unifies "active vs inactive"?
The product forces at least one factor to vanish — either (active) or (inactive) — capturing both cases in one equation.
WHY3. Why does KKT need a constraint qualification at all?
Without one, the active constraint gradients can be degenerate (e.g. fences meeting in a cusp), and then no multipliers exist to express as their combination even at a true minimum.
WHY4. Why does convexity turn KKT from necessary into sufficient?
In a convex problem a stationary feasible point with the right sign conditions has no feasible descent direction anywhere (not just locally), so it must be the global minimum — see Convex Optimization.
WHY5. Why, geometrically, must lie inside the cone of active constraint gradients?
If (the downhill pull) stuck outside that cone, some feasible direction would still reduce ; being trapped inside the cone means every escape route violates a constraint.
WHY6. Why does an inactive constraint contribute nothing to stationarity?
Its multiplier is forced to zero by slackness, so its gradient term drops from — a fence you're not touching exerts no force.
WHY7. Why do KKT conditions matter so much for Support Vector Machines?
The SVM is a convex program, so KKT are sufficient; complementary slackness picks out exactly the support vectors (active constraints with ) that define the margin.
WHY8. Why does duality relate to KKT?
KKT stationarity is exactly , and with slackness are the conditions under which the primal and dual optima coincide (strong duality).

Edge cases

EC1. What are the KKT conditions when there are no inequality constraints, only equalities?
They collapse to ordinary Lagrange Multipliers: with feasibility , and no sign restriction on any multiplier.
EC2. What happens to KKT if there are no constraints at all?
Stationarity reduces to — the plain unconstrained first-order condition, the "flat ground" case.
EC3. A constraint is active and its multiplier is exactly zero (, ). Is that allowed?
Yes — this "degenerate" or weakly active case satisfies slackness; the fence is touched but exerts no push, often a sign the optimum sits right at a boundary that isn't binding.
EC4. The feasible region is empty (constraints contradict). What do KKT say?
Nothing — KKT presupposes a feasible optimum; with no feasible point there is no to test, so the whole framework doesn't apply.
EC5. The objective is unbounded below on the feasible set. Can a KKT point still exist?
No finite minimizer exists, so there's no KKT point; stationarity would require a balance that never occurs as .
EC6. Two fences have identical gradients at (linearly dependent). What breaks?
LICQ fails, so the multipliers may be non-unique or non-existent — you can't cleanly read off the forces even if the point is optimal.
EC7. Can a KKT point be a local maximum of ?
Yes, for non-convex problems — stationarity is symmetric to min/max, so KKT catches maxima and saddles too unless convexity rules them out.
EC8. What does it mean if projected gradient descent stalls at a point where the projected gradient is zero?
It has reached a KKT point of the constrained problem — the descent direction is fully cancelled by the constraint projection, mirroring stationarity plus slackness.

Recall One-line summary of the deepest trap

The two conditions people confuse: is about sign (fences push one way), slackness is about activity (fences push only when touched) — they're different rules, both required.