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 145<br />

by 2/3 and then using this to zero out the entries below it,<br />

⎛<br />

⎞<br />

3<br />

2<br />

0 − 1 2<br />

0 1 0 7<br />

⎜ − 3 1<br />

2<br />

1<br />

2<br />

0 0 0 1<br />

⎟<br />

⎝ 1<br />

1<br />

2<br />

0<br />

2<br />

1 0 0 3 ⎠ .<br />

3<br />

1<br />

2<br />

0<br />

2<br />

0 0 1 3<br />

Now all the numbers on the bottom left row are nonnegative so the process stops. Now<br />

recall the variables and columns were ordered as x 2 ,x 4 ,x 5 ,x 1 ,x 3 . The solution in terms of<br />

x 1 and x 2 is x 2 = 0 and x 1 = 3 and z =3. Note that in the above, I did not worry about<br />

permuting the columns to keep those which go with the basic variables on the left.<br />

Here is a bucolic example.<br />

Example 6.3.3 Consider the following table.<br />

F 1 F 2 F 3 F 4<br />

iron 1 2 1 3<br />

protein 5 3 2 1<br />

folic acid 1 2 2 1<br />

copper 2 1 1 1<br />

calcium 1 1 1 1<br />

This information is available to a pig farmer and F i denotes a particular feed. The numbers<br />

in the table contain the number of units of a particular nutrient contained in one pound of<br />

the given feed. Thus F 2 has 2 units of iron in one pound. Now suppose the cost of each feed<br />

in cents per pound is given in the following table.<br />

F 1 F 2 F 3 F 4<br />

2 3 2 3<br />

A typical pig needs 5 units of iron, 8 of protein, 6 of folic acid, 7 of copper and 4 of calcium.<br />

(The units may change from nutrient to nutrient.) How many pounds of each feed per pig<br />

should the pig farmer use in order to minimize his cost?<br />

His problem is to minimize C ≡ 2x 1 +3x 2 +2x 3 +3x 4 subject to the constraints<br />

x 1 +2x 2 + x 3 +3x 4 ≥ 5,<br />

5x 1 +3x 2 +2x 3 + x 4 ≥ 8,<br />

x 1 +2x 2 +2x 3 + x 4 ≥ 6,<br />

2x 1 + x 2 + x 3 + x 4 ≥ 7,<br />

x 1 + x 2 + x 3 + x 4 ≥ 4.<br />

where each x i ≥ 0. Add in the slack variables,<br />

x 1 +2x 2 + x 3 +3x 4 − x 5 = 5<br />

5x 1 +3x 2 +2x 3 + x 4 − x 6 = 8<br />

x 1 +2x 2 +2x 3 + x 4 − x 7 = 6<br />

2x 1 + x 2 + x 3 + x 4 − x 8 = 7<br />

x 1 + x 2 + x 3 + x 4 − x 9 = 4

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

Saved successfully!

Ooh no, something went wrong!