Professional Documents
Culture Documents
The Simplex Method of Linear Programming: CD Tutorial
The Simplex Method of Linear Programming: CD Tutorial
C D
3
T U T O R I A L
DISCUSSION QUESTIONS
1. The fundamental purpose of the simplex procedure is to
enable solutions to be found for sets of simultaneous equations in
which the number of variables exceeds the number of equations.
The simplex procedure is:
Identify the pivot column by finding the minimum cj zj.
Identify the pivot row by dividing each value in the
quantity column by the value in the same row which is in
the pivot column. Select the row having the smallest
positive result from this division process as the new pivot
row. Circle the number at the intersection of the pivot row
and the pivot column—this is the pivot number.
Divide each value in the pivot row by the pivot number and
put the results in a new tableau. This is the new version of
the pivot row. Relabel with the pivot column variable and cj.
Multiply the new version of the pivot row by another
number in the pivot column (not the pivot number).
Subtract this product from the row from which you got the
number. Put the result in the new tableau. Do this for all
numbers in the pivot column except, cj, zj and cj zj.
Compute the zj as the sum of each column’s values
multiplied by their corresponding columnar cj values. To
get the cj zj, subtract the zj row at the top of the tableau.
If all
cj zj values are positive, you have an optimal solution.
Otherwise return to first step.
2. Differences between graphical and simplex methods:
Graphic can be used only when two variables are in the
model.
Graphic must evaluate all corner points (if corner point
method is used); simplex checks a lesser number of
corners.
Simplex can be automated and systematized.
Simplex involves use of surplus, slack, and artificial
variables, and provides useful economic data as a by-
product.
Similarities between graphic and simplex methods:
Both find optimal solution at a corner point.
Both require a feasible region and the same problem
structure (objective function and constraints).
The graphical method, which provides a better intuitive
understanding of the problem than the simplex method, is
preferable whenever it is possible to use it.
296
CD TUTORIAL 3 T H E S I M P L E X M E T H O D O F L I N E A R P R O G R A M M I N G 297
3. Pivot column:
Select the variable column with the largest positive cj zj
value (in a maximization problem) or largest negative cj zj
value (in a minimization problem).
Pivot row:
Select the row with the smallest quantity-to-column ratio
that is a nonnegative number.
Pivot number:
Defined to be at the intersection of the pivot column and
pivot row.
END-OF-TUTORIAL PROBLEMS
T3.1 The original equations are:
Objective: 9x1 12x2 (maximize)
Subject to: x1 x2 10 (gallons, varnish)
x1 2x2 12 (lengths, redwood)
298 CD TUTORIAL 3 T H E S I M P L E X M E T H O D O F L I N E A R P R O G R A M M I N G
where: zj 0 0 0 0 0
x1 number of coffee tables/week cj zj 3 9 0 0
x2 number of bookcases/week (b) Step 1: Identify the pivot column by finding the
The constraint equations must first be re-written as maximum cj zj
equalities with the appropriate slack variables: Step 2: Identify the pivot row by dividing each value in
the quantity column by the value in the same row which is
x1 x2 S1 10
in the pivot column. Select the row having the smallest
x1 2x2 S2 12
positive result from this division process as the new pivot
and then the system of equations entered into the simplex row. Circle the number at the intersection of the pivot row
tableau as shown below: and the pivot column—this is the pivot number.
Initial simplex tableau: Step 3: Divide each value in the pivot row by the pivot
number and put the results in a new tableau. This is the
cj Solution Mix 9 12 0 0 Quantity new version of the pivot row. Relabel with the pivot
x1 x2 S1 S2 column variable and cj.
0 S1 1 1 1 0 10 Step 4: Multiply the new version of the pivot row by
0 S2 1 2 0 1 12 another number in the pivot column (not the pivot number).
zj 0 0 0 0 0 Subtract this product from the row from which you got the
cj zj 9 12 0 0 number. Put the result in the new tableau. Do this for all
numbers in the pivot column except cj, zj and cj zj.
Second simplex tableau: Step 5: Compute the zj as the sum of each column’s
cj Solution Mix 9 12 0 0 Quantity values multiplied by their corresponding columnar cj
values. To get the cj zj subtract the zj row at the top of the
x1 x2 S1 S2 tableau. If all cj zj values are positive, you have an
0 S1 1/2 0 1 1/2 4
optimal solution. Otherwise return to step 1.
12 x1 1/2 1 0 1/2 6
zj 6 12 0 6 72
cj zj 3 0 0 6
(c) Second simplex tableau:
T3.3 x1 x2 S S2
1
5 x2 0 1 1.00 0.00 6
3 x1 1 0 0.67 0.33 2
zj 3 5 3.00 1.00 36
cj zj 0 0 3.00 1.00
Because this is a maximization problem, and the bottom
row of the tableau now includes only numbers which are
negative or zero, we have reached the optimal solution.
Optimal: x1 2, x2 6, Profit $36
The iterations of the Simplex tableau traverse the corner
solutions in the order (a), (b), (c).
The original equations are: T3.4
Objective: 3x1 5x2 (maximize)
Subject to: x2 6
3x1 2x2 18
x1, x2 0 (non-negativity)
The optimal solution is found at the intersection of the two
constraints. Solving for the values of x1 and x2 at the
intersection, we have:
x2 6
18 2 x2 18 2 6 6
x1 2
3 3 3
Profit 3x1 5x2 3 2 5 6 6 30 $36
To solve this problem using the simplex method, the The original equations are:
constraint equations must first be re-written as equalities with Objective: 4x1 5x2 (minimize)
the appropriate slack variables: Subject to: x1 2x2 80
x2 S1 6 3x1 x2 75
3x1 2x2 S2 18 The optimal solution is found at the intersection of the two
constraints:
and then the system of equations entered into the Simplex x1 2x2 80
tableau as shown below: 3x1 x2 75
Initial simplex tableau: To solve these equations simultaneously, begin by writing
cj Solution 3 5 0 0 Quantity them in the form shown below:
Mix x1 2x2 80
x1 x2 S1 S2 3x1 x2 75
0 S1 0 1 1 0 6 Multiply the second equation by 2 and add it to the first:
0 S2 3 2 0 1 18
zj 0 0 0 0 0
x1 2 x2 80 x1 2 x2 80
cj zj 3 5 0 0
2(3x1 x2 75) 6 x1 2 x2 150
Second simplex tableau: 5x1 70
cj Solution 3 5 0 0 Quantity
Thus, x1 70/5 14. Given:
Mix
x1 2x2 80
x1 x2 S1 S2
2x2 80 x1 80 14
5 x2 0 1 0 6
1 or
0 S2 3 0 2 1 6 66
x2 33
zj 0 5 0 30 2
5 The cost is given by:
cj zj 3 0 5 0
C 4x1 5x2 4 14 5 33 $221
Third simplex tableau: To solve this problem using the simplex method, the
cj Solution 3 5 0 0 Quantity constraint equations must first be re-written as equalities
Mix with the appropriate surplus and artificial variables:
CD TUTORIAL 3 T H E S I M P L E X M E T H O D O F L I N E A R P R O G R A M M I N G 301