5 Simplex Method - Lecture
5 Simplex Method - Lecture
Method
LP Solution
Simplex
Method
• is an algebraic procedure for solving linear programming
problems.
• The simplex method uses elementary row operations to
iterate from one basic feasible solution (extreme point) to
another until the optimal solution is reached.
2
How to find an initial basic feasible solution?
• For each constraint equation, the coefficient of one of the m basic variables in that
equation must be 1, and the coefficient for all the remaining basic variables in that
First Property equation must be 0.
• The coefficient for each basic variable must be 1 in only one constraint equation.
• enables us to find a basic feasible solution requires the values of the right-hand
sides of the constraint equations be non-negative. This ensures that the basic
Second Property solution obtained by setting the basic variables equal to the values of the right-hand
sides will be feasible
Maximize: 𝑍=10𝑥+9𝑦
Subject to:
7/10 𝑥+1𝑦≤630 Cutting & dyeing constraint (Constraint 1)
1/2 𝑥+5/6 𝑦≤600 Sewing constraint (Constraint 2)
1𝑥+2/3 𝑦≤708 Finishing constraint (Constraint 3)
1/10 𝑥+1/4 𝑦≤135 Inspection & packaging constraint (Constraint 4)
𝑥,𝑦≥0 Non-negativity constraint
1 2 3 4 5
Convert the Develop the Improve the Calculate the Move towards
LP model in a initial simplex solution next tableau the best
tableau form tableau through solution
iterations.
• The second approach is based on the fact that any minimization problem can be
converted to an equivalent maximization problem by multiplying the objective
Second Approach function by – 1. Solving the resulting maximization problem will provide the optimal
solution to the minimization problem.
Minimize: 𝑍=2𝑥_1+3𝑥_2
Subject to: 1𝑥_1 ≥125 Demand for Product 1
1𝑥_1+1𝑥_2≥350 Total Production
2𝑥_1+1𝑥_2≤600 Processing time
𝑥_1,𝑥_2≥0 Non-negativity
Subject to:
2x1 + x2 <= 20
x1 + x2 <= 18
x1 <= 8
Subject to:
2x1 + x2 >= 6
x1 + x2 >= 4
x1, x2 >= 0
Basis 𝒄𝑩 50 40 0 0 0 0 - M 𝒃𝒊
𝑥2 40 0 1 8ൗ 0 − 3ൗ25 0 0 12
25
𝑆2 0 0 0 − 8ൗ25 1 3ൗ 0 0 8
25
𝑥1 50 1 0 − 5ൗ25 0 5ൗ 0 0 30
25
𝐴4 -M 0 0 − 3ൗ25 0 − 2ൗ25 -1 1 8
𝒛𝒋 50 40 𝟕𝟎 + 𝟑𝑴 0 𝟏𝟑𝟎 + 𝟐𝑴 M - M 1980 -
𝟐𝟓 𝟐𝟓 8M
𝒄𝒋 − 𝒛𝒋 0 0 −𝟕𝟎 − 𝟑𝑴 −𝟏𝟑𝟎 − 𝟐𝑴 -M 0
44 𝟐𝟓 Simplex Method 𝟐𝟓 2022
Infeasibility
We recognize infeasibility when one or more of the artificial variables remain in the final
solution at a positive value.
𝑥1 𝑥2 𝑺𝟏 𝑺𝟐
Basis 𝒄𝑩 20 10 0 0 𝒃𝒊
𝑥1 20 1 0 - 1 0 2
𝑆2 0 0 1 0 1 5
𝒛𝒋 20 0 - 20 0 40
𝒄𝒋 − 𝒛𝒋 0 10 20 0
When employing the simplex solution procedure, an unbounded linear program exists if at some
iteration, the simplex method tells us to introduce variable j into the solution and all the 𝑎𝑖𝑗 less
than or equal to zero in the jth column
Basis 𝒄𝑩 30 50 0 0 0 𝒃𝒊
𝑥2 50 0 1 0 1 0 20
𝒄𝒋 − 𝒛𝒋 0 0 -10 0 0
50 Simplex Method 2022
Alternative Optimal Solution
• In looking at the net evaluation row in 𝒙𝟏 𝒙𝟐 𝑺𝟏 𝑺𝟐 𝑺3
the optimal simplex tableau, we see
Basis 30 50 0 0 0
that the 𝑐_𝑗−𝑧_𝑗 value for the non 𝒄𝑩 𝒃𝒊
basic variable 𝑆_2 is equal to zero.
This indicates that the LP may have 𝑥2 50 0 1 8ൗ 0 − 3ൗ 12
25 25
alternative optimal solutions.
𝑆2 0 0 0 − 8ൗ25 1 3ൗ 8
25
• We can introduce 𝑆_2 into the basis
without changing the value of the 𝑥1 30 1 0 − 5ൗ25 0 5ൗ
25
30
solution. The tableau obtained after
30 50 10 0 0 1500
introducing 𝑆_2 follows: 𝒛𝒋
𝒄𝒋 − 𝒛𝒋 0 0 -10 0 0
When using the simplex method, we can recognize the possibility of alternative optimal solutions
if 𝑐𝑗 − 𝑧𝑗 equals zero for one or more of the nonbasic variables in the final simplex tableau.
𝒙𝟏 𝒙𝟐 𝑺𝟏 𝑺𝟐 𝑺3
Basis 𝒄𝑩 50 40 0 0 0 𝒃𝒊
𝑥1 50 1 5ൗ 0 0 1ൗ 𝟕𝟓ൗ
8 8 𝟐
𝒛𝒋 50 𝟐𝟓𝟎ൗ 0 0 𝟓𝟎ൗ 1875
𝟖 𝟖
𝒄𝒋 − 𝒛𝒋 0 𝟕𝟎ൗ 0 0 − 𝟓𝟎ൗ𝟖
𝟖
54 Simplex Method 2022
Degeneracy
• The entries in the net evaluation row indicate that 𝑥_2 should enter the basis. By calculating the appropriate ratios to
determine the pivot row, we obtain
𝒙𝟏 𝒙𝟐 𝑺𝟏 𝑺𝟐 𝑺3
Basis 𝒄𝑩 50 40 0 0 0 𝒃𝒊
𝑥1 50 1 5ൗ 0 0 1ൗ 𝟕𝟓ൗ ÷ 𝟓ൗ = 𝟔𝟎
8 8 𝟐 𝟖
𝒛𝒋 50 𝟐𝟓𝟎ൗ 0 0 𝟓𝟎ൗ 1875
𝟖 𝟖
𝒄𝒋 − 𝒛𝒋 0 𝟕𝟎ൗ 0 0 − 𝟓𝟎ൗ𝟖
𝟖
55 Simplex Method 2022
Degeneracy
• The simplex tableau after this iteration is as follows:
𝒙𝟏 𝒙𝟐 𝑺𝟏 𝑺𝟐 𝑺3
Basis 𝒄𝑩 50 40 0 0 0 𝒃𝒊
𝑥2 40 0 1 8ൗ 0 − 3ൗ25 20
25
𝑆2 0 0 0 − 8ൗ25 1 3ൗ 0
25
𝑥1 50 1 0 − 5ൗ25 0 5ൗ 25
25
𝒛𝒋 50 40 𝟕𝟎ൗ 0 𝟏𝟑𝟎ൗ 2050
𝟐𝟓 𝟐𝟓
𝒄𝒋 − 𝒛𝒋 0 0 − 𝟕𝟎ൗ𝟐𝟓 0 − 𝟏𝟑𝟎ൗ𝟐𝟓
56 Simplex Method 2022
Degeneracy
Whenever we have a tie in the minimum 𝑏𝑖ൗ𝑎𝑖𝑗 ratio, there will always be a basic variable equal to zero in the
next tableau.
• Since we are at the optimal solution in the preceding case, we do not care that 𝑆_2 is in a solution at a zero value.
• However, if degeneracy occurs at some iteration prior to reaching the optimal solution, it is theoretically possible for the
simplex method to cycle; that is, the procedure could possibly alternate between the same set of non-optimal basic feasible
solutions and never reach the optimal solution.
• Cycling has not proven to be a significant difficulty in practice. Therefore, introducing any special steps into the simplex
method to eliminate the possibility that degeneracy will occur is not recommended.