To understand what duality is about, recall our introductory LP with the two types of chocolate:
The simplex algorithm declares the optimum solution as (x1,x2)=(100,300), with objective value 1900
Suppose we multiply the tree equalities by 0,5,1, we have
The multiplirs (0,5,1) magically constitute a certificate of optimality!
With the incentive above, we formulate our multipliers and call them yi
Multiplier
Inequality
y1
x1≤200
y2
x2≤300
y3
x1+x2≤400
To start with, those yi must be nonnegative or otherwise they would flip the inequality directions.
We want the left hand side to look like our objective function x1+6x2 so the right-hand side is an upper-bound on the optimum solution ⇒ so
Although we can let yi to be arbitrarily large, we want this bound to be a tight bound so should minimize 200y1+300y2+400y3
Therefore now we have a new LP:
any feasible value of this dual LP is an upper bound on the original primal LP. So if we somehow find a pair of primal and dual feasible values that are equal, then they must be optimal.