24.03.2013 Views

Linear Programming Lecture Notes - Penn State Personal Web Server

Linear Programming Lecture Notes - Penn State Personal Web Server

Linear Programming Lecture Notes - Penn State Personal Web Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example 8.13. Consider the following linear programming problem:<br />

⎧<br />

max z(x1, x2) = 3x1 + 5x2<br />

⎪⎨<br />

s.t. x1 + 2x2 ≤ 60 (w1)<br />

x1 + x2 ≤ 40 (w2)<br />

⎪⎩<br />

x1 ≥ 0 (v1)<br />

x2 ≥ 0 (v2)<br />

Note we have assigned dual variables corresponding to each constraint on the right-hand-side<br />

of the constraints. That is, dual variable w1 corresponds to the constraint x1 + 2x2 ≤ 60.<br />

We can write this problem in standard form as:<br />

⎧<br />

⎪⎨<br />

⎪⎩<br />

max z(x1, x2) = 3x1 + 5x2<br />

s.t. x1 + 2x2 + s1 = 60 (w1)<br />

x1 + x2 + s2 = 40 (w2)<br />

x1 ≥ 0 (v1)<br />

x2 ≥ 0 (v2)<br />

s1 ≥ 0 (v3)<br />

s2 ≥ 0 (v4)<br />

Note we have added two new dual variables v3 and v4 for the non-negativity constraints on<br />

slack variables s1 and s2. Our dual variable vectors are: w = [w1<br />

We can construct an initial simplex tableau as:<br />

w2] and v = [v1 v2 v3 v4].<br />

z<br />

s1<br />

s2<br />

⎡<br />

⎢<br />

⎣<br />

z x1 x2 s1 s2 RHS<br />

1 −3 −5 0 0 0<br />

0 1 2 1 0 60<br />

0 1 1 0 1 40<br />

⎤<br />

⎥<br />

⎦<br />

In this initial configuration, we note that v1 = −3, v2 = −5, v3 = 0 and v4 = 0. This<br />

is because s1 and s2 are basic variables. We also notice that complementary slackness is<br />

satisfied. That is at the current values of x1, x2, s1 and s2 we have:<br />

⎡ ⎤<br />

v1 v2 v3 v4<br />

x1<br />

⎢<br />

⎣<br />

x1<br />

x2<br />

s1<br />

s2<br />

⎥<br />

⎦ = 0<br />

Applying the Simplex Algorithm yields the final tableau:<br />

z<br />

x2<br />

⎡<br />

z<br />

⎢ 1<br />

⎣ 0<br />

x1<br />

0<br />

0<br />

x2<br />

0<br />

1<br />

s1<br />

2<br />

1<br />

s2<br />

1<br />

−1<br />

⎤<br />

RHS<br />

160 ⎥<br />

20 ⎦<br />

0 1 0 −1 2 20<br />

The optimal value for v is [0 0 2 1]. Note v ≥ 0 as required. Further, complementary<br />

slackness is still maintained. Notice further that the current value of B −1 can be found in<br />

134

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!