Skip to content
BIASED

Duality

Block 1 of 7~2 min

A minimum without a certificate

The topic Lagrange multipliers and KKT conditions gave us multipliers λi≥0\lambda_i \ge 0 and νj\nu_j, and the conditions a constrained minimum must satisfy. There the multipliers were helpers for finding x∗x^*. Here they become the variables of a problem of their own, and that problem answers a question KKT leaves open: how do we know a candidate is optimal?

Take a soft-margin SVM on 40 points in the plane, two overlapping classes. An iterative solver reports the objective 5.36035.3603 after 100 iterations, 4.37424.3742 after 1000 and 4.36724.3672 after 5000. The numbers still fall, only more slowly. Is 4.36724.3672 the minimum, or would another 50 000 iterations reach 4.24.2?

We work with the general problem from the previous topic, which we call the primal problem: minimize ff subject to mm inequality and pp equality constraints,

min⁡x∈Rnf(x),gi(x)≤0, i=1,…,m,hj(x)=0, j=1,…,p.\min_{x \in \mathbb R^n} f(x), \qquad g_i(x) \le 0,\ i = 1, \dots, m, \qquad h_j(x) = 0,\ j = 1, \dots, p.

Its optimal value is p∗p^*. A point that satisfies every constraint is feasible.

One side of p∗p^* is free. Every feasible xx gives an upper bound, p∗≤f(x)p^* \le f(x), because p∗p^* is the smallest such value. The other side is missing. A lower bound would pin p∗p^* between two numbers, and a pair like that is a certificate: anyone can check it without trusting the solver. Duality builds lower bounds out of multipliers.

Answers are saved on the server and tied to this browser until you sign in.