Simplex Method MOT 4 n (3)
Simplex Method MOT 4 n (3)
S. T
The layout of the simplex table automatically provides the solution at the starting iteration (x1,x2) =(0,0)
(x1,x2) ----- Non basic variable
(s1,s2,s3,s4) ----- Basic variable
Layout of Simplex Table
Basic x1 x2 s1 s2 s3 s4 Solution
Z -5 -4 0 0 0 0 0
S1 6 4 1 0 0 0 24
S2 1 2 0 1 0 0 6
S3 -1 1 0 0 1 0 1
s4 0 1 0 0 0 1 2
Gauss-Jordan Row operation
• It identifies the entering variable column as pivot column
• Leaving variable row as pivot row
• The intersection of the pivot column and pivot row is the pivot element.
• It will modify the simplex table as follows:
Step 1: Replace the leaving variable in the basic column with entering
variable
Step 2: New pivot row = current pivot row / pivot element
Step 3: All other rows including Z:
new row = current row - (pivot column coefficient * New pivot row)
Basic x1 x2 s1 s2 s3 s4 Solution
Z -5 -4 0 0 0 0 0
S1 6 4 1 0 0 0 24
S2 1 2 0 1 0 0 6
S3 -1 1 0 0 1 0 1
s4 0 1 0 0 0 1 2
Basic x1 x2 s1 s2 s3 s4 Solution
Z 0 -2/3 5/6 0 0 0 20
x1 1 2/3 1/6 0 0 0 4
S2 0 4/3 -1/6 1 0 0 2
S3 0 5/3 1/6 0 1 0 5
s4 0 1 0 0 0 1 2
The resultant table is:
• Now , none of the z-row coefficients are negative. So, this is the
optimal solution.
Summary of the Simplex method
• Optimality condition (entering variable)
• Feasibility condition (leaving variable)
Optimality condition
• The entering variable in a maximization (minimization) problem is the
non-basic variable with 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 (non positive for minimization problem)
Feasibility condition
• For both maximization and minimization problem, the leaving variable
is the basic variable associated with smallest nonnegative ratio.
• Ties are broken arbitrarily
Gauss-Jordan Row operation
1. Pivot row : Replace the leaving variable in the basic column with
the entering variable
2. New pivot row = current pivot row / pivot element
3. All other row including z-row:
New row = current row – (its pivot column coefficient)* (New pivot
row)
Scarce and abundant resource
• The solution also gives the status of the resources.
• A resource is designated as scarce if its associated slack variable is zero—that is,
the activities (variables) of the model have used the resource completely.
• Otherwise, if the slack is positive, then the resource is abundant. The following
table classifies the constraints of the model:
Sensitivity analysis
• The simplex tableau offers a wealth of additional information that
include the following:
• 1. Sensitivity analysis, which deals with determining the conditions that will
keep the current solution unchanged.
• 2. Post-optimal analysis, which deals with finding a new optimal solution
when the data of the model are changed.
Sensitivity Analysis
• In LP, the parameters (input data) of the model can be changed within
certain limits without causing changes in the optimum.
• This is referred to as sensitivity analysis.
• Graphical sensitivity Analysis
• Sensitivity of the optimum solution to changes in the availability of the resources
(right-hand side of the constraints).
• Sensitivity of the optimum solution to changes in unit profit or unit cost
(coefficients of the objective function)
Changes in the Right-Hand side
• JOBCO manufactures two products on two machines.
• A unit of product 1 requires 2 hrs on machine 1 and 1 hr on machine 2
• For product 2, one unit requires 1 hr on machine 1 and 3 hrs on machine 2.
• 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.
• Letting x1 and x2 represent the daily number of units of products 1 and 2, respectively, the LP
model is given as
Maximize z = 30x1 + 20x2
Subject to
2x1 + x2 <= 8 (Machine 1)
x1 + 3x2 <= 8 (Machine 2)
x1, x2 >=0
• Find the graphical solution for this LP problem
Change in the optimum solution when changes are
made in the capacity of machine 1
• If the daily capacity is increased from 8 to 9 hrs, the new optimum will move to point G.
• The rate of change in optimum z resulting from changing machine 1 capacity from 8 to 9 hrs can
be computed as:
• The computed rate provides a direct link between the model input (resources) and its output
(total revenue).
• It says that a unit increase (decrease) in machine 1 capacity will increase (decrease) revenue by
$14.
Graphical
sensitivity of
optimal solution
to changes in the
availability of
resources (right-
hand side of the
constraints)
Dual Price and Machine 1
• The name unit worth of a resource is a description of the rate of change of the objective
function per unit change of a resource
• unit worth of resource dual or shadow price
• We can see that 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 FB.
• We compute machine 1 capacities at points F and B as follows:
• Minimum machine 1 capacity [at B = (0, 2.67)] = 2 * 0 + 1 * 2.67 = 2.67 hr
• Minimum machine 1 capacity [at F = (8, 0)] = 2 * 8 + 1 * 0 = 16 hr
• The conclusion is that the dual price of $14.00/hr remains valid only in the range
• 2.67 hr <= Machine 1 capacity <= 16 hr
• Changes outside this range produce a different dual price (worth per unit).
Dual price for machine 2
• Using similar computations, you can verify that the dual price for machine
2 capacity is $2/hr
• It remains valid for changes in machine 2 capacity within the line segment
DE.
• Now, Minimum machine 2 capacity [at D = (4, 0)] = 1 * 4 + 3 * 0 = 4 hr
Minimum machine 2 capacity [at E = (0, 8)] = 1 * 0 + 3 * 8 = 24 hr
• Thus, the dual price of $2/hr for machine 2 remains applicable for the
range 4 hr <= Machine 2 capacity <= 24 hr
• The computed limits for machine 1 and 2 are referred to as the feasibility
ranges.
The dual prices allow making economic
decisions about the LP problem
Question 1.
If JOBCO can increase the capacity of both
machines, which machine should
receive priority?
• 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
Question 2.
A suggestion is made to increase the capacities of
machines 1 and 2 at the additional cost of $10/hr
for each machine. Is this advisable?
This means that, by definition, the corresponding dual prices are 1, 2, and 0
($/min) for operations 1, 2, and 3, respectively.
• The coefficients of D1, D2, and D3 in the optimal z-row are exactly those of the slack variables
x4, x5, and x6.
• This means that the dual prices equal the coefficients of the slack variables in the optimal z-
row.
Feasibility range
• The current solution remains feasible if all the basic variables remain
nonnegative—that is,
• The calculations show that x6 < 0, hence the current solution does not
remain feasible
Feasibility range
• Alternatively, if the changes in the resources are such that D1 = -30, D2 = -12, and D3 =
10, then
• This means that the dual price for operation 1 is valid in the feasibility range -200≤ D1
≤10
• We can show in a similar manner that the feasibility ranges for operations 2
and 3 are -20 <= D<=400 and -20 <= D3 <=∞. respectively