Docsity

The Strong Duality Theorem in Linear Programming | CS 473, Study notes of Algorithms and Programming

Toggle sidebar
bg1
24: Linear Programming IV
Sariel Har-Peled
April 27, 2006
473G - Algorithms
1 The Strong Duality Theorem
Theorem 1.1 If the primal LP problem has an optimal solution x∗=x∗
1,...,x∗
nthen the dual also has an
optimal solution, y∗=y∗
1,...,y∗
m, such that
X
j
cjx∗
j=X
i
biy∗
i.
Proof: We rewrite the LP in slack form and solve it (using the Simplex algorithm). Let the slack variables
be w1,...,wm. Consider the objective function as written in the slack form containing the optimal solution
that was generated by the Simplex algorithm. It has the form
max
n
X
j=1
cjxj
s.t.
n
X
j=1
ai j xj≤bi,
for i=1,...,m,
xj≥0,
for j=1,...,n.
primal program
min
m
X
i=1
biyi
s.t.
m
X
i=1
ai jyi≥cj,
for j=1,...,n,
yi≥0,
for i=1,...,m.
dual program
α+
n
X
k=1
αkzk,(1)
where zkis the kth non-basic variable when the algorithm terminated, and
α1, . . . , αnare constant coefficient. For the jth non-basic variable xjlet
c∗
jdenote its coefficient in Eq. (1) . In particular, if xjis basic in the final
solution, then c∗
j=0. Similarly, let d∗
ibe the coefficient of wiin Eq. (1)
(which would be 0 if wiis basic in the final solution). Thus, Eq. (1) can
be rewritten as
α+X
j
c∗
jxj+X
i
d∗
iwi.
Now, αis the optimal objective value, as we assign 0 to all the non-basic
variables to compute the objective function (and this is the optimal value).
Thus, we have
α=X
j
cjx∗
j,(2)
since x∗=x∗
1,...,x∗
nis the optimal solution to the given LP.
Next, consider the assignment
b
yi=−d∗
i,for i=1,...,m.(3)
To prove the theorem, it is sufficient to verify that this is a feasible solution to the dual, and that its objective
function value is equal to the primal objective function value. Now, the weak duality theorem implies the
claim. Indeed,
X
j
cjxj=α+X
j
c∗
jxj+X
i
d∗
iwi
1
pf3

Partial preview of the text

Download The Strong Duality Theorem in Linear Programming | CS 473 and more Study notes Algorithms and Programming in PDF only on Docsity!

24: Linear Programming IV

Sariel Har-Peled

April 27, 2006

473G - Algorithms

1 The Strong Duality Theorem

Theorem 1.1 If the primal LP problem has an optimal solution x

∗

=

x

∗

1

,... , x

∗

n

then the dual also has an

optimal solution, y

∗

=

y

∗

1

,... , y

∗

m

, such that

j

c j

x

∗

j

i

b i

y

∗

i

Proof: We rewrite the LP in slack form and solve it (using the Simplex algorithm). Let the slack variables

be w 1

,... , w m

. Consider the objective function as written in the slack form containing the optimal solution

that was generated by the Simplex algorithm. It has the form

max

n ∑

j= 1

c j x j

s.t.

n ∑

j= 1

a i j

x j

≤ b i

for i = 1 ,... , m,

x j

for j = 1 ,... , n.

primal program

min

m ∑

i= 1

b i y i

s.t.

m ∑

i= 1

a i j y i ≥ c j

for j = 1 ,... , n,

y i

for i = 1 ,... , m.

dual program

α +

n ∑

k= 1

α k z k

where z k

is the kth non-basic variable when the algorithm terminated, and

α 1

,... , α n

are constant coefficient. For the jth non-basic variable x j

let

c

∗

j

denote its coefficient in Eq. (1). In particular, if x j is basic in the final

solution, then c

∗

j

= 0. Similarly, let d

∗

i

be the coefficient of w i

in Eq. (1)

(which would be 0 if w i is basic in the final solution). Thus, Eq. (1) can

be rewritten as

α +

j

c

∗

j

x j

i

d

∗

i

w i

Now, α is the optimal objective value, as we assign 0 to all the non-basic

variables to compute the objective function (and this is the optimal value).

Thus, we have

α =

j

c j

x

∗

j

since x

∗

=

x

∗

1

,... , x

∗

n

is the optimal solution to the given LP.

Next, consider the assignment

̂ y i

= −d

∗

i

, for i = 1 ,... , m. (3)

To prove the theorem, it is sufficient to verify that this is a feasible solution to the dual, and that its objective

function value is equal to the primal objective function value. Now, the weak duality theorem implies the

claim. Indeed,

j

c j x j = α +

j

c

∗

j

x j

i

d

∗

i

w i

where the expressing on the left is the original objective function, and the expression on the right is the

(equivalent) rewriting of it by the Simplex algorithm. As such,

j

c j

x j

= α +

j

c

∗

j

x j

i

d

∗

i

w i

= α +

j

c

∗

j

x j

i

−̂ y i

b i

j

a i j x j

= α +

i

−̂ y i

b i

j

c

∗

j

x j

i

y i

j

a i j

x j

= α −

i

b i

y i

n ∑

j= 1

c

∗

j

m ∑

i= 1

̂ y i a i j

x j

Since this is a linear expression, we can equate the coefficients of the variables x 1

,... , x n

. We have that

α −

i

b i

y i

Which implies that α =

i

b i

y i

. Namely, for the assignment y i = ̂y i , for i = 1 ,... , m, the primal and dual

has the same objective function value.

We still have to show that the dual solution

y 1 ,... , ŷ m

is feasible for the dual. Indeed, comparing the

coefficients of Eq. (4), we get that

c j = c

∗

j

m ∑

i= 1

̂ y i a i j

for j = 1 ,... , n. Now, all the c

∗

j

are non-positive since c

∗

j

are the coefficients of the objective function in the

optimal solution. If any of them is positive, then we could make furthest progress in the Simplex algorithm.

Namely, c

∗

j

≤ 0, for j = 1 ,... , m. This implies that

c j

m ∑

i= 1

̂ y i

a i j

for j = 1 ,... , n. Namely, the solution y 1 = ŷ 1 , y 2 = ŷ 2 ,... , y m = ŷ m is feasible for the dual. The weak

duality theorem also implies that it is optimal. Thus, y

∗

=

y

∗

1

,... , y

∗

m

y 1

,... , ŷ m

Notice, the proof of Theorem 1.1 specifies explicitly given the optimal primal solution what is the

optimal dual solution, see Eq. (3). As such, given the dual solution, we can also compute the primal solution

by using the fact that the dual to the dual is the primal. As such, it is sometimes make sense to solve the

dual LP instead of the primal one.

In particular, by changing the primal objective function we can guarantee that the dual problem is feasi-

ble for the trivial starting solution. As such, this provides a simple algorithm for doing the first stage in the

Simplex algorithm (finding a feasible starting solution). We omit any further details.

2 Bibliography

This topic of linear programming is quite deep and involved and we only touched some core topics. The

lecture notes are based on the excellent book by Vanderbei [Van97].