Simplex Method
Simplex Method
Simplex Method
Example (2):
Given the following mathematical model, solve it using simplex method:
Solution
Z - 16X1 - 15X2 = 0
Page 1 of 5
40X1 + 31X2 + S1 = 124
-X1 + X2 + S2 = 1
X1 + S3 = 3
In other words, to improve the solution we have to begin with the basic
variables; X1 or X2 but which one we should enter in the basic column. To
do so, we have to determine the pivot column, which is the highest negative
value in Z row. So, we know that X2 is the entering variable to the basic
column.
5. Determine the Pivot Row by dividing each value in the solution column
over its corresponding value in the pivot column and choose the minimum
result (≥0). By determining the pivot row, we able to identify the leaving
variable from the basic column.
S1= 124 ➗ 40 = 3.1 S2= 1 ➗ -1 = -1 S3= 3 ➗1= 1
Page 2 of 5
Formulate the new table
a. Replacement process: S3 leaves and X1 enters the basic column
b. New Pivot Row Values = Current Row values ➗ Pivot Element
c. New Row =
Value∈ pivot Colum X Pivot Row Values
(Current Row Values) - ( Pivot Element )
New Table
Basic X X S1 S2 S3 Solution
Z 0 - 0 0 16 48
S1 3 1 0 -40 4
S2 0 1 1 4
X1 0 0 1 3
c. New Row = current Row values – (its value in pivot Colum* Pivot
Row Values) ➗ Pivot element
The new table:
Basic X1 X2 S1 S2 S3 Solution
Z 0 0 15/31 0 -104/31 1548/31
X2 0 1 1/31 0 -40/31 4/31
S2 0 0 -1/31 1 71/31 120/31
X1 1 0 0 0 1 3
Test for improving solution: there are no negative values in Z row, so this is the
optimal solution
X1= 93/71
X2= 164/71
Z= 16X1 + 15X2
Page 4 of 5
93 164 3948
Z= 16 * ( 71 ) + 15 * ( 71 ) = 71
Page 5 of 5