Professional Documents
Culture Documents
Solving Linear Programming Problems by Simplex Method: DR Syed Ajaz Kirmani
Solving Linear Programming Problems by Simplex Method: DR Syed Ajaz Kirmani
Solving Linear Programming Problems by Simplex Method: DR Syed Ajaz Kirmani
Programming Problems
By
Simplex Method
Dr Syed Ajaz Kirmani
Q. What is a Linear Programming Problem?
if no if yes stop
≤ + slack (s)
≥ - Surplus (s) , + artificial (A)
= + Artificial (A)
satisfy constraints and non-negativity condition.
Example:
Maximize Z = 7X1+5X2 , subject to the constraints,
X1+2X2 < or = 6
4X1+3X2 < or = 12 and X1 & X2 are non-negative.
Cj 600 500 0 0 M M
Min.Ratio
Basic
Basic (XB/Pivotal
CB Variab X1 X2 S1 S2 A1 A2 Col.)
Soln(XB)
le (B)
M A1 80 2 1 -1 0 1 0 80
M A2 60 1 2 0 -1 0 1 60
Zj 3M 3M M M M M
Cj - Zj 600-3M 500-3M M M 0 0
It is clear from the tableau that X2 will enter and A2 will
leave the basis. Hence 2 is the key element in pivotal
column. Now,the new row operations are as follows:
R2(New) = R2(Old)/2
R1(New) = R1(Old) - 1*R2(New)
Cj 600 500 0 0 M
Min.Ratio
Basic
Basic (XB/Pivota
CB Variab X1 X2 S1 S2 A1 l Col.)
Soln(XB)
le (B)
M A1 50 3 2 0 -1 1 2 1 100/3
500 X2 30 1 2 1 0 - 1/2 0 60
Zj 3M/2+250 500 M M/2-250 M
Cj - Zj 350-3M/2 0 M 250-M/2 0
It is clear from the tableau that X1 will enter and A1 will
leave the basis. Hence 2 is the key element in pivotal
column. Now,the new row operations are as follows:
R1(New) = R1(Old)*2/3
R2(New) = R2(Old) – (1/2)*R1(New)
600 X1 100/3 1 0 2 3 1 3
500 X2 40/3 0 1 1 3 2 3
Zj 600 500 700 3 400 3
Cj - Zj 0 0 700 3 400 3
Since all the values of (Cj-Zj) are either zero or positive
and also both the artificial variables have been removed,
an optimum solution has been arrived at with X1=100/3 ,
X2=40/3 and Z=80,000/3.