Simplex Method
Simplex Method
Simplex Method
Simplex Method
S1 10 2 1 1 0
S2 24 4 3 0 1
o The constants on the right-hand side (RHS) of the equality
have been moved to the left of the table for convenience.
The numbers (2,1,1,0) and (4,3,0,1) represent the
coefficients of the first equation and second equation,
respectively.
X1 0
X2 0
=
S1 10
S2 24
o Variables in the solution mix, often called the basis in LP
terminology, are referred to as basic variables. In this
example, the basic variables are S1 and S2 . Variables not in
the solution mix or basis (X1 and X2 in this case) are called
nonbasic variables. Of course, if the optimal solution to this
LP problem turned out to be X1= 3, X2= 4, S1= 0, and S2=
0, or
X1 3
X2 4
=
S1 0
S2 0
Cj $7 $5 $0 $0
Solution Quantity
Mix (RHS) X1 X2 S1 S2
$0 S1 10 2 1 1 0
$0 S2 24 4 3 0 1
Zj $0 $0 $0 $0 $0
Cj - Z j (total profit) $7 $5 $0 $0
The terms and rows which you have not seen before are
described below.
o Cj - Zj: This number represents the net profit (that is, the
profit gained minus the profit given up), which will result
from introducing one unit of each product (variable) into
the solution. It is not calculated for the quantity column. To
compute these numbers, simply subtract the total from the
Cj value at the very top of each variable’s column.
The calculations for the net profit per unit (Cj - Zj) row in
this example are:
Column
X1 X2 S1 S2
Cj for column: $7 $5 $0 $0
Zj for column: $0 $0 $0 $0
Cj – Zj for column $7 $5 $0 $0
It was obvious to us when we computed a profit of $0 that
this initial solution was not optimal. By examining numbers
in the Cj - Zj row of the table in Example 10.2, we see that
total profit can be increased by $7 for each unit of X1
(tables) and by $5 for each unit of X2 (chairs) added to the
solution mix. A negative number in the Cj - Zj row would tell
us that profits would decrease if the corresponding variable
were added to the solution mix. An optimal solution is
reached in the simplex method when the Cj - Zj row
contains no positive numbers. Such is not the case in our
initial tableau.
SIMPLEX SOLUTION PROCEDURES
We shall first list the five steps and then apply them in
determining the second and third tableaus for the data in
Example 10.2
Step 1: Determine which variable to enter into the solution
mix next. This is done by identifying the column (and hence,
variable) with the largest positive number in the C j - Zj row of
the previous tableau. This means that we will now be
producing some of the product contributing the greatest
additional profit/unit.
number above or
(new row numbers) = (numbers in old row) below pivot
X
number
corresponding number in
the new row, i.e., the
row replaced in step 3
Step5: Compute the and Cj - Zj rows, as previously
demonstrated in the initial tableau. If all numbers in the
Cj - Zj row are zero or negative, an optimal solution has
been reached, If this is not the case, return to step 1.
Pivot
$0 S1 10 2 1 1 0 row
$0 S2 24 4 3 0 1
Pivot number
Zj $0 $0 $0 $0 $0
Cj - Z j $7 $5 $0 $0
Pivot column
Step 1: Variable X will enter the solution next because it has
the highest contribution to profit value, Cj - Zj: Its column
becomes the pivot column (identified with an arrow).
.
$7 X1 5 1 1/2 1/2 0
4 = 24 - 4 X 5
- X 1
0 = 4 4
- X 1/2
1 = 3 4
-2 = 0 - 4 X 1/2
1 = 1 - 4 X 0
Cj Solution Mix Quantity X1 X2 S1 S2
$7 X1 5 1 1/2 1/2 0
$0 S2 4 0 0 -2 1
Cj $7 $5 $0 $0
Solution Quantity
Mix X1 X2 S1 S2
Pivot column
Since not all numbers in the Cj – Zj row of this latest tableau
are zero or negative, the above solution (that is, X 1 = 5, S2 =
4, X2 = 0, S1 = 0, profit = $35) is not optimal arid we
proceed to a third tableau and repeat the five steps.
Step 2: The pivot row becomes the S2 row because the ratio
4/1 = 4 is smaller than the ratio 5/(1/2) = 10.
3 = 5 - 1/2 X 4
- X 0
1 = 1 1/2
- X 1
0 = 1/2 1/2
3/2 = 1/2 - 1/2 X -2
-1/2 = 0 - 1/2 X 1
Step 5: The Z and Cj - Zj rows are calculated.
Cj $7 $5 $0 $0
Solution Quantity
Mix X1 X2 S1 S2
$7 X1 3 1 0 3/2 -1/2
$5 X2 4 0 1 -2 1
Cj - Zj $0 $0 -$1/2 -$3/2
Since every number in the third tableau’s Cj - Zj row is zero
or negative, an optimal solution has been reached. That
solution is: X1 = 3 (tables), and X2 = 4 (chairs),S1 = 0
(slack in 1st resource), S2 = 0 (slack in 2nd resource), and
profit = $41.
Let
X1 number of pounds of phosphate in the mixture
X2= number of pounds of potassium in the mixture
Objective function: minimize cost = $5X1 + $6X2
Objective function in simplex form:
minimize costs = $5X1+ $6X2+ $0S1+ $0S2+ $MA1+$MA2
1st constraint: 1X1 + 1X2 = 1,000 (lb) 1X1 + 1X2 +1A1 = 1,000
$M A1 1,000 1 1 0 0 1 0
$0 S1 300 1 0 1 0 0 0
$M A2 150 0 1 0 -1 0 1
As you recall, the numbers in the row are computed by
multiplying the C column on the far left of the tableau
times the corresponding numbers in each other column
Cj $5 $6 $0 $0 $M $M
Solution Quantity
Mix X1 X2 S1 S2 A1 A2
$M A1 1,000 1 1 0 0 1 0
$0 S1 300 1 0 1 0 0 0
$M A2 150 0 1 0 -1 0 1
Zj
$1,150 M $M $2M $0 -$M $M $M
(total cost)
Cj - Zj
-$M + 5 - $2M + 6 $0 -$M $0 $0
Variable X2 will enter the solution next because it has the
largest negative Cj-Zj entry. Variable A2 will be removed
from the solution because the ratio 150/1 is smaller than
the ratios of the quantity column numbers to the
corresponding X2 column numbers in the other two rows.
That is, 150/1 (the third or A2 row) is less than 1,000/1
(the first row) and less than 300/0 (the second row). This
latter ratio, by the way, involving division by zero, is
considered an undefined number—or one that is infinitely
large—and hence we may ignore it.
Cj $5 $6 $0 $0 $M $M
Solution Quantity
Mix X1 X2 S1 S2 A1 A2
$M A1 850 1 0 0 1 1 -1
$0 S1 300 1 0 1 0 0 0
$6 X2 150 0 1 0 -1 0 1
Zj
$850M + 900$M $6 $0 $M-6 $M -$M+6
Cj - Zj
-$M + 5 $0 $0 -$M+6 $0 $2M-6