4-Simplex Method
4-Simplex Method
4-Simplex Method
► Introduction
► Terminologies
► Simplex steps
► Case of a minimization problem
► Special cases
Simplex Method
83
Terminologies
84
Terminologies (contd.)
85
Terminologies (contd.)
86
The Simplex Method
−𝑥1 + 𝑥2 ≤ 11
𝑥1 + 𝑥2 ≤ 27
2𝑥1 + 5𝑥2 ≤ 90
𝑥1 ≥ 0, 𝑥2 ≥ 0
87
The Simplex Method
Step 1: Convert the LP problem into a system of linear equations
Standard form of a LP
Slack variables
88
The Simplex Method
Step 2: Obtain a Basic Solution to the problem
+0 s1 + 0s2 + 0s3
Non-basic variables
Cj 4 6 0 0 0 Min.
Ratio
Basic var. x1 x2 s1 s2 s3 Basic solution
s1 -1 1 1 0 0 11
s2 1 1 0 1 0 27
s3 2 5 0 0 1 90
Zj 0 0 0 0 0 Z=0
Cj - Zj 4 6 0 0 0
90
The Simplex Method
Step 4: Find the Pivot (1/2)
Cj 4 6 0 0 0 Min.
Ratio
Basic var. x1 x2 s1 s2 s3
XB
s1 -1 1 1 0 0 11
s2 1 1 0 1 0 27
s3 2 5 0 0 1 90
Zj 0 0 0 0 0
Cj - Zj 4 6 0 0 0
entering
91
The Simplex Method
Step 4: Find the Pivot (2/2)
► Find the Minimum Positive Ratio
► Divide XB values by the corresponding values of Pivotal Column.
► The row corresponding to the minimum positive value is the Pivotal Row and leaves the
table.
Pivot
Cj 4 6 0 0 0 Min.
Ratio XB
Basic var. x1 x2 s1 s2 s3
s1 -1 1 1 0 0 11/1=11 departing
s2 1 1 0 1 0 27/1=27
s3 2 5 0 0 1 90/5= 18
Zj 0 0 0 0 0
Cj - Zj 4 6 0 0 0
entering
92
The Simplex Method
Step 5: Pivoting (1/2)
► First iteration:
▪ In the new table, we shall place the incoming variable (X2)
instead of the outgoing variable (S1).
▪ Accordingly, new values of this row have to be obtained in
the following way
✓ R1(New)=R1(Old)/Pivotal Element = R1(Old)/1
► First iteration:
▪ In the new table, we shall place the incoming variable (X2)
instead of the outgoing variable (S1).
▪ Accordingly, new values of this row have to be obtained in
the following way
Cj 4 6 0 0 0 Min.
Ratio
Basic var. x1 x2 s1 s2 s3
x2 -1 1 1 0 0 11
s2 2 0 -1 1 0 16
s3 7 0 -5 0 1 35
Zj -6 6 6 0 0 Z=66
Cj - Zj 10 0 -6 0 0
94
The Simplex Method
Step 6: Check for optimality (1/2)
► If all the (Cj-Zj) values are zero or negative, an optimum point is reached,
otherwise repeat the process as given in Steps 4,5 & 6.
Cj 4 6 0 0 0 Min. Cj 4 6 0 0 0 Min.
Basic var. x1 x2 s1 s2 s3 Ratio Basic var. x1 x2 s1 s2 s3 Ratio
?
x2 -1 1 1 0 0 - x2 0 1 2/7 0 1/7 16
s2 2 0 -1 1 0 16/2=8 s2 0 0 3/7 1 -2/7 6
s3 7 0 -5 0 1 35/7=5 x1 1 0 -5/7 0 1/7 5
Zj -6 6 6 0 0 Z=66 Zj 4 6 -8/7 0 10/7 Z=116
Cj - Zj 10 0 -6 0 0 Cj - Zj 0 0 8/7 0 -10/7
95
The Simplex Method
Step 6: Check for optimality (2/2)
► If all the (Cj-Zj) values are zero or negative, an optimum point is reached
otherwise repeat the process as given in Step 4,5 & 6.
Cj 4 6 0 0 0 Min. Cj 4 6 0 0 0 Min.
Basic var. x1 x2 s1 s2 s3 Ratio Basic var. x1 x2 s1 s2 s3 Ratio
Optimal
solution
96
The Simplex Method Summarized
97
The Simplex Method Summarized
5. Use elementary row operations so that the pivot is 1, and all other entries in
the entering column are 0. This process is called pivoting.
6. If all entries in the bottom row are zero or negative, this is the final tableau.
If not, go back to Step 3.
7. If you obtain a final tableau, then the linear programming problem has a
maximum solution, which is given by the entry in the lower-right corner of the
tableau.
98
The Simplex Method
Case of a Minimization Problem
▪ Degeneracy
A solution of the problem is said degenerate solution if the value of at
least one basic variable becomes zero. It can cause the solution to cycle
indefinitely.
100
The Simplex Method
Special Cases
▪ Unbounded LP
The pivot column has only negative or zero entries: the ratio
test fails and hence the relevant entering variable can improve
the objective function with no stop.
101
The Simplex Method
Special Cases
▪ Multiple solutions
Optimal tableau has zero entries for non-basic solutions in the Cj–Zj row. Hence, by
pivoting on those rows we obtain new solutions with the same (optimal) value of Z.
102