Professional Documents
Culture Documents
Mohamed Kobeissi
American University of Beirut
8 mars 2024
minimize c1 x1 + · · · + c5 x5 (1a)
subject to
x1 − x3 − x4 = bB (1b)
x2 + x3 − x5 = bC (1c)
x4 + x5 = bD (1d)
subject to
yB − yA ≤ c1 (2b)
yC − yA ≤ c2 (2c)
yC − yB ≤ c3 (2d)
yD − yB ≤ c4 (2e)
yD − yC ≤ c5 (2f)
Mohamed Kobeissi LP Duality & Sensitivity
The inequality constraints encode that, in a free market, we
can only maintain a price difference that does not exceed the
cost of transportation. If we charged a higher price, then
“some local guy” would immediately be able to undercut our
price by buying from us at one end of the channel, using the
channel at the same fixed channel cost, then selling at a price
lower than ours at the high-price end of the channel
maximize c T x (3a)
subject to Ax ≤ b , x ≥ 0 (3b)
minimize b T y (4a)
subject to A y ≥ c , y ≥ 0
T
(4b)
We shall prove in the following that the minimal cost and the
maximal income coincide, i.e., that the two problems are
equivalent
Theorem
Assume that x is a feasible vector for the primal problem, and
y is a feasible vector for the dual problem. Then
1 y T b ≤ cT x
2 if (1) holds with equality, then x and y are optimal for
their respective linear programming problems
3 the primal problem does not have a finite minimum if and
only if the feasible region of the dual problem is empty ;
vice versa, the dual problem does not have a finite
maximum if and only if the feasible region of the primal
problem is empty
Theorem
The primal problem has a non-degenerate solution x if and
only if the dual problem has a non-degenerate solution y ; in
this case y T b = c T x
This table shows that if you know that both problems are
feasible, then you know that neither problem is unbounded or,
equivalently, that both have solutions. More than that, the
values of the solutions are equal
max x1 + x2
subject to −3x1 + 2x2 ≤ −1
x1 − x2 ≤ 2
x ≥ 0
The dual is :
min −y1 + 2y2
subject to −3y1 + y2 ≥ 1
2y1 − y2 ≥ 1
y ≥ 0
max z = 5x1 + x2 / x1 − x2 ≤8
2x1 + x2 ≥6
x1 + x2 =4
4x1 + 2x2 ≥1
x1 ≥0
x2 ∈R
Theorem
Assume problem (P) has a solution x ∗ and problem (D) has a
solution y ∗
1 If xj∗ > 0, then the jth constraint in (D) is binding
2 If the jth constraint in (D) is not binding, then xj∗ = 0
3 If yi∗ > 0, then the ith constraint in (P) is binding
4 If the ith constraint in (P) is not binding, then yi∗ = 0
y1 − 3y2 + y3 = 4
3 x3 = 0 tells you nothing
4 x4 > 0 tells you fourth dual constraint binds :
4y1 + 3y2 − y3 = 1
So solution to dual must satisfy y2 = 0, y1 + y3 = 4, and
4y1 − y3 = 1
This means that candidate for solution to (D) is y = (1, 0, 3)
Take the LP :
max x1 − x2
subject to −2x1 + x2 ≤ 2
x1 − 2x2 ≤ 2
x1 + x2 ≤ 5
x ≥ 0
The dual is :
min 2y1 + 2y2 + 5y3
subject to −2y1 + y2 + y3 ≥ 1
y1 − 2y2 + y3 ≥ −1
y ≥ 0
−2y1 + y3 = 1
y1 + y3 = −1
y2 = 0
Conclude : y1 = − 23 and y3 = − 13
Mohamed Kobeissi LP Duality & Sensitivity
Punchline