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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

and right hand side vector b = [7, 8, 9] T . Applying Gauss-Jordan elimination in this case<br />

yields:<br />

⎡<br />

⎤<br />

19<br />

1 0 −1 − 3<br />

(3.28) X := ⎣ ⎦<br />

0 1 2 20<br />

3<br />

0 0 0 0<br />

Since the third row is all zeros, there are an infinite number of solutions. An easy way to<br />

solve for this set of equations is to let x3 = t, where t may take on any value in R. Then,<br />

row 2 of Expression 3.28 tells us that:<br />

(3.29) x2 + 2x3 = 20<br />

3 =⇒ x2 + 2t = 20<br />

3 =⇒ x2 = 20<br />

− 2t<br />

3<br />

We then solve for x1 in terms of t. From row 1 of Expression 3.28 we have:<br />

(3.30) x1 − x3 = − 19<br />

3 =⇒ x1 − t = − 19<br />

3 =⇒ x1 = t − 19<br />

3<br />

Thus every vector in the set:<br />

<br />

(3.31) X = t − 19<br />

<br />

20<br />

, − 2t, t<br />

3 3<br />

<br />

: t ∈ R<br />

is a solution to Ax = b.<br />

Conversely, suppose we have the problem:<br />

x1 + 2x2 + 3x3 = 7<br />

4x1 + 5x2 + 6x3 = 8<br />

7x1 + 8x2 + 9x3 = 10<br />

The new right hand side vector is b = [7, 8, 20] T . Applying Gauss-Jordan elimination in this<br />

case yields:<br />

(3.32)<br />

⎡<br />

1<br />

X := ⎣ 0<br />

0<br />

1<br />

−1<br />

2<br />

⎤<br />

0<br />

0 ⎦<br />

0 0 0 1<br />

Since row 3 of X has a non-zero element in the b ′ column, we know this problem has no<br />

solution, since there is no way that we can find values for x1, x2 and x3 satisfying:<br />

(3.33) 0x1 + 0x2 + 0x3 = 1<br />

Exercise 30. Solve the problem<br />

x1 + 2x2 = 7<br />

3x1 + 4x2 = 8<br />

using Gauss-Jordan elimination.<br />

38

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

Saved successfully!

Ooh no, something went wrong!