Lecture 9_Introduction to Simplex Method
Lecture 9_Introduction to Simplex Method
Department of Mechanical
Engineering
BITS Pilani K. K. Birla Goa campus
Instructor in charge: Dr. Biswajit Das
An iterative Initialization
procedure (Find initial BFS)
Move to a better
adjacent BFS
• Equivalent to:
Let aij be the coefficient of the entering variable xj in the ith row.
bi
, aij 0 is Minimum
aij
subject to
x1 ≤4
2x2 ≤ 12
3x1+ 2x2 ≤18
x1, x2 ≥ 0
Z - 3x1 - 5x2 =0
x1 +s1 =4
2x2 +s2 = 12
3x1+ 2x2 +s3 = 18
s1
s2
s3
Basic x1 x2 s1 s2 s3
Z Solution
variable
Z 1 -3 -5 0 0 0 0
s1 0 1 0 1 0 0 4
s2 0 0 2 0 1 0 12
s3 0 3 2 0 0 1 18
Pivot row
New pivot row= Current pivot row/ pivot element
Z 1 -3 0 0 5/2 0 30 No Ratio
4/1 = 4
s1 0 1 0 1 0 0 4
x2 0 0 1 0 1/2 0 6 -------
6/3 =2
s3 0 3 0 0 -1 1 6
Z 1 0 0 0 3/2 1 36
s1 0 0 0 1 1/3 -1/3 2
x2 0 0 1 0 1/2 0 6
x1 0 1 0 0 -1/3 1/3 2
Feasible (4, 3)
Region
(0, 0) (4, 0)
Min Z = x1 -2x2 + x3
subject to
x1 + 2x2 -2x3 ≤4
x1 -x3 ≤3
2x1 -x2 +2x3 ≤ 2
x1 , x2 , x3 ≥0
Min Z = x1 -2x2 + x3
subject to
x1 + 2x2 -2x3 + s1 =4
x1 -x3 + s2 =3
2x1 -x2 +2x3 + s3 = 2
x 1 , x 2 , x 3 , s1 , s2 , s3 ≥ 0
Z - x1 + 2x2 - x3 =0
x1 + 2x2 -2x3 + s1 =4
x1 - x3 + s2 =3
2x1 - x2 + 2x3 + s3 = 2
Z 1 -1 2 -1 0 0 0 0 ---
S1 0 1 2 -2 1 0 0 4 4/2=2
S2 0 1 0 -1 0 1 0 3 -----
S3 0 2 -1 2 0 0 1 2 -----
Z 1 -2 0 1 -1 0 0 -4 ---
x2 0 1/2 1 -1 ½ 0 0 2 -----
S2 0 1 0 -1 0 1 0 3 -----
S3 0 5/2 0 1 ½ 0 1 4 4/1=1
x2 0 3 1 0 1 0 1 6 -----
S2 0 7/2 0 0 ½ 1 1 7 -----
x3 0 5/2 0 1 ½ 0 1 4 -----