LPP Simplex
LPP Simplex
Simplex Method
1
PREPARED BY:
HANSIKA KHURANA
DEPARTMENT OF COMMERCE
FOR B.COM(H)
SEMESTER IV, SECTIONS A & B
1. Slack Variable
To convert an inequality to an equality, we add a
variable to the left side of a less than or equal to
constraint
It makes up for the slack/deficiency on the left side
For Instance, X + 3Y <=20
To convert this inequality into an equality, we add a
slack variable, “s” on the L.H.S.
2. Surplus Variable
Similar to slack variable, to convert an inequality to
equality, we subtract a variable from the left side of a
greater than or equal to constraint
This is done to reduce/remove the excess on the left side
For instance, X + 3Y >= 20
To convert this inequality into an equality, we subtract a
surplus variable “s” from the L.H.S.
MAXIMIZATION CASE
We have a basic feasible solution when we equate our variables to 0 i.e. x = 0 and y =
0
Maximize Z = 0
s1 = 36
s2 = 50
s3 = 60
0 s1 36 3 3 1 0 0 36/3 = 12
0 s2 50 5 2 0 1 0 50/2 = 25
60/6 = 10
0 s3 60 2 6 0 0 1
ç
0*0 + 0*0 +
36*0 + 3*0 + 3*0 + 1*0 +
1*0 + 0*0 +
Zj 50*0 + 5*0 + 2*0 + 0*0+0*
0*0 = 0 1*0 = 0
60*0 = 0 2*0 = 0 6*0 = 0 0=0
Since there is one variable that is departing, i.e. s3, and one variable entering, i.e. y,
the values in each row will now have to be changed, to reflect changes in variables
Eg: For Row s1, we will calculate the new value under “Solution/Quantity” column as
follows:
36 – 3 x 10 = 6
36 – Old Value
3 – The old value in the same row (s1) under the key column (y)
10 – The new key row number which we obtained in step (i) above i.e. 60/6 = 10
Now make Table/Tableau 2 (refer next slide)
Department of Commerce, Gargi College 23/03/20
Solutio 20 30 0 0 0
Basic
n/
Cj Varia Ratio
Quantit 14
bles
y x y s1 s2 s3
0 s1 6 2 0 1 0 -1/2 6/2 = 3 ç
30/(13/3)
0 s2 30 13/3 0 0 1 -1/3
= 90/13
10/(1/3) =
30 y 10 1/3 1 0 0 1/6
30
6*0 +
30*0 +
Zj 10 30 0 0 5
10*30 =
300
Cj - Zj 10 é 0 0 0 -5
Department of Commerce, Gargi College 23/03/20
15
20 x 3 1 0 1/2 0 -1/4
0 s2 17 0 0 -13/6 1 3/4
30 y 9 0 1 -1/6 0 1/4
3*20 +
17*0 +
Zj 20 30 5 0 5/2
9*30 =
330
Cj-Zj 0 0 -5 0 -5/2
Department of Commerce, Gargi College 23/03/20
Step 7 - Interpreting the Final Table and Deriving
Solution
17
Since all values in the Cj-Zj row are either 0 or negative, we have found the optimum
solution
The answer is:
Maximum Profit is 330
When we produce:
x = 3 i.e. 3 chairs &
y = 9 i.e. 9 tables
s1, s3 = 0, s2 = 17
The Cj-Zj row in the final tables shows the shadow prices
i.e. for s1, it is 5, which means that if we increase the utilization of the
resource by one additional hour, we can increase the value of our objective
function (profit) by Rs.5
The existence of a slack variable in the final table, i.e. s2 = 17, shows that our
resources have not been completely utilized. At the same time, the value in the Cj-Zj
row for column s2 = 0, which again indicates that even if we add an additional hour
for this resource, we will add Rs. 0 (or nothing) to the objective function.