03 Chapter
03 Chapter
Tenth Edition
Chapter 3
The Simplex Method and
Sensitivity Analysis
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.1. LP Model in Equation Form
The development of the simplex method computations is facilitated
by imposing two requirements on the LP model:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.2. Transitions from Graphical to Algebraic Solution
For example, the
equation x + y = 1 has
m = 1 and n = 2 and
yields an infinite number
of solutions because
any point on the straight
line x + y = 1 is a
solution.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.2. Transitions from Graphical to Algebraic Solution
Basic solutions correspond
to the corner points in the
graphical solution space.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Example 3.2.1
Consider the following LP with two variables:
Solution Space of Example 3-2-1
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Example 3.2.1
Algebraically, the solution space of the LP is represented by the
following m = 2 equations and n = 4 variables:
The solution starts at the origin [(x1, x2) = (0, 0)], thus defining (x1, x2)
as the nonbasic variables and (s1, s2, s3, s4) as the basic variables.
The objective function z = 5x1 + 4x2 shows that the solution can be
improved by increasing the value of nonbasic x1 or x2 above zero.
3.3.2. Computational Details of the Simplex Algorithm
The starting simplex tableau can be represented as follows:
x1 is
to be increased because it has the most positive objective
coefficient.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Simplex Method Ratios in the Reddy Mikks Model
• The value of x1
must be
increased to the
smallest
nonnegative
intercept with the
x-axis to reach
corner point B.
• Any increase
beyond B is
infeasible.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.3.2. Computational Details of the Simplex Algorithm
At point B, the current basic variable s1 associated with constraint 1
assumes a zero value and becomes the leaving variable.
• As for the feasibility condition for selecting the leaving variable, the
rule remains unchanged.
• Optimality condition.
• The entering variable in a maximization (minimization) problem
is the nonbasic variable with the most negative (positive)
coefficient in the z-row.
• Ties are broken arbitrarily.
• The optimum is reached at the iteration where all the z-row
coefficients are nonnegative (nonpositive).
3.3.3. Summary of the Simplex Method
• Feasibility condition.
• For both the maximization and the minimization problems, the
leaving variable is the basic variable associated with the
smallest nonnegative ratio with strictly positive denominator.
• Ties are broken arbitrarily.
3.4. Artificial Starting Solution
As demonstrated in Example 3.3-1, LPs in which all the constraints
are (≤) with nonnegative right-hand sides offer a convenient all-slack
starting basic feasible solution.
The procedure for starting “ill-behaved” LPs with (=) and (≥)
constraints is to use artificial variables that play the role of slacks at
the first iteration.
However, because the artificial variables are not part of the original
problem, a modeling “trick” is needed to force them to zero value by
the time the optimum iteration is reached.
The fact that R1 and R2 have nonzero coefficients (-100, -100) in the
z-row (Different from example Example 3.3.1, where the z-row
coefficients of the slack are zero).
The last tableau shows that x2 and R2 are the entering and leaving
variables, respectively.
Two more iterations are needed to reach the optimum:
3.4.2 Two-Phase Method
In the M-method, the use of the penalty, M, can result in computer
roundoff error.
Phase II. Use the feasible solution from Phase I as a starting basic
feasible solution for the original problem.
3.4.2 Two-Phase Method
3.4.2 Two-Phase Method
8/4=2
4/2=2
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.5.2. Alternative Optima
An LP problem may have an infinite number of alternative
optima when the objective function is parallel to a
nonredundant binding (Tr. bağlayıcı) constraint.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Example 3.5.2
The iterations:
Although x1 should be the entering variable (it has the most negative
z-coefficient), we note that all the constraint coefficients under x2 are
≤ 0—meaning that x2 can be increased indefinitely without violating
any of the constraints.
Figure 3-7 LP Unbounded Solution in
Example 3-5-3
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.5.4. Infeasible Solution
LP models with inconsistent constraints have no feasible solution.
This situation does not occur if all the constraints are of the type ≤
with nonnegative right-hand sides because the slacks provide an
obvious feasible solution.
Using the penalty M = 100 for the artificial variable R, the following
tableau provide the simplex iterations of the model.
Example 3.5.4
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6. Sensitivity Analysis
In LP, the parameters (input data) of the model can change within
certain limits without causing changes in the optimum.
The revenues per unit of products 1 and 2 are $30 and $20,
respectively.
The total daily processing time available for each machine is 8 hrs.
Example 3.6.1 Changes in the Right-Hand Side
Letting x1 and x2 represent the daily number of units of products 1
and 2, respectively, the LP model is given as:
Graphical Sensitivity Analysis (1 of 2)
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (1 of 2)
The rate of change in optimum z resulting from changing machine 1
capacity from 8 to 9 hrs can be computed as:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (1 of 2)
The dual price of $14/hr remains valid for changes
(increases or decreases) in machine 1 capacity that
move its constraint parallel to itself to any point on the
line segment BF.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (1 of 2)
We compute machine 1 capacities at points B and F as follows:
The conclusion is that the dual price of $14.00/hr remains valid only
in the range:
Changes outside this range produce a different dual price (worth per
unit).
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (1 of 2)
Using similar computations, the dual price for machine 2 is $2/hr.
The dual price ($2/hr) for machine 2 remains applicable for the range:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (1 of 2)
Question 1. If JOBCO can increase the capacity of both machines,
which machine should receive priority?
Answer. From the dual prices for machines 1 and 2, each additional
hour of machine 1 increases revenue by $14, as opposed to only $2
for machine 2. Thus, priority should be given to machine 1.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (1 of 2)
Question 3. If the capacity of machine 1 is increased from 8 to 13
hrs, how will this increase impact the optimum revenue?
Answer. The dual price for machine 1 is $14 and is applicable in the
range (2.67, 16) hr. The proposed increase to 13 hrs falls within the
feasibility range. Hence, the increase in revenue is $14(13 – 8) =
$70, which means that the total revenue will be increased from $128
to $198 ( = $128 + $70).
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (1 of 2)
Question 5. How can we determine the new optimum values
of the variables associated with a change in a resource?
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (2 of 2)
The optimum solution at point C remains
unchanged so long as the objective function lies
between lines BF and DE.
Maximize z=
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (2 of 2)
Imagine now that line z is pivoted at C and that it
can rotate clockwise and counterclockwise.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (2 of 2)
Question 1. Suppose that the unit revenues for products 1
and 2 are changed to $35 and $25, respectively. Will the
current optimum remain the same?
The new objective function is
Maximize
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Graphical Sensitivity Analysis (2 of 2)
Question 2. Suppose that the unit revenue of product 2 is
fixed at its current value c2 = $20. What is the associated
optimality range for the unit revenue for product 1, c1, that will
keep the optimum unchanged?
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.2. Algebraic Sensitivity Analysis-
Changes in the Right-Hand Side
A numeric example (the TOYCO model) will be used to facilitate
the presentation.
The daily available times for the three operations are 430, 460,
and 420 mins, respectively, and the revenues per unit of toy train,
truck, and car are $3, $2, and $5, respectively.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.2. Algebraic Sensitivity Analysis-
Changes in the Right-Hand Side
The assembly times per truck at the three operations are 1, 3, and
1 mins, respectively.
The corresponding times per train and per car are (2, 0, 4) and (1,
2, 0) mins (a zero time indicates that the operation is not used).
Mathematical Model:
Let x1, x2, and x3 represent the daily number of units assembled of
trains, trucks, and cars, respectively.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.2. Algebraic Sensitivity Analysis-
Changes in the Right-Hand Side
The associated LP model is given as:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.2. Algebraic Sensitivity Analysis-
Changes in the Right-Hand Side
Using x4, x5, and x6 as the slack variables for the constraints of
operations 1, 2, and 3, respectively, the optimum tableau is:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Determination of dual prices and feasibility
ranges.
Suppose that D1, D2, and D3 are the (positive or negative) changes
made in the allotted daily manufacturing time of operations 1, 2, and
3, respectively.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Determination of dual prices and feasibility
ranges.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Determination of dual prices and feasibility
ranges.
After simplex iterations:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Determination of dual prices and feasibility
ranges.
The new optimum tableau provides the following optimal
solution:
Dual prices: The value of the objective function can be written as:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Determination of dual prices and feasibility
ranges.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Determination of dual prices and feasibility
ranges.
Feasibility range: The current solution remains feasible if all the
basic variables remain nonnegative—that is,
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Determination of dual prices and feasibility
ranges.
Suppose that the manufacturing time available for operations 1, 2,
and 3 are 480, 440, and 400 mins, respectively.
The calculations show that x6 < 0, hence the current solution does
not remain feasible.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Determination of dual prices and feasibility
ranges.
Alternatively, if the changes in the resources are such that
D1 = -30, D2 = -12, and D3 = 10, then:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Determination of dual prices and feasibility
ranges.
The given conditions can produce the individual feasibility ranges
associated with changing the resources one at a time.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Determination of dual prices and feasibility
ranges.
We can now summarize the dual prices and their feasibility ranges:
460
We can compute the new optimum objective value from the dual
prices as:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.3. Algebraic Sensitivity Analysis-
Objective Function
Definition of reduced cost. To facilitate the explanation of the
objective function sensitivity analysis, first we need to define
reduced costs.
The optimal solution does not produce toy trains (x1 = 0).
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.3. Algebraic Sensitivity Analysis-
Objective Function
We can think of the coefficient of x1 in the z-equation (= 4) as a
unit cost because it causes a reduction in the revenue z.
We also know that the production of toy train incurs cost because it
consumes resources (operations time).
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.3. Algebraic Sensitivity Analysis-
Objective Function
This relationship defines the so-called reduced cost and is
formalized in the LP literature as:
In the original TOYCO model the revenue per unit for toy trucks (=
$2) is less than that for toy trains (= $3).
The reason is that the cost of the resources used by one toy truck
(i.e., operations time) is smaller than its unit price. The opposite
applies in the case of toy trains.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.3. Algebraic Sensitivity Analysis-
Objective Function
We can see that an unprofitable variable (such as x1) can be made
profitable in two ways:
In the TOYCO model, let d1, d2, and d3 represent the change in
unit revenues for toy trucks, trains, and cars, respectively. The
objective function then becomes:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.3. Algebraic Sensitivity Analysis-
Objective Function
We first consider the general situation in which all the
objective coefficients are changed simultaneously.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.3. Algebraic Sensitivity Analysis-
Objective Function
After iterations:
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.3. Algebraic Sensitivity Analysis-Objective Function
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
3.6.3. Algebraic Sensitivity Analysis-Objective Function
The results show that the proposed changes will keep the
current solution (x1 = 0, x2 = 100, x3 = 230) optimal (with a new
value of z = 1350 + 100d2 + 230d3 = 1350 + -100 + 230 =
$1480).
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved