|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Simplex Method |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The Big M Method
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
cj | -4 | -2 | 0 | 0 | 0 | M | M | M |
|
|---|---|---|---|---|---|---|---|---|---|---|
| cB | Basic variables B |
x1 | x2 | x3 | x4 | x5 | A1 | A2 | A3 | Solution values b (= XB) |
| M | A1 | 3 | 1 | -1 | 0 | 0 | 1 | 0 | 0 | 27 |
| -M | A2 | 1 | 1 | 0 | -1 | 0 | 0 | 1 | 0 | 21 |
| M | A3 | 1 | 2 | 0 | 0 | -1 | 0 | 0 | 1 | 30 |
| zjcj |
|
-5M + 4 | -4M + 2 | M | M | M | 0 | 0 | 0 |
|
As -5M < -4M, x1 becomes a basic variable in the
next iteration
Key column = x1 column.
Minimum (27/3, 21/1, 30/1) = 9
Key row = A1 row
Pivot element = 3.
A1 departs and x1 enters.
|
|
cj | -4 | -2 | 0 | 0 | 0 | M | M |
|
|---|---|---|---|---|---|---|---|---|---|
| cB | Basic variables B |
x1 | x2 | x3 | x4 | x5 | A2 | A3 | Solution values b (= XB) |
| 4 | x1 | 1 | 1/3 | -1/3 | 0 | 0 | 0 | 0 | 9 |
| -M | A2 | 0 | 2/3 | 1/3 | -1 | 0 | 1 | 0 | 12 |
| M | A3 | 0 | 5/3 | 1/3 | 0 | -1 | 0 | 1 | 21 |
| zjcj |
|
0 | -7M/3 + 2/3 | -2M/3 - 4/3 | M | M | 0 | 0 |
|
|
|
cj | -4 | -2 | 0 | 0 | 0 | M |
|
|---|---|---|---|---|---|---|---|---|
| cB | Basic variables B |
x1 | x2 | x3 | x4 | x5 | A2 | Solution values b (= XB) |
| 4 | x1 | 1 | 0 | -2/5 | 0 | 1/5 | 0 | 24/5 |
| M | A2 | 0 | 0 | 1/5 | -1 | 2/5 | 1 | 18/5 |
| -2 | x2 | 0 | 1 | 1/5 | 0 | -3/5 | 0 | 63/5 |
| zjcj |
|
0 | 0 | -M/5 + 6/5 | M | -2M/5 + 2/5 | 0 |
|
|
|
cj | -4 | -2 | 0 | 0 | 0 |
|
|---|---|---|---|---|---|---|---|
| cB | Basic variables B |
x1 | x2 | x3 | x4 | x5 | Solution values b (= XB) |
| 4 | x1 | 1 | 0 | -1/2 | 1/2 | 0 | 3 |
| 0 | x5 | 0 | 0 | 1/2 | -5/2 | 1 | 9 |
| -2 | x2 | 0 | 1 | 1/2 | -3/2 | 0 | 18 |
| zjcj |
|
0 | 0 | 1 | 1 | 0 |
|
The optimal solution is
x1 = 3, x2 = 18
z = -4 X 3 - 2 X 18 = -48