Both types require some basic ingredients; the fancy type requires fancier ingredients and more labor but generates more profit.
Popular bakery: No upper limit on the quantity that can be sold
Baker’s problem: How many simple and fancy cakes to produce?
max24x1+14x2
subject to
3x1+2x2≤1204x1+x2≤1002x1+x2≤70x1,x2≥0
Optimum : x1∗=16,x2∗=36
→ Total revenue : 888
Suppose I would like to take over the baker’s business. How much should I pay to get this deal? Consider unit price I pay for the baker’s asset as the variables
Since xi≥0,∀i, it satisfy the condition as a constraint
💡
We can simply understand this concept as a constant in penalty function.
Therefore, above equation can be expressed
maxbTλ
subject to
ci≥λiAi,∀iλ≥0
💡
λ≥0 is related to the dual feasibility or a constant in penalty function.
or we can expressed as follows
maxbTλ
subject to
ATλ≤cλ≥0
Duality Table
Weak Duality
Assuming minimization in primal LP
Any feasible solution of the primal gives an upper bound for the dual
Any feasible solution of the dual gives a lower bound for the primal
Proof
Suppose take x such that
Ax≥b,x≥0
and take y such that
ATy≤c,y≥0
This is equivalent to
yTA≤cT,y≥0
Now, we compare the value of each objective funcitons.
cTx≥yTAx≥yTb=bTy
Since x and y are arbitrary, this holds.
Suppose the primal has unbounded optimum, can we say something about the dual?
→ Dual have no feasible area
💡
즉 한쪽이 unbounded이면 다른쪽의 solution이 unfeasible하다.
Example of using Weak Duality
min120y1+100y2+70y3
subject to
3y1+4y2+2y3≥242y1+y2+y3≥14y1,y2,y3≥0
Consider a solution in y such that
y1=y3=0,y2=14
The value of its objective function is 1400. That means the maximum in the primal is at most 1400.
Strong Duality
If one of the two problems has an optimal solution, so does the other one and that the bounds given by the weak duality theorem are tight, i.e.
xmincTx=ymaxbTy
Complementary Slackness and LP Optimality
Theorem (Complementary Slackness)
Consider a pair of primal and dual programs with the primal problem in standard form. If x∗ is optimal for the primal and y∗ is optimal for the dual, then
[x∗]T(c−ATy∗)=0
If x is feasible for the primal, y is feasible for the dual, and xT(c−ATy)=0, then x and y are optimal for their respective problems.
Proof
Note that
cTx≥yTAx
for all x,y∈S, since x≥0 and cT≥yTA
Similarly,
yTAx≥yTb
for all x,y∈S, since y≥0 and Ax≥b
Let x∗ and y∗ are optimal for primal and dual respectively. Then
cTx∗≥[y∗]TAx∗≥[y∗]Tb
By strong duality,
cTx∗=[y∗]TAx∗=[y∗]Tb
Therefore,
[x∗]T(c−ATy∗)=0
Since xT(c−ATy)=0, it satisfy the KKT condition for dual problem. Therefore, y is a optimal for dual problem. Moreover, by strong duality, we can sure that x and y are optimal for their respective problems.
💡
Notice that this condition is related to the complementary slackness condition in KKT condition. We will prove this relation exactly at the next section.