Professional Documents
Culture Documents
Chapter 3 The Simplex Method and Sensitivity Analysis
Chapter 3 The Simplex Method and Sensitivity Analysis
if no if yes stop
X1 + S1 = 4
2 X2 + S2 = 12
3X1 +2X2 + S3 = 18
Iteration 0:
Basic X1 X2 S1 S2 S3 RHS
variable
Z -3 -5 0 0 0 0
S1 1 0 1 0 0 4
S2 0 2 0 1 0 12
S3 3 2 0 0 1 18
Notes:
• The basic feasible solution at the initial tableau is (0,
0, 4, 12, 18) where:
X1 = 0, X2 = 0, S1 = 4, S2 = 12, S3 = 18, and Z = 0
Where S1, S2, and S3 are basic variables
X1 and X2 are non basic variables
• The solution at the initial tableau is associated to the
origin point at which all the decision variables are
zero.
b. Iteration
Step 1. Determine the entering basic variable by
selecting the variable (from a non basic variable)
with the most negative value (in case of
maximization) or with the most positive (in case of
minimization) in the objective row (Z-row). Put a
box around the column below this variable, and call
it the “pivot column”
Entering
variable
Basic X1 X2 S1 S2 S3 RHS
variable
Z -3 -5 0 0 0 0
S1 1 0 1 0 0 4
S2 0 2 0 1 0 12
S3 3 2 0 0 1 18
Basic X1 X2 S1 S2 S3 RHS
variable
S1
X2 0 1 0 1/2 0 6
S3
Basic X1 X2 S1 S2 S3 RHS
variable
Z 0 0 0 3/2 1 36
S1 0 0 1 1/3 -1/3 2
X2 0 1 0 1/2 0 6
X1 1 0 0 -1/3 1/3 2
Iteration 0:
Basic X1 X2 S1 S2 S3 RHS
variable
Z -3 -5 0 0 0 0
S1 1 0 1 0 0 4
S2 0 2 0 1 0 12
S3 3 2 0 0 1 18
Iteration 01:
Basic X1 X2 S1 S2 S3 RHS
variable
Z -3 0 0 5/2 0 30
S1 1 0 1 0 0 4
X2 0 1 0 1/2 0 6
S3 3 0 0 -1 1 6
Iteration 02:
Basic X1 X2 S1 S2 S3 RHS
variable
Z 0 0 0 3/2 1 36
S1 0 0 1 1/3 -1/3 2
X2 0 1 0 1/2 0 6
X1 1 0 0 -1/3 1/3 2
Optimality condition: The entering variable in a
maximization (minimization) problem is the non-
basic 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).
The daily demand for interior paint cannot exceed that for exterior paint
by more than 1 ton. Also, the maximum daily demand for interior paint is
2 tons.
maximize x0 =3x1+2x2+5x3
Subject to
x1+2x2+x3 430
3x1+2x3 460
x1+4x2 420
x10, x20, x3 0.
Practice -4
Solve the following minimization problem -
Subject to
3x1 - x2 + 2x3 7
-2x1+4x2 12
-4x1+3x2 +8x3 10
x10, x20, x3 0.
Artificial Starting Solution Technique
If any of the constraints in the
original problem is ( or (=), the
slack variable cannot provide a
starting (feasible) solution.
Simplex method requires initial
started
To solve such LPP there are two methods.
(i) M-Method
(ii) Two-phase Method
M-method
.
Solving steps
Step 1: Express the problem in the standard form.
Step 2: Add non-negative artificial variables to the left side of each
of the equations corresponding to constraints of the type >, or =
Step 3: Solve until anyone of the three cases may arise.
1. If no artificial variable appears in the basic and the optimality
conditions are satisfied.
2. If at least one artificial variable in the basis at zero level and the
optimality condition is satisfied then the current solution is an
optimal basic feasible solution (though degenerated solution).
3. If at least one artificial variable appears in the basis at positive
level and the optimality condition is satisfied, then the original
problem has no feasible solution. The solution satisfies the
constraints but does not optimize the objective function, since it
contains a very large penalty M and is called pseudo optimal
solution.
Example
subject to
Standard form:
Subject to
Starting tableau:
-M -M
Using M=100,
Iteration 0:
Iteration 1:
Iteration 2:
Iteration 3:
Iteration 4:
subject to
x1 + x2 + x3 7
2x1 - 5x2 + x3 10
x10, x20, x3 0.
Practice -6
Subject to
x1 + 5x2 - 3x3
5x1 - 6x2 + 10x3 20
x1 + x2 + x3 = 5
x10, x20, x3 0
Assignment
Practice -2
Practice -4
Practice -6
Phase I
Put the problem in equation form, and add the
necessary artificial variables to the constraints.
Example
subject to
Standard form:
Next, we introduce an artificial objective function
as the sum of artificial variables introduced in the
constraints.
The objective function should minimize the sum of
the artificial variable regardless of whether the
original LP is maximization or minimization.
#
Phase I
Starting tableau:
Iteration 1:
Iteration 2:
Iteration 3:
Maximize 3x1+2x2
Subject to 2x1+x2 2
3x1+4x2 12
x= 0, x2 0
Special Cases in The Simplex Method
1. Degeneracy
2. Alternative optima
3. Unbounded solutions
4. Non existing (or infeasible) solutions
Degeneracy
Subject to constraints:
x1 + 4x2 8
x1 + 2x2 4
x1, x2 0
Solution:
Let S1 and S2 be two slack variables.
Modified form is:
Z - 3x1 - 9x2 = 0
x1 + 4x2 + S1 = 8
x1 + 2x2+S2 = 4
x1, x2 , S1, S2 0
Iteration 1
Iteration 2
Basic Z x1 x2 s1 s2 Solution
Z 1 0 0 0 10 1200
x2 0 0 1 0.8 -0.2 8
x1 0 1 0 -0.6 0.4 24
Subject to
Graphical solution
Starting solution
Non existing (or infeasible) solutions
Subject to
Solution
Sensitivity Analysis
How does the value of the optimum solution change
when coefficients in the objective function or
constraints change?
The entries in the top row are the change dj associated with
variable xj. For the leftmost column, the top element is 1 in
the z-row followed by di basic variable xi. Keep in mind that di
= 0 for slack variable xi.
To compute the new reduced cost for any variable (or the
value of z), multiply the elements of its column by the
corresponding elements in the leftmost column, add them up,
and subtract the top-row element from the sum.