44.02.01 · optimization-control / 02-convex-duality-kkt

Lagrangian Duality, Weak and Strong Duality, and Slater's Condition

shipped3 tiersLean: none

Anchor (Master): Bertsekas 2009 Convex Optimization Theory (Athena Scientific) §4.1-§4.3, §5.3; Rockafellar 1970 Convex Analysis (Princeton) §28-§30; Boyd & Vandenberghe 2004 Convex Optimization (Cambridge) §5.3-§5.5, §5.9

Intuition Beginner

Many real problems ask you to make something as small as possible while obeying rules. Minimize the cost of a bridge, but the bridge must hold a certain load. Minimize fuel, but arrive on time. The rules are constraints, and they make the problem harder: you cannot just walk downhill, because downhill might break a rule.

Lagrangian duality is a way to convert hard rules into prices. Instead of forbidding a rule violation outright, you charge a fee for breaking it. If you exceed the load limit by a little, you pay a penalty proportional to the overage. The fee per unit of violation is called a multiplier or a price. Once rules are priced, the constrained problem becomes an unconstrained one: just minimize cost plus fees.

Here is the clever part. For any fixed set of prices, you can solve the cheap unconstrained version and get a number. That number is always a lower bound on the true best cost of the original problem. Why? Because the original problem obeys the rules, so it pays no fees, while the priced version is free to bend the rules whenever bending saves more than the fee. A more permissive problem can only do better, so its best value sits at or below the real best value.

So every choice of prices hands you a guarantee: "the true answer is no smaller than this." It is natural to ask for the best such guarantee — the prices that push the lower bound as high as possible. That search is the dual problem. Solving it tells you how close you are to the real optimum, and often, for well-behaved problems, the best guarantee exactly equals the true cost.

Visual Beginner

Figure: a horizontal axis showing the cost of a constrained problem. The true best feasible cost sits at a value marked p-star. Below it, a sequence of dual lower bounds creep upward as the prices are tuned, each one a valid floor. The highest dual bound is marked d-star. When the two coincide, the gap closes; when d-star sits strictly below p-star, the leftover distance is the duality gap.

   dual lower bounds (one per price choice)        primal best
        |        |          |        |                  |
  ------+--------+----------+--------+--------|---------+------->  cost
        b1       b2         b3      d*  <-gap->         p*

   every dual value bi <= p*   (weak duality: floors below the true best)
   d* = best floor = highest guarantee
   gap = p* - d*    (zero for nice convex problems: strong duality)

Worked example Beginner

Minimize over a single variable, subject to the rule . The honest answer is plain: the smallest square allowed is at , giving cost . We now recover that as a best price and see the lower-bound mechanism work.

Step 1. Price the rule. Rewrite the rule as and charge a fee per unit of violation. The priced cost is .

Step 2. Minimize the priced cost over . For fixed , the cheapest sets the slope to zero: the slope is , so . Plugging back, the best priced value is

Step 3. This is a lower bound for every price. Try : , which is below the true cost . Try : again, still below . Each price gives a valid floor.

Step 4. Pick the best price. Maximize over . Its slope is , zero at , where .

What this tells us. The best dual value is , exactly the true constrained cost. The gap is zero: the price buys a guarantee that cannot be improved, and that guarantee is the right answer.

Check your understanding Beginner

Formal definition Intermediate+

Consider the standard-form optimization problem over , with domain assumed nonempty,

with optimal value (taken as if infeasible). No convexity is assumed yet.

Definition (Lagrangian). The Lagrangian is

where are the inequality multipliers and the equality multipliers (the dual variables). The vector is required nonnegative, free.

Definition (dual function). The Lagrange dual function is the pointwise infimum of the Lagrangian over ,

For each fixed , the map is affine, hence concave; an infimum of affine functions is concave [Boyd & Vandenberghe §5.1.2]. So is concave and upper-semicontinuous on no matter how nonconvex the primal data are. The dual function may take the value ; its effective domain is .

Definition (dual problem). A pair is dual feasible if (componentwise) and . The Lagrange dual problem is the concave maximization

a convex optimization problem (maximizing a concave function over a convex set) regardless of the primal. Its optimal value is . The number is the duality gap; strong duality is the statement .

Definition (perturbation / value function). The perturbed problem parameterizes the right-hand sides,

so . The optimal value function packages all perturbations; its epigraph is the closure of the value set (or constraint-image set)

When are convex and the affine, is convex and is a convex set; this is the structural hypothesis under which strong duality becomes available.

