Min Z=x1+2x2+3x3
Subject to :
x1−x2+x3≥2
x1+x2+2x3≤8
x1−x3≤2
x1,x2,x3≥0
After introducing slack,surplus, artificial variables
Max Z=x1+2x2+3x3+0S1+0S2+0S3−MA1−MA2
Subject to
x1−x2+x3−S1+A1=2
x1+x2+2x3+S2=8
x1−x3−S3+A2=2
and all are greater than zero.
Negative number Zj−Cj is -2M−1 and its column index is 1. So, the entering variable is x1 .
Minimum ratio is 2 and its row index is 1. So, the leaving basis variable is A1 .
Therefore, the pivot element is 1.
Entering = x1 , Departing = A_1 , Key element = 1
R1(new)=R1(old)
R2(new)=R2(old)−R1(new)
R3(new)=R3(old)−R1(new)
Negative number Zj−Cj is −M−3 and its column index is 2. So, the entering variable is x2 .
Minimum ratio is 0 and its row index is 3. So, the leaving basis variable is A2 .
Therefore, the pivot element is 1.
Entering = x2 , Departing = A2 , Key element = 1
R3(new)=R3(old)
R1(new)=R1(old)+R1(new)
R2(new)=R2(old)−2R3(new)
Negative number Zj−Cj is -8 and its column index is 3. So, the entering variable is x3 .
Minimum ratio is 1.2 and its row index is 2. So, the leaving basis variable is S2 .
Therefore, the pivot element is 5.
Entering = x3 , Departing = S2 , Key element = 5
R2(new)=5R2(old)
R1(new)=R1(old)+R2(new)
R3(new)=R3(old)+2R2(new)
Since all Zj−Cj≥0.
Hence, the optimal solution is arrived with value of variables as:
x1=3.2
x2=2.4
x3=1.2
Max Z=11.6
Comments