Documente Academic
Documente Profesional
Documente Cultură
linear
programming
Simplex Method
CONTENTS
❧
❧ Introduction
❧ Simplex Method
❧ Shadow Price
❧ Special cases in LP
❧ The dual
• added to a
constraint to convert
❧
• subtracted from a
constraint to convert
• has no physical
meaning in terms of
it to an equation (=). it to an equation (=). a real world LP
• represents an problem.
• represents the
amount of unused excess above a • An artificial variable
resources. constraint is not allowed to
requirement level. appear in the final
• contribute nothing solution to the
to the objective • contribute nothing
to the objective problem.
function value
function value. • Each artificial
variable is assigned
an extremely high
cost to ensure it
Whenever an artificial or surplus variable is added to one
does not appear in
of the constraints, it must also be included in the other
the final solution.
equations and in the objective function, just as what we
have done for slack variables.
❧
❧
Example 3.2
❧
Maximize Z=40x1+30x2+60x3
Subject to,
3x1+x2+3x3 ≤ 30
2x1+2x2+3x3 ≤ 40
x1, x2, x3 ≥ 0
❧
2. Finding an Initial Solution Algebraically
2. Locate the most positive entry in the bottom row (maximization problem), the
most negative entry in the bottom row (minimization problem). The column
for this entry is called the pivot column. (If ties occur, any of the tied entries
can be used to determine the pivot column.)
3. Form the ratios of the entries in the “quantity” column with their corresponding
entries in the pivot column. The leaving row corresponds to the smallest
nonnegative ratio (If all entries in the pivot column are 0 or negative, then
there is no maximum (minimum) solution. For ties, choose either entry.) The
entry in the departing row and the entering column is called the pivot.
❧
4. Use elementary row operations so that the pivot is 1, and all other entries
in the pivot column are 0. This process is called pivoting.
5. If all entries in the bottom row (Cj-Zj) row are zero or positive, this is the
final tableau of maximization problem. If all entries in the bottom row
(Cj-Zj) row are zero or negative, this is the final tableau of minimization
problem.
6. If you obtain a final tableau, then the linear programming problem has a
maximum (minimum) solution, which is given by the entry in the
lower-right corner of the tableau.
EXAMPLE 3.3
❧
Flair Furniture Company produces inexpensive tables and chairs.
The production process for each is similar in that both require a
certain number of hours of carpentry work and a certain
number of labour hours in the painting and varnishing
department. Each table takes 4 hours of carpentry and 2 hours in
the painting and varnishing. Each chair requires 3 hours in
carpentry and 1 hour in painting and varnishing. During the
current production period, 240 hours of carpentry time are
available and 100 hours in painting and varnishing time are
available. Each table sold yields a profit of USD70; each chair
produced is sold for a USD50 profit.
Flair Furniture’s problem is to determine the best possible
combination of tables and chairs to manufacture in order to
reach the maximum profit.
Initial tableau
Cj 70 50 0 0
Solution x1 x2 s1 s2 Quantity
mix
❧
0 s1 4 3 1 0 240
0 s2 2 1 0 1 100
Zj 0 0 0 0 0
Cj-Zj 70 50 0 0
matrix form
Elementary row
operations
❧ involved
By looking at Cj-Zj row, the highest value is 70, by x1.
By finding the ratio, (Z/(element in pivot column)), the
lowest value is 50, by s2
Thus, x1 will be the entering variable, replacing s2, the
leaving variable.
The pivot entry is a21
Second tableau
Cj 70 50 0 0
Solution x1 x2 s1 s2 Quantity
mix
❧
0 s1 0 1 1 -2 40
70 x1 1 1/2 0 1/2 50
Zj 70 35 0 35 3500
Cj-Zj 0 15 0 -35
matrix form
Elementary row
operations
❧ involved
By looking at Cj-Zj row, the highest value is 15, by x2.
By finding the ratio, (Z/(element in pivot column)), the
lowest value is 40, by s1
Thus, x2 will be the entering variable, replacing s1, the
leaving variable.
The pivot entry is a12
Third tableau
Cj 70 50 0 0
Solution x1 x2 s1 s2 Quantity
mix
❧
50 x2 0 1 1 -2 40
70 x1 1 0 -1/2 3/2 30
Zj 70 50 15 5 4100
Cj-Zj 0 0 -15 -5
matrix form
Optimal solution: ❧
Cj 70 50 0 0
Solution x1 x2 s1 s2 Quantity
mix
❧
50 x2 0 1 1 -2 40
70 x1 1 0 -1/2 3/2 30
Zj 70 50 15 5 4100
Cj-Zj 0 0 -15 -5
THE DUAL
❧
❧ Every LP primal (first way of stating a linear problem)
has a dual
Solution x1 x2 x3 s1 s2 s3 Quantity
mix
❧
10 x1 1 0 1/2 3/4 0 -5/4 37.5
0 s2 0 0 0 -1/2 1 1/2 5
S1 0 0 1 -16 0.6 20
x1 1 0 0 2 -0.1 10
x2 0 1 0 -1 0.1 10
Zj P
Cj-Zj
cont...
❧
The final simplex tableau for the above problem is given below.
(1 marks)
c) State the optimal solution.
(2 marks)
d) Which resource is not fully utilized? State the unused value.
(2 marks)
e) Is it worthwhile to increase an additional labor hour for RM10?
Explain.
(2 marks)
f) Formulate the dual of this problem and give the solution of the
dual.
(4 marks)
Example 3.7
❧
Solving minimization
problem
❧
To solve minimization linear programming problem in standard form, use the following steps.
2. Locate the most negative entry in the bottom row (minimization problem). The column for this entry is called the pivot column.
(If ties occur, any of the tied entries can be used to determine the pivot column.)
3. Form the ratios of the entries in the “quantity” column with their corresponding entries in the pivot column. The leaving row
corresponds to the smallest nonnegative ratio (If all entries in the pivot column are 0 or negative, then there is no minimum
solution. For ties, choose either entry.) The entry in the departing row and the entering column is called the pivot.
4. Use elementary row operations so that the pivot is 1, and all other entries in the pivot column are 0. This process is called
pivoting.
5. If all entries in the bottom row (Cj-Zj) row are zero or negative, this is the final tableau of minimization problem.
6. If you obtain a final tableau, then the linear programming problem has a minimum solution, which is given by the entry in the
lower-right corner of the tableau.