Counterexamples to common slips

  • A nonzero duality gap is normal off the convex case. The nonconvex problem of minimizing subject to a quadratic equality can have strictly above ; weak duality still holds, but the dual recovers only a loose bound. Strong duality is a theorem about convex problems with a qualification, not a universal law.
  • Convexity alone does not force a zero gap. The convex problem has but : the feasible set has empty relative interior in the relevant sense, so Slater's condition fails and the gap is positive even though every function in sight is convex.
  • The dual function is concave even when the primal is wild. is an infimum of affine functions of for any primal data; do not expect concavity of to certify anything about the primal. It is the value , not the shape of , that interacts with primal convexity.

Key theorem with proof Intermediate+

The two pillars are weak duality, which is unconditional, and strong duality under Slater's constraint qualification, which rests on separating a point from the convex value set — the finite-dimensional shadow of the geometric Hahn-Banach theorem of 02.11.02.

Theorem (weak and strong Lagrangian duality).

(i) (Weak duality.) For the standard-form problem, . In particular for every dual-feasible .

(ii) (Strong duality under Slater.) Suppose the problem is convex: are convex, the equality maps are affine , and has nonempty interior. Suppose Slater's condition holds: there exists a strictly feasible point with for all and for all . If is finite, then and the dual optimum is attained by some with .

Proof of (i). Let be any primal-feasible point: and . For dual-feasible with , each term and each , so

Taking the infimum of the left side over all only decreases it, so . Minimizing the right side over feasible gives . Taking the supremum over dual-feasible yields .

Proof of (ii). Treat the inequality constraints; the affine equalities are carried along by an identical separating-functional bookkeeping and are suppressed for readability (they contribute the free multipliers ). Define the value set

Because are convex and the conditions defining are "" inequalities in jointly convex data, is a convex subset of (if via , then witnesses the convex combination by convexity of each and ; this is the convex-operation calculus of 44.01.01). By definition and no point with lies in .

The point is not in the interior of from below: . By the supporting/separating-hyperplane theorem for convex sets — the finite-dimensional case of the geometric Hahn-Banach result of 02.11.02, here requiring no choice principle — there is a nonzero with

Since can be increased without bound inside (raise the objective slack), ; since each can be increased without bound (loosen a constraint), . Suppose . Then on with , ; evaluating at the Slater point, gives , but and force unless — a contradiction. Hence ; rescale so and set .

The separating inequality reads for all . Applying it to the witness point of any ,

which is exactly . Taking the infimum over , . Weak duality gives the reverse , so and attains the dual optimum.

Bridge. This theorem builds toward the optimality conditions of 44.02.02 and appears again in every primal-dual algorithm and certificate of optimality. This is exactly the geometric content that generalises the elementary penalty intuition: the multipliers are the slopes of the supporting hyperplane to the value set at , so the dual problem is the search for that supporting hyperplane, and Slater's condition is what guarantees the support is non-vertical (). The foundational reason strong duality can fail is a vertical supporting hyperplane, which Slater rules out by placing a strictly feasible point in the relative interior. Putting these together, weak duality is dual to the feasibility side and is unconditional, while strong duality is the separation theorem of 02.11.02 applied to the convex value set assembled by the operation calculus of 44.01.01; the multiplier is the price that closes the gap, and it reappears as the KKT multiplier of 44.02.02.

Exercises Intermediate+

Advanced results Master

The perturbation function and conjugate duality

The Lagrangian dual is one instance of a general construction. Embed the primal in a family of perturbed problems with value function , convex when the data are convex and the equalities affine. The dual function is, up to sign, the conjugate of evaluated on the multipliers: restricted to , where is the Legendre-Fenchel conjugate of 37.07.03. Weak duality is then the Fenchel-Young inequality , and strong duality is the statement that is closed at the origin, , biconjugation specialized to the perturbation function. This is the Rockafellar conjugate-duality picture [Rockafellar §29-§30]: the duality gap is exactly the discrepancy between and its lower convex closure at , and it vanishes whenever is lower-semicontinuous there. Slater's condition is one sufficient regularity guaranteeing that closure, by forcing into the relative interior of , where a convex function is automatically continuous.

Min-common / max-crossing duality

