06.09.2021 Views

Linear Algebra, Theory And Applications, 2012a

Linear Algebra, Theory And Applications, 2012a

Linear Algebra, Theory And Applications, 2012a

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.

6.3. THE SIMPLEX ALGORITHM 147<br />

I need to do the row operations on a nonsimple column which has the pivot in the fourth<br />

row. Such a column is the second to the last. The pivot is the 3. The new matrix is<br />

⎛<br />

⎞<br />

7<br />

1 1 2<br />

0 1 0<br />

3<br />

−1 0<br />

3 3<br />

0<br />

3<br />

1<br />

1<br />

1 0 0<br />

3<br />

0 0<br />

3<br />

− 2 8<br />

3<br />

0 3<br />

⎜ 0 0 1 −2 1 0 −1 0 0 1<br />

⎟<br />

⎝ 0 0 0 − 1 3<br />

0 0 − 1 3<br />

− 1 1<br />

3<br />

1 ⎠ . (6.15)<br />

3<br />

11<br />

2<br />

0 0 0<br />

3<br />

−1 1<br />

3<br />

− 7 28<br />

3<br />

0<br />

3<br />

Now the obvious basic solution is feasible. You let x 4 =0=x 5 = x 7 = x 8 and x 1 =<br />

8/3,x 2 =2/3,x 3 =1, and x 6 =28/3. You don’t need to worry too much about this. It is<br />

the above matrix which is desired. Now you can assemble the simplex tableau and begin<br />

the algorithm. Remember C ≡ 2x 1 +3x 2 +2x 3 +3x 4 . First add the row and column which<br />

deal with C. This yields<br />

⎛<br />

⎜<br />

⎝<br />

⎞<br />

7<br />

1 1<br />

2<br />

0 1 0<br />

3<br />

−1 0<br />

3 3<br />

0 0<br />

3<br />

1<br />

1<br />

1 0 0<br />

3<br />

0 0<br />

3<br />

− 2 8<br />

3<br />

0 0 3<br />

0 0 1 −2 1 0 −1 0 0 0 1<br />

0 0 0 − 1 3<br />

0 0 − 1 3<br />

− 1 1<br />

3<br />

1 0 3 ⎟<br />

11<br />

2<br />

0 0 0<br />

3<br />

−1 1<br />

3<br />

− 7 28<br />

3<br />

0 0 ⎠<br />

3<br />

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

(6.16)<br />

Now you do row operations to keep the simple columns of (6.15) simple in (6.16). Of course<br />

you could permute the columns if you wanted but this is not necessary.<br />

This yields the following for a simplex tableau. Now it is a matter of getting rid of the<br />

positive entries in the bottom row because you are trying to minimize.<br />

⎛<br />

⎞<br />

7<br />

1 1<br />

2<br />

0 1 0<br />

3<br />

−1 0<br />

3 3<br />

0 0<br />

3<br />

1<br />

1<br />

1 0 0<br />

3<br />

0 0<br />

3<br />

− 2 8<br />

3<br />

0 0 3<br />

0 0 1 −2 1 0 −1 0 0 0 1<br />

⎜ 0 0 0 − 1 3<br />

0 0 − 1 3<br />

− 1 1<br />

3<br />

1 0 3 ⎟<br />

⎝<br />

11<br />

2<br />

0 0 0<br />

3<br />

−1 1<br />

3<br />

− 7 28<br />

3<br />

0 0 ⎠<br />

3<br />

2<br />

0 0 0<br />

3<br />

−1 0 − 1 3<br />

− 1 28<br />

3<br />

0 1<br />

3<br />

The most positive of them is the 2/3 and so I will apply the algorithm to this one first. The<br />

pivot is the 7/3. After doing the row operation the next tableau is<br />

⎛<br />

3<br />

0<br />

7<br />

0 1 − 3 ⎞<br />

1 1<br />

2<br />

7<br />

0<br />

7 7<br />

0 0<br />

7<br />

1 − 1 1<br />

2<br />

7<br />

0 0<br />

7<br />

0<br />

7<br />

− 5 18<br />

7<br />

0 0 7<br />

6<br />

1<br />

0<br />

7<br />

1 0<br />

7<br />

0 − 5 2<br />

11<br />

7 7<br />

0 0 7<br />

1<br />

⎜ 0<br />

7<br />

0 0 − 1 7<br />

0 − 2 7<br />

− 2 3<br />

7<br />

1 0 7 ⎟<br />

⎝ 0 − 11 4<br />

1<br />

7<br />

0 0<br />

7<br />

1<br />

7<br />

− 20<br />

58<br />

7<br />

0 0 ⎠<br />

7<br />

0 − 2 7<br />

0 0 − 5 7<br />

0 − 3 7<br />

− 3 64<br />

7<br />

0 1<br />

7<br />

and you see that all the entries are negative and so the minimum is 64/7 and it occurs when<br />

x 1 =18/7,x 2 =0,x 3 =11/7,x 4 =2/7.<br />

There is no maximum for the above problem. However, I will pretend I don’t know this<br />

and attempt to use the simplex algorithm. You set up the simiplex tableau the same way.<br />

Recall it is ⎛<br />

⎞<br />

7<br />

1 1<br />

2<br />

0 1 0<br />

3<br />

−1 0<br />

3 3<br />

0 0<br />

3<br />

1<br />

1<br />

1 0 0<br />

3<br />

0 0<br />

3<br />

− 2 8<br />

3<br />

0 0 3<br />

0 0 1 −2 1 0 −1 0 0 0 1<br />

⎜ 0 0 0 − 1 3<br />

0 0 − 1 3<br />

− 1 1<br />

3<br />

1 0 3 ⎟<br />

⎝<br />

11<br />

2<br />

0 0 0<br />

3<br />

−1 1<br />

3<br />

− 7 28<br />

3<br />

0 0 ⎠<br />

3<br />

2<br />

0 0 0<br />

3<br />

−1 0 − 1 3<br />

− 1 28<br />

3<br />

0 1<br />

3

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

Saved successfully!

Ooh no, something went wrong!