The Simplex Method
The Simplex Method
to solve this problem graphically, we graph the feasible region formed by the lines:
3x1 + x2 = 180
x1 + 2x2 = 100
-2x1 + 2x2 = 40
x1 = 0, x2 = 0
the maximum value of z is 560 corresponding to the point (20, 40). So our answer is
x1 = 20, x2 = 40, and z = 560.
The first step in the simplex method converts the constraints to linear equations by
introducing additional variables called slack variables. The first constraint, 3x1 + x2
£ 180, is true for pairs of numbers such as x1 = 5 and x2 = 17 because 3(5)+17 £ 180.
Also note that 3x1 + x2 + 130 = 180 when x1 = 10 and x2 = 20. The 130 in this case
130 is called the slack variable for the first constraint (denoted by s1). The objective
function, z = 4x1 + 12x2, can be rewritten as: -4x1 - 12x2 + z = 0
3x1 + x2 + s1
= 180
x1 + 2x2 + s2
= 100
-2x1 + 2x2 + s3
= 40
-4x1 - 12x2 +z
=0
x1 ³ 0, x2 ³ 0, s1 ³ 0, s2 ³ 0, s3 ³ 0
We need to get the pivot row. Divide each constant (180, 100, 40) by the
corresponding entries in the pivot column:
The smallest is 20 determining the pivot row. The pivot element is (2) in the second
column third row.
The third step is pivoting, like matrices, make the pivot element a 1 and the rest of
the pivot column 0's. So, divide the third row by 2 to get:
If the last row contains any negative numbers, z is NOT maximized and we have to
repeat steps 2, 3, and 4 again.
We need to find another pivot element. Look at the last row and pick out the most
negative entry (-16). This selects the pivot column (4, 3, -1) above.
We need to get the pivot row. Divide each constant (160, 60, 20) by the
corresponding entries in the pivot column:
The smallest ratio is 20 determining the pivot row. The pivot element is (3) in the
first column second row.
Is z maximized?
Notice that the first, third and last columns' are unit columns; so the basic variables
are x1, x2, s1, and z. The feasible solution is obtained by setting s2 and s3 = 0 and
solving for the others:
Notice also this is the same answer obtained in the first page.
1. Maximize w = -z.
2. (³ constraint) For EACH constraint of the form: a1x1 + a2x2 + ... + anxn ³ b,
multiply the inequality by -1 to obtain: -a1x1 - a2x2 - ... - anxn £ -b.
3. Replace (= constraint) of the form: a1x1 + a2x2 + ... + anxn = b, with two:
a1x1 + a2x2 + ... + anxn £ b and a1x1 + a2x2 + ... + anxn³ b
the later is written as: -a1x1 - a2x2 - ... - anxn £ -b
5. If NO negative entry appears in the last column of the initial tableau, proceed
to
Phase II.
7. Repeat step 6 till you get no negative entries in the last column.