Chapter-3 (Simplex)
Chapter-3 (Simplex)
2
RESOLUTION BY THE SIMPLEX METHOD :
Maximization Problem
Step1: Standard Form
1. Transform linear program by standard form in which all
the constraints are written as equalities
Basic Solution
It has (n-m) variables equal to zero and solves the system of equations for
the remaining m variables
x1=0,x2=0,e1=240,e2=140,
The the initial basic variables VB={e1, e2},
Step 3: Form the Initial Tableau
Cj 25 15 0 0
VB Q X1 X2 e1 e2 RT
0 e1 240 2 2 1 0
0 e2 140 3 1 0 1
Zj 0 -0 0 0
Cj-Zj 25 15 0 0
Z1=2*0+3*0=0
𝐶𝑗 : coefficient of the variables in the OF C1-Z1=25-0
VB: Basic variables
Q: Basic Solution
RT: Ratio X1=0
Zj: feasible Solution X2=0
E1=240
Cj-Zj: Net Evaluation
E2=140
Terminology
Consider a system of m linear equations in n variables (n>m)
Basic Solution
It has (n-m) variables equal to zero and solves the system of equations for
the remaining m variables
Optimal Solution
Any BFS which optimizes(maximizes or minimizes) the objective function
8
Terminology
9
Step 4: Find (Cj-Zj) having highest positive
value
•The corresponding column: Pivot Column
•In the previous table, the column corresponding to X1 is the pivot column
•X1 will be entering the basis
Cj 25 15 0 0
VB Q X1 X2 e1 e2 RT
0 e1 240 2 2 1 0
0 e2 140 3 1 0 1
Zj 0 0 0 0
Cj-Zj 25 15 0 0
10
Step 5: Ratio-test
•Pivot Row: The row corresponding to the variable that will leave the table in order to make room for another variable
12
Step 6: Build the next table X1=140/3
X2=0
E1=440/3
Update !! E2=0
(440/3): (4/3)
Update !!
Pivot Row New value= old value / PIVOT
Other Rows New value= old value- (row projection*Column projection)/PIVOT
15
Checking by the graphical method
A B
100 X1*=10
X2*=110
Z*=1900
Z0 Z1
50
50 100
2x1+2x2=240
3X1+X2=140
Example 2
Maximize Z = 7X1+5X2
s.t. X1+2X2 ≤ 6
4X1+3X2 ≤ 12
X1; X2 ≥0
17
X1 + 2X2 +S1 =6
18
Step 2: Obtain a Basic Solution to the problem
19
Step 3: Form the Initial Tableau
Initial Tableau
Cj 7 5 0 0
Min.Ratio
Basic
Basic (XB/Pivotal
C Variable
B X1 X2 S1 S2
Soln(XB) Col.)
(B)
0 S1 6 1 2 1 0 6/1=6
0 S2 12 4 3 0 1 12/4=3
Zj 0 0 0 0
(Net Evaluation)Cj - Zj 7 5 0 0
Update !!
Pivot Row New value= old value / PIVOT
Other Rows New value= old value- (row projection*Column projection)/PIVOT
Cj 7 5 0 0
Min.Ratio
Basic
Basic (XB/Pivotal
CB Variable X1 X2 S1 S2
Soln(XB) Col.)
(B)
0 S1 3 0 54 1 - 1/4
7 X1 3 1 3/4 0 1/4
Zj 7 21 4 0 74
21
(Net Evaluation)Cj - Zj 0 - 1/4 0 -74
Step 7: Optimality test
22
Special cases
Multiple
Unbounded LP
solutions
The pivot column has Optimal tableau has zero
only negative or zero entries for non-basic
entries solutions in the Cj–Zj row
23
Multiple optimal solutions
TAB1 4 3 0 0
CB VB Q X1 X2 S1 S2 Ratio
0 S1 24 3 4 1 0 8
Maxz = 4x1+3x2 0 S2 48 8 6 0 1 6
Subject to Zj 0 0 0 0 0
3x1+4x2 <= 24 Cj-Zj 4 3 0 0
8x1+6x2<=48
TAB2 4 3 0 0
Standard form CB VB Q X1 X2 S1 S2 Ratio
0 S1 6 0 7/4 1 -3/8 24/7
Max Z = 4x1+ 3x2+ 0s1 +0s2
4 X1 6 1 6/8 0 1/6 8
Subject to Zj 24 4 3 0 4/6
3x1+4x2+s1 =24 Cj-Zj 0 0 0 -4/6
8x1+6x2+s2=48
TAB3 4 3 0 0
Optimal solution CB VB Q X1 X2 S1 S2 Ratio
24/7<= X1*<=6 3 X2 24/7 0 1 4/7 -14/3 6
0<=X2*<=24/7 4 X1 24/7 1 0 -3/7 0.14 -
8X1*+6X2*=48 Zj 24 4 3 0 -13.44
Z*=24 Cj-Zj 0 0 0 -13.44
Unbounded LP