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?
subject to
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
subject to
Dual LP
For any LP, there is a dual LP
min ↔ max
objective function ↔ Right-hand side
Transposed constraint matrix
variable sign depends on the type of inequality
The original LP is called the primal
Primal
subject to
Dual
subject to
Derivation
We already see that primal problem and dual problem related to the order of the optimization.
We can express the primal problem by using Lagrangian as follows
If we swap the order of optimization i.e.
we call it dual problem.
Note that
where Ai is i’th row of A.
Since xi≥0,∀i, it satisfy the condition as a constraint
Therefore, above equation can be expressed
subject to
or we can expressed as follows
subject to
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
and take y such that
This is equivalent to
Now, we compare the value of each objective funcitons.
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
Example of using Weak Duality
subject to
Consider a solution in y such that
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.
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
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
for all x,y∈S, since x≥0 and cT≥yTA
Similarly,
for all x,y∈S, since y≥0 and Ax≥b
Let x∗ and y∗ are optimal for primal and dual respectively. Then
By strong duality,
Therefore,
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.