Maximise P=70x1+50x2
Subject to4x1+3x2≤240
2x1+x2≥0, x1,x2≥0
The problem is converted to canonical form by adding slack surplus and artificial variables as appropriate.
1.As the constant -1 is of type (≤) we should add slack variables1
2.As the constant -2 is of type (≤) we should add slack variables2
After introducing slack variables
Max z=70x1+50x2+0S1+0S2
Subject to 4x1+3x2+S1=240
2x1+x2+S2=100
x1,x2,S1,S2≥0
Interation 1 | | cj | 70 | 50 | 0 | 0 | |
B | cB | cB | x1 | x2 | s1 | s2 | Min Ratio XB/x1 |
s1 | 0 | 240 | 4 | 3 | 1 | 0 | 2404=60 |
s2 | 0 | 100 | (2) | 1 | 0 | 1 | 1002=50 |
z=0 | | zj | 0 | 0 | 0 | 0 | |
| | cj−zj | 70↑ | 50 | 0 | 0 | |
Positive maximum cj−zj is 70 and its column index is 1. So the entering variable is x1
Minimum ratio is 50 and its row index is 2
So, the leaving basis variable is s2
∴ The pivot element is 2
Entering =x1, Departing=s2, Key Element=2
R2(new)=R2(old)/2
R1(new)=R1(old)−4R2(new)
Interation-2 |
| cj
| 70 | 50 | 0 | 0 | |
B | cB | xB | x1 | x2 | s1 | s2 | Min Ratio αB/x2 |
s1 | 0 | 40 | 0 | (1) | 1 | -2 | 401=40→ |
x1 | 70 | 50 | 1 | 12 | 0 | 12 | 501/2=100 |
z=3500 | | zj | 70 | 35 | 0 | 35 | |
| | cj | 0 | 15↑ | 0 | -35 | |
Positive maximum cj−zj is 15 and its coloumn index is 2
So entering variable is x2
Minimum ratio is 40 and its row index is 1.So leaving bases variable is s1
∴ The pivot element is 1
Entering =x2, Department =s1, key element=1
R1(new)=R1(old)
R2(new)=R2(old)−12R1(new)
Interation-3 | | cj | 70 | 50 | 0 | 0 |
B | cB | xB | x1 | x2 | s1 | s2 |
x2 | 50 | 40 | 0 | 1 | 1 | -2 |
x1 | 70 | 30 | 1 | 0 | −12
| 3/2 |
z=4100 | | zj | 70 | 50 | 15 | 5 |
| | cj−zj | 0 | 0 | -15 | -5 |
Since allcj−zj≤0
Hence optional solution is arrived with value of variables
as x1=30,x2=40
Max z=4100