Académique Documents
Professionnel Documents
Culture Documents
4. Graph the constraints, and always solve for the coordinates at the
point of intersection of lines.
5. Substitute the coordinates at the vertices of the feasible region in
the objective function
6. Formulate your decision by selecting the highest value of the
objective if it is maximization and the lowest value if it is
minimization.
EXAMPLE
CHAPTER FOUR
The Simplex
Maximization Method
Of Linear Programming
Simplex Maximization Problems
Cj 80 60 0 0 Objective
Coefficient rows
Prod Qty x y S1 S2 Variable row
0 S1 30 2 1 1 0
Constraints
0 S2 24 1 2 0 1 coefficients
Zj 0 0 0 0 0
Cj - Zj 80 60 0 0
Step 4: Calculate Cj and Zj values
• Zj row is obtained by multiplying the profit contribution in Cj column by
each of the coefficients in the constraints, then add their products. Hence:
0(30 2 1 1 0) = 0 0 0 0 0
0(24 1 2 0 1) =+ 0 0 0 0 0
Zj = 0 0 0 0 0
• To compute for Cj – Zj :
80 60 0 0 Cj row
- ( 0 0 0 0) Zj row
Cj – Zj = 80 60 0 0
Step 5: Determine the optimum column or entering variable by choosing the most positive
value in the Cj – Zj row.
Step 6: Divide the quantity-column values by the non-zero and non-negative entries in the
optimum column. The smallest quotient belongs to the pivotal row.
Entering variable Pivot
Cj 80 60 0 0 Pivotal
Prod Qty x y S1 S2 row
0 S1 30 2 1 1 0 30 / 2 = 15
0 S2 24 1 2 0 1 24 / 1 = 24
Outgoing Zj 0 0 0 0 0
variable
Cj - Zj 80 60 0 0
Optimum column
The variable found at the top of the optimum column should be the entering or incoming variable and the
variable to the left of the pivotal row is the outgoing variable.
Step 7: Compute the values for the replacing row by dividing all entries by
the pivot. Enter the result in the next table.
• The pivotal row entries should be divided by 2, the pivot, in order to change to 1.
• ( 30 2 1 1 0) / 2 = 15 1 ½ ½ 0 . The result is called the replacing row and should be the row
to be entered first in the second table.
Cj 80 60 0 0
Prod Qty x y S1 S2
80 x 15 1 1/2 1/2 0 Replacing
row
0 S2
Zj
Cj - Zj
Step 8: Compute the new entries for the remaining rows by reducing the
optimum column entries to zero ( entries in the constraint rows).
Cj 80 60 0 0
Prod Qty x y S1 S2
80 x 15 1 1/2 1/2 0
0 S2 9 0 3/2 -1/2 1
Zj
Cj - Zj
The second constraint row or S2 row is the row to be replaced. Since the number found below the pivot is
1 we must multiply the replacing row by -1, and add the result to the row to be replaced in order that the
entry below the pivot becomes zero.
• Computing for S2 row:
15 (-1) + 24 = 9
1 (-1) + 1 = 0
½ (-1) + 2 = 1 ½ or 3/2
½ (-1) + 0 = -1/2
0(-1) + 1 = 1
Step 9: Calculate Cj and Zj values. Compute also for Cj – Zj row.
• To compute for Zj row multiply 80 by ( 15 1 ½ ½ 0) and multiply 0 by (9 0 3/2 -1/2 1) then
add the results.
Cj 80 60 0 0
Prod Qty x y S1 S2
80 x 15 1 1/2 1/2 0
0 S2 9 0 3/2 -1/2 1
Zj 1200 80 40 40 0
Cj - Zj 0 20 -40 0
• To compute for Cj- Zj row, we subtract Cj row (80 40 40 0) from Zj row (80 60 0 0).
Step 10: If there is a positive entry in the Cj – Zj row, return to step 5. The
final solution has been obtained if there is no positive value in the Cj – Zj row.
Cj 80 60 0 0
Prod Qty x y S1 S2
80 x 15 1 1/2 1/2 0
0 S2 9 0 3/2 -1/2 1
Zj 1200 80 40 40 0
Cj - Zj 0 20 -40 0
Since there is still a positive value in the Cj – Zj row, we have to return to step five.
• Again we select the most positive entry in the Cj-Zj row. 20 is the most positive value, hence it
belongs to the optimum column.
• Divide 15 by ½ and 9 by 3/2 to locate the pivotal row. Find the smallest quotient.
Cj 80 60 0 0
Prod Qty x y S1 S2
80 x 15 1 1/2 1/2 0 15/ ½ = 7 1/2
0 S2 9 0 3/2 -1/2 1 9 / 3/2 = 6
Zj 1200 80 40 40 0
Cj - Zj 0 20 -40 0
• Again the variable above the optimum column is the entering variable and the
variable to the left of the pivotal row is the outgoing variable. We now reduced the
pivot to 1 by dividing the pivotal row by 3/2 . ( 9 0 3/2 -1/1 1) / 3/2 = 6, 0, 1, -1/3,
2/3 .
Cj 80 60 0 0
Prod Qty x y S1 S2
80 x
60 y 6 0 1 -1/3 2/3
Zj
Cj - Zj
The row to be replaced is the x row. The entry to be reduced to zero is ½.
6 ( -1/2) + 15 = 12
0 ( -1/2) + 1 = 1 -1/3( -1/2) + ½ = 4/6 or 2/3
1(-1/2) + ½ = 0 2/3 (-1/2) + 0 = -1/3
Cj 80 60 0 0
Prod Qty x y S1 S2
80 x 12 1 0 2/3 -1/3
60 y 6 0 1 -1/3 2/3
Zj
Cj - Zj
• Again compute for the Zj Row:
Cj 80 60 0 0
Prod Qty x y S1 S2
80 x 12 1 0 2/3 -1/3
60 y 6 0 1 -1/3 2/3
Zj 1320 80 60 100/3 40/3
Cj - Zj
Compute for the Cj – Zj row:
80 60 0 0
- (80 60 100/3 40/3 0
0 0 -100/3 -40/3
Cj 80 60 0 0
Prod Qty x y S1 S2
80 x 12 1 0 2/3 -1/3
60 y 6 0 1 -1/3 2/3
Zj 1320 80 60 100/3 40/3
Cj - Zj 0 0 -100/3 -40/3
• In an equality constraint, the slack variable will have a value equal to the
constant if the solution variables are zero.
• Example:
Maximize: 5x1 + 4x2
Subject to: 2X1 + X2 = 12
2X1 + 3X2 < 24
2X1 + 9X2 > 36
X1 > 0, X2 > 0
• Solution:
The new program with Slacks Variable:
Maximize: 5x1 + 4x2 + 0S1 + 0S2 + 0S3
Subject to: 2X1 + X2 + S1= 12
2X1 + 3X2 + S2< 24
2X1 + 9X2 + S3> 36
X1 > 0, X2 > 0 , S1> 0, S2 > 0 , S3 > 0
The nitial Table (Table 1)
Cj 5 4 0 0 0
Prod Qty x1 x2 s1 s2 s3
0 S1 12 2 1 1 0 0
0 S2 24 2 3 0 1 0
0 S3 -36 -2 -9 0 0 1
Zj 0 0 0 0 0 0 Pivotal row
Cj - Zj 5 4 0 0 0
Optimum Column
Table II ( with the replacing row)
Cj 5 4 0 0 0
Prod Qty x1 x2 s1 s2 s3
5 x1 6 1 1/2 1/2 0 0
0 S2
0 S3
Zj
Cj - Zj
Computing for S2 row: Computing for S3 row:
Optimum Column
Table III (with replacing row)
Cj 5 4 0 0 0
Prod Qty x1 x2 s1 s2 s3
5 x1
4 S2 6 0 1 -1/2 1/2 0
0 S3
Zj
Cj - Zj
Computations:
• X1 row: S3 row:
6(-1/2) + 6 = 3 6(8) + -24 = 24
0(-1/20 + 1 = 1 0(8) + 0 = 0
1(-1/2) + ½ = 0 1(8)+ -8 =0
-1/2 (-1/2) + ½ = ¾ -1/2 (8) + 1 = -3
½ (-1/2) + 0 = -1/4 ½(8) + 0 =4
0(-1/2) + 0 = 0 0(8) + 1 = 1
Table III (with complete entries):
Cj 5 4 0 0 0
Prod Qty x1 x2 s1 s2 s3
5 x1 3 1 0 3/4 -1/4 0
4 S2 6 0 1 -1/2 1/2 0
0 S3 24 0 0 -3 4 1
Zj 39 5 4 7/4 3/4 0
Cj - Zj 0 0 -7/4 -3/4 0
Decision:
x1 = 3 , x2 = 6 , Maximum: 39