Bertsekas isolates the geometric kernel as the min common / max crossing (MC/MC) framework [Bertsekas §4.1-§4.2]. Given a set , the min common value is and the max crossing value is where is the highest intercept of a nonvertical hyperplane crossing the axis below . Always (weak duality). Equality (strong duality) holds under the MC/MC conditions: is convex (or has a convex "upper" envelope), is finite, and the set does not admit a vertical supporting hyperplane at the axis — a condition met when lies in the relative interior of the projection . Specializing recovers Lagrangian duality verbatim: , , and the multiplier is the crossing-hyperplane slope. The framework also produces the dual existence and the absence of a gap as separate conclusions controlled by separate hypotheses, clarifying that a finite dual value and an attained dual optimum are distinct guarantees.

Constraint qualifications beyond Slater

Slater's interior-point condition is sufficient but not necessary. For problems with affine inequality constraints, strong duality and multiplier existence hold with no interior hypothesis at all (the polyhedral case, where Farkas' lemma 44.02.04 supplies the multipliers unconditionally). For mixed affine and nonlinear inequalities, the refined Slater condition requires strict feasibility only of the nonlinear constraints, the affine ones merely feasible. At the differentiable level the relevant qualifications — linear independence of active gradients (LICQ), the Mangasarian-Fromovitz condition (MFCQ), and Abadie's condition — guarantee KKT multiplier existence and connect to the dual attainment proved here; MFCQ is the local pointwise analogue of Slater. The hierarchy LICQ MFCQ Abadie orders these by strength, and each guarantees that the value function admits a non-vertical support, the single geometric fact underlying every constraint qualification.

Saddle points, the minimax theorem, and zero-sum games

Strong duality with attained primal and dual optima is equivalent to the existence of a saddle point of the Lagrangian over . This is the optimization face of von Neumann's minimax theorem: the Lagrangian defines a two-player zero-sum game in which the primal player chooses to minimize and the dual player chooses prices to maximize, and strong duality is precisely the statement that the game has a value, . Sion's generalization weakens von Neumann's bilinearity to quasiconvex-quasiconcave continuity on one compact factor, and is the abstract minimax theorem from which Lagrangian strong duality, matrix-game value existence, and the LP duality theorem all descend.

Synthesis. The dual function is exactly the lower envelope of the Lagrangian read price-by-price, and the central insight of this unit is that the dual problem is the search for the best non-vertical supporting hyperplane to the convex value set at . The foundational reason strong duality can fail is a vertical support, and Slater's condition generalises the elementary requirement of an interior feasible point into exactly the qualification that excludes verticality by placing in the relative interior of . Putting these together, weak duality is dual to primal feasibility and is unconditional, the perturbation function packages every relaxation into one convex object whose biconjugation closes the gap, and the multiplier is simultaneously the supporting slope, the marginal sensitivity , and the price that the saddle-point game converges to. This is exactly the same separation engine of 02.11.02 that powers Farkas' lemma 44.02.04 in the polyhedral case and the conjugate duality of 37.07.03 in the perturbational case; the bridge is the value set , the single convex object through which feasibility, optimality, sensitivity, and the KKT conditions of 44.02.02 are one theory, and it appears again in the conic and semidefinite duality where lives over a self-dual cone.

Full proof set Master

Proposition 1 (the dual function is concave and upper-semicontinuous, unconditionally). For any functions , the dual function is concave and upper-semicontinuous on .

Proof. For each fixed , the map is affine, hence concave and continuous. Then is a pointwise infimum of a family of concave functions. The hypograph equals , an intersection of the closed convex hypographs of the affine ; an intersection of closed convex sets is closed and convex (the convex-operation calculus of 44.01.01). A function whose hypograph is closed and convex is concave and upper-semicontinuous.

Proposition 2 (weak duality, general form). Let be the primal optimal value and the dual optimal value. Then , and for any primal-feasible and dual-feasible the gap is bounded below by .

Proof. For feasible (so , ) and , , the last step because and . So every dual value lies below every primal feasible value; taking over dual-feasible and over feasible yields . The displayed difference is the duality gap of the pair, an a-posteriori certificate: if it is zero, and are both optimal.

Proposition 3 (Slater zero gap and dual attainment). Under the convexity and Slater hypotheses of the Key theorem with finite, and the dual optimum is attained.

Proof. This is part (ii) of the Key theorem; the steps are: (a) the value set is convex by joint convexity of the ; (b) for , so is a boundary point not strictly below which reaches; (c) the supporting-hyperplane theorem (finite-dimensional 02.11.02) gives a nonzero supporting at ; (d) Slater excludes , because a vertical support evaluated at the strictly feasible would require with , forcing against ; (e) normalizing , gives for all , so , equality throughout.

Proposition 4 (saddle point optimal primal-dual pair with zero gap). A triple with is a saddle point of if and only if is primal optimal, is dual optimal, and .

