L4 5 6 7 SimplexMethod
L4 5 6 7 SimplexMethod
Simplex Method
1. LP Model in Equation Form
• LP Model in Equation Form
• Two requirements
• Surplus Variable
• Nonnegative RHS
LP Model in Equation Form
• Unrestricted Variable
• Example
• Basic variables = m,
B C
• Nonbasic variables = n-m
A D E
Entering variable x1
Simplex Tableau
• Leaving variable
• Minimum nonnegative ratio of RHS of the equation
to the corresponding constraint coefficient under
the entering variable
• Feasible condition
Pivot element
Entering
Variable
Pivot
column
Gauss-Jordon Row Operation
• Pivot element = 6
Gauss-Jordon Row Operation
• Gauss-Jordon Row
operations
Simplex Tableau
Any entering
Variable?
Constraints
Steps of Simplex Method
Optimality condition
Maximization problem Minimization problem
Most negative coefficient of nonbasic variable Most positive coefficient of nonbasic variable
Feasibility condition
Smallest nonnegative ratio Smallest nonnegative ratio
Steps of Simplex Method
4. Artificial Starting Solution
• Constraints are (≤) with nonnegative right hand sides offers a
convenient all-slack starting basic feasible solution.
• Models with ≥ or = constraints do not.
• Artificial Variable: Starting “ill-behaved” LPs with ≥ or = constraints
is to use artificial variable that play the role of slacks at the first
iteration, and then dispose them legitimately at a later iteration.
• Two methods
• M-method
• Two phase method
M-Method
• Use x3 surplus with constraint 2 and slack variable x4 with
constraint 3
Minimization problem:
Add MRi
• Entering variable: x2
• Leaving variable: R2
M-Method
• Apply Gauss-Jordon row operations
Pivot column
Basic x1 x2 x3 R1 R2 x4 Solution Ratio
Z 0 0 1/5 -492/5 -501/5 0 18/5
x1 1 0 1/5 3/5 -1/5 0 3/5 3
x2 0 1 -3/5 -4/5 3/5 0 6/5 -2
Pivot row x4 0 0 1 1 -1 1 1 1
• Entering variable: x3
• Leaving variable: x4
M-Method
• Apply Gauss-Jordon row operations
Any entering
Variable?
Basic x1 x2 x3 R1 R2 x4 Solution
Z 0 0 0 -493/5 -100 -1/5 17/5
x1 1 0 0 2/5 0 -1/5 2/5
x2 0 1 0 -1/5 0 3/5 9/5
x3 0 0 1 1 -1 1 1
• Simplex tableau
Inconsistence
Phase-I of Two Phase Method
• Substitution
• Simplex tableau
Phase-II of Two Phase Method
• Substitution to make coefficient of basic variables x1 and x2 zero
• Simplex tableau
x1 + 4x2 + x3 = 8
x1 + 2x2 + x4 = 4
x1, x2 ≥ 0
Ratio
8/4=2
Tie
4/2=2
Cycling
0 Or
Circling
• Overdetermined
• Superfluous resources
Alternate Optima
• Objective function is parallel to nonredundant binding constraint
• Binding constraint: A constraint that is satisfied as an equation at
the optimal solution.
• Example
Alternate Optima
0
• Already get the optima
• Point B in graph
0 • Optima
• Point C in graph
• Nonzero x1
2x1 ≤ 40
Unbounded Solution
Iteration Basic X1 X2 X3 X4 Solution Ratio
0 Z -2 -1 0 0 0
X1 enters X3 1 -1 1 0 10 10
X3 leaves
X4 2 0 0 1 40 20
1 Z 0 -3 2 0 20
X2 enters X1 1 -1 1 0 10
X4 leaves
x4 0 2 -2 1 20 10
2 Z 0 0 -1 3/2 50
X3 enters X1 1 0 0 1/2 20 20/0
No leaving
variable X2 0 1 -1 1/2 10 10/-1
4
Infeasible Solution
• By allowing R to be positive, the simplex method in essence, has
reversed the direction of the inequality from