Chapter 3 Linear Programming Simplex Method
Chapter 3 Linear Programming Simplex Method
THE SIMPLEX
METHOD
m = 3; n = 5 ➔ Number of m = 3; n = 5
nonbasic = 2, basic = 3. The final solution:
The initial solution: x1 = 2; x2 = 6; s1 = 2
x1 = x2 = 0 :non-basic s2 = s3 = 0
s1 = 4; s2 = 12; s3 = 18 : basic We have m=3 basic solutions and
(5 – 3) = 2 nonbasic solutions
5
SIMPLEX ITERATION 2
Cj 3 5 0 0 0
Solution X1 X2 S1 S2 S3 RHS
0 S1 1 0 1 0 0 4
5 X2 0 1 0 1/2 0 6
0 S3 3 0 0 -1 1 6 S3 leaving
Zj 0 5 0 5/2 0 30
Cj - Zj 3 0 0 - 5/2 0
X1 entering
This number must be This number must be
equal to 1 equal to 0
Operations Research - Assoc. Professor Ho Thanh Phong 8
SIMPLEX ITERATION 3
Cj 3 5 0 0 0
Solution X1 X2 S1 S2 S3 RHS
0 S1 0 0 1 1/3 - 1/3 2
5 X2 0 1 0 1/2 0 6
3 X1 1 0 0 -1/3 1/3 2
Zj 3 5 0 3/2 1 36
Cj - Zj 0 0 0 - 3/2 -1
All coefficients in (Cj-Zj) are non positive, we reach optimal solution. Values are:
We have S1 = 2, this means
X1 = 2 resource 1 have not used
X2 = 6 exhausted, something remains
Z = 36
Basic Z X1 X2 S1 S2 S3 RHS
Variable
Z 1 -3 -5 0 0 0 0
S1 0 1 0 1 0 0 4 Constraint
rows
S2 0 0 2 0 1 0 12
S3 0 3 2 0 0 1 18
Currently, X1 = X2 = 0; if we want to increase 1 unit of X1 so we have to
decrease S1 and S2 . Remember S1 and S2 is the available resources.
Notes: Z = 3x1 + 5x2➔ Z - 3x1 - 5x2= 0
11
12
Note: The coefficients of surplus and slack variables in objective function are 0 whereas
the coefficients of artificial variables are very big number, M. Max (use –M), Min (use
M)
13
14
15
16