Proof. () Exercise 6 establishes that a saddle point forces feasibility, complementary slackness, , and hence with both optimal. () Suppose primal optimal, dual optimal, . Then , the last step by , . Equality throughout gives and , i.e. the right saddle inequality . The left inequality holds because feasible makes and for all . So is a saddle point.

Connections Master

  • The Karush-Kuhn-Tucker conditions of 44.02.02 are the differential form of the saddle-point characterization proved here: stationarity , primal and dual feasibility, and complementary slackness are exactly the conditions extracted in Proposition 4, and under Slater they are necessary and sufficient for optimality. This unit supplies the existence of the multiplier that the KKT system asserts.

  • Farkas' lemma and the theorems of the alternative 44.02.04 are the polyhedral specialization of strong duality: when all constraints are affine, the value set is a polyhedron whose closedness is unconditional, so the separating hyperplane exists without any Slater hypothesis, and Farkas supplies the LP dual multipliers directly. The same geometric Hahn-Banach separation of 02.11.02 underlies both, polyhedral closedness replacing the interior-point qualification.

  • Fenchel and conjugate duality 37.07.03 is the perturbational reformulation: the dual function is the conjugate of the value function, , weak duality is Fenchel-Young, and strong duality is biconjugation . The Legendre-Fenchel machinery built there is the analytic engine that this unit deploys geometrically through the value set.

  • The convex-operation calculus and supporting-hyperplane structure of 44.01.01 is the immediate prerequisite: convexity of the value set follows from joint convexity of the constraint and objective functions, and the epigraph/supporting-hyperplane apparatus is what makes the dual function concave and the separation argument available. Strong duality is convex analysis applied to one specially assembled convex set.

Historical & philosophical context Master

The method of multipliers descends from Lagrange's Mécanique analytique (1788), where multipliers enforced equality constraints in mechanics, but the inequality theory and its duality are a twentieth-century creation. The decisive paper is Harold Kuhn and Albert Tucker's Nonlinear Programming [Kuhn & Tucker 1951] (Proceedings of the Second Berkeley Symposium, 1951, 481-492), which stated the first-order conditions for inequality-constrained optima and connected them to a constraint qualification; the same conditions had appeared in William Karush's unpublished 1939 Chicago master's thesis, the reason the conditions now carry all three names. Morton Slater's 1950 Cowles Commission discussion paper [Slater 1950] isolated the strict-feasibility interior condition that bears his name as the hypothesis closing the duality gap for convex programs, distinguishing it from the regularity assumptions Kuhn and Tucker had used.

The reorganization of all this around convex analysis is due to R. Tyrrell Rockafellar, whose Convex Analysis [Rockafellar §28-§30] (Princeton, 1970) recast Lagrangian duality as conjugate duality of the perturbation function, unifying it with Fenchel's 1949 conjugate-function theory and with the saddle-point and minimax results that trace to von Neumann's 1928 minimax theorem for zero-sum games. Dimitri Bertsekas later distilled the geometric content into the min-common/max-crossing framework [Bertsekas §4.1], separating the finiteness of the dual value from its attainment and from the absence of a gap, and Boyd and Vandenberghe codified the operational form for practitioners, where the dual problem and Slater's condition became standard tools of convex modeling.

Bibliography Master

@book{boyd2004convex,
  author    = {Boyd, Stephen and Vandenberghe, Lieven},
  title     = {Convex Optimization},
  publisher = {Cambridge University Press},
  year      = {2004}
}

@book{bertsekas2009convex,
  author    = {Bertsekas, Dimitri P.},
  title     = {Convex Optimization Theory},
  publisher = {Athena Scientific},
  year      = {2009}
}

@book{rockafellar1970convex,
  author    = {Rockafellar, R. Tyrrell},
  title     = {Convex Analysis},
  series    = {Princeton Mathematical Series},
  number    = {28},
  publisher = {Princeton University Press},
  year      = {1970}
}

@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}
}

@techreport{slater1950lagrange,
  author      = {Slater, Morton},
  title       = {Lagrange Multipliers Revisited},
  institution = {Cowles Commission for Research in Economics},
  number      = {Mathematics 403},
  year        = {1950}
}

@article{vonneumann1928theorie,
  author  = {von Neumann, John},
  title   = {Zur Theorie der Gesellschaftsspiele},
  journal = {Mathematische Annalen},
  volume  = {100},
  pages   = {295--320},
  year    = {1928}
}