|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Simplex Method |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Two Phase Method
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
cj | 0 | 0 | 0 | 0 | 0 | -1 | -1 |
|
|---|---|---|---|---|---|---|---|---|---|
| cB | Basic variables B |
x1 | x2 | x3 | x4 | x5 | A1 | A2 | Solution values b (= XB) |
| 0 | x4 | 8 | 16 | 12 | 1 | 0 | 0 | 0 | 250 |
| -1 | A1 | 4 | 8 | 10 | 0 | -1 | 1 | 0 | 80 |
| -1 | A2 | 7 | 9 | 8 | 0 | 0 | 0 | 1 | 105 |
| zjcj |
|
-11 | -17 | -18 | 0 | 1 | 0 | 0 |
|
|
|
cj | 0 | 0 | 0 | 0 | 0 | -1 |
|
|---|---|---|---|---|---|---|---|---|
| cB | Basic variables B |
x1 | x2 | x3 | x4 | x5 | A2 | Solution values b (= XB) |
| 0 | x4 | 16/5 | 32/5 | 0 | 1 | 6/5 | 0 | 154 |
| 0 | x3 | 2/5 | 4/5 | 1 | 0 | -1/10 | 0 | 8 |
| -1 | A2 | 19/5 | 13/5 | 0 | 0 | 4/5 | 1 | 41 |
| zj-cj |
|
-19/5 | -13/5 | 0 | 0 | -4/5 | 0 |
|
Here, Phase 1 terminates because both the artificial variables have been removed from the basis.
Phase 2
|
|
cj | 12 | 15 | 9 | 0 | 0 |
|
|---|---|---|---|---|---|---|---|
| cB | Basic variables B |
x1 | x2 | x3 | x4 | x5 | Solution values b (= XB) |
| 0 | x4 | 0 | 80/19 | 0 | 1 | 10/19 | 2270/19 |
| 9 | x3 | 0 | 10/19 | 1 | 0 | -7/38 | 70/19 |
| 12 | x1 | 1 | 13/19 | 0 | 0 | 4/19 | 205/19 |
| zj-cj |
|
0 | -39/19 | 0 | 0 | 33/38 |
|
|
|
cj | 12 | 15 | 9 | 0 | 0 |
|
|---|---|---|---|---|---|---|---|
| cB | Basic variables B |
x1 | x2 | x3 | x4 | x5 | Solution values b (= XB) |
| 0 | x4 | 0 | 0 | -8 | 1 | 2 | 90 |
| 15 | x2 | 0 | 1 | 19/10 | 0 | -7/20 | 7 |
| 12 | x1 | 1 | 0 | -13/10 | 0 | 9/20 | 6 |
| zj-cj |
|
0 | 0 | 39/10 | 0 | 3/20 |
|
The optimal solution is:
x1 = 6, x2 = 7, x3 = 0
z = 12 X 6 + 15 X 7 + 9 X 0 = 177.
Well, after going through this section you
definitely deserve
some food. Before moving to the next section, you must take a break
because you really deserve it.
![]() |
"Studying all the while without relaxation degrades a person's performance." -Vinay Chhabra & Manish Dewan |