In this part we will cover duality for Linear Programs (LPs) and the corresponding weak & strong duality theorems.
Further, we will also discuss sensitivity analysis and complementarity of (dual) LPs, which will give us an alternative view of the simplex method.a
Primal-Dual LP Problems
Definition 1 (Primal LP Problem)
Consider the primal LP problem on standard form,
(P)z⋆=⎩⎨⎧minsubject tocTxAx=bx≥0
where z⋆ is the optimal objective value.
Definition 2 (Dual LP Problem)
The dual LP problem corresponding to the primal LP problem (P) is,
(D)q⋆={maxsubject tobTyATy≤c
where q⋆ is the optimal objective value.
Explanation (Derivation of the Dual Problem)
We know that the Lagrangian for the primal LP problem is,
which is exactly the dual LP problem defined above.
Remark 1
We note that the primal has n variables and m constraints, while the dual has m variables and n constraints.
Further, the dual of the dual is the primal, i.e., (D) is the dual of (P) and (P) is the dual of (D).
Proof
The Lagrangian for the dual LP problem is,
L(y,x)=bTy+xT(c−ATy)=cTx+yT(b−Ax)
thus, the dual function p(x) is,
p(x)=supcTx+yT(b−Ax)subject toy free={cTx,+∞,Ax=botherwise
Therefore, the dual problem is,
minsubject top(x)Ax=bx≥0
which is exactly the primal LP problem defined above, thus the dual of the dual is the primal.
Lastly, we can derive duals of LPs on non-standard form as well.
Intuition (Dual Problems on Non-Standard Form)
From what we have seen, we can see some symmetries between the primal and dual LP problems.
Using these symmetries, we can derive duals of LPs on non-standard form.
Table 1: Symmetries between primal and dual linear programs.
Primal (P)
Dual (D)
min/inf
max/sup
Variables
Constraints
≥0
≤
≤0
≥
free
=
Constraints
Variables
=
free
≥
≥0
≤
≤0
Weak and Strong Duality
Theorem 1 (Weak Duality Theorem)
If x is a feasible solution to the primal LP problem (P) and y is a feasible solution to the dual LP problem (D), then,
cTx≥bTyProof
Since x is feasible for (P), we have that Ax=b and x≥0.
Since y is feasible for (D), we have that ATy≤c.
Therefore,
cTx≥(≤cATy)Tx=yT=b(Ax)=bTy■
From this theorem, we have some corollaries.
Corollary 1
If z⋆=−∞ (the primal is unbounded), then the dual is infeasible.
If q⋆=+∞ (the dual is unbounded), then the primal is infeasible.
Proof
Suppose that the primal is unbounded, i.e., z⋆=−∞.
If the dual is feasible, then there exists a feasible y such that bTy is finite.
However, by the weak duality theorem, we have that cTx≥bTy for all feasible x.
This contradicts the assumption that the primal is unbounded, thus the dual must be infeasible.
The proof is similar to the first part, by swapping the roles of the primal and dual.
If x is feasible to (P) and y is feasible to (D) such that cTx=bTy, then x and y are optimal to (P) and (D), respectively.
Theorem 2 (Strong Duality Theorem)
If both (P) and (D) are both feasible, then there exists optimal x⋆ to (P) and optimal y⋆ to (D) such that,
cTx⋆=bTy⋆Proof
Let (P) be feasible, thus z⋆>−∞, therefore, there exists an optimal BFS.
Let x⋆ be an optimal BFS to (P), for this BFS, we know that c~NT≥0, let y⋆=cBTB−1.a
c~NT⇒=cNT−cBTB−1N=cNT−y⋆TN≥0NTy⋆≤cN
Furthermore,
cBT−y⋆TBBTy⋆=cBT−cBTIB−1B=cB≤cB
This means that,
ATy⋆=[BTNT]y⋆=[BTyNTy]≤[cBcN]=c
and thus y⋆ is feasible for (D).
Further,
bTy⋆=y⋆Tb=xBcBTB−1b=cBTxB⋆+cNTxN⋆=cTx⋆
Thus, by corollary of weak duality, x⋆ and y⋆ are optimal to (P) and (D), respectively. ■
Remark 2
If x⋆ is an optimal BFS to (P) such that c~NT≥0, then y⋆=(B−1)TcB is optimal to (D).
Table 2: Possible primal and dual linear-program outcomes.
Finite Optimal Solution
Unbounded
Infeasible
Finite Optimal Solution
Possible
Impossible
Impossible
Unbounded
Impossible
Impossible
Possible
Infeasible
Impossible
Possible
Possible
Sensitivity Analysis
When solving LP problems, it is often the case that the parameters (i.e., A, b, and c) are not known exactly.
Thus, it is important to understand how changes in these parameters affect the optimal solution and objective value.
This is the goal of sensitivity analysis.
Definition 3 (Sensitivity Analysis in c)
Let x⋆ (nondegenerate and unique) be an optimal BFS to the primal LP problem (P).
Further, consider some arbitrary perturbation,
minsubject to(c+Δc)TxAx=bx≥0
x⋆ remains optimal if and only if,
c~NT=(cN+ΔcN)T−(cB+ΔcB)TB−1N≥0Note
We would ideally like to define a function that maps,
w(c)=mincTxsubject toAx=bx≥0
If Δc is small enough, then we are interested in ∇cw(c),
w(c)∇cw(c)=cTx⋆=x⋆
However, this is only valid if x⋆ remains optimal for all small perturbations in c.
Definition 4 (Sensitivity Analysis in b)
Let x⋆ (nondegenerate and unique) be an optimal BFS to the primal LP problem (P).
Further, consider some arbitrary perturbation,
minsubject tocTxAx=b+Δbx≥0
x⋆ remains optimal if and only if,
[xBxN]=[B−1(b+Δb)0]≥0Note
We would ideally like to define a function that maps,
v(b)=mincTxsubject toAx=bx≥0
If Δb is small enough, then we are interested in ∇bv(b),
Theorem 3 (Shadow Prize Theorem)
If for a given b the optimal BFS of (P) is nondegenerate and unique, then ∇bv(b)=y⋆, where y⋆ is the optimal solution to the dual problem (D).
Complementarity
Theorem 4 (Complementary Slackness Theorem)
Let x be feasible to the primal LP problem (P) and y be feasible to the dual LP problem (D).
{x is optimal to (P)y is optimal to (D)⟺xj(cj−(Aj)Ty)=0,∀j=1,…,n
where Aj is the j-th column of A.
Corollary 2 (Characterization of Optimal Solutions)
x is optimal to (P) and y is optimal to (D) if and only if,
⎩⎨⎧Ax=b,x≥0ATy≤cxj(cj−(Aj)Ty)=0,∀j=1,…,nAlgorithm (Alternative View of the Simplex Method)
Partition A=[BN] with xB=B−1b and xN=0 (BFS), so primally feasible.
For [BTNT]y≤[cBcN], let y=(B−1)TcB, this implies complementarity.
Left to check for optimality is dual feasibility, this means,
NTyNT(B−1)TcBc~NT≤cN≤cN=cNT−cBTB−1N≥0
If c~NT≥0, then x and y are optimal for (P) and (D), respectively.
If c~NT≥0, then perform a pivot step to get a new BFS and repeat from step 2.