Professional Documents
Culture Documents
4.simplex Method
4.simplex Method
1
Simplex Method
1. Linear programming can handle problems involving only two decision variables.
2. Simplex method provides an efficient technique which can be applied for solving
LPPs of any magnitude - involving two or more decision variables
3. In this technique the objective function is used to control the development of each
feasible solution to the problem.
4. If an optimal solution to the problem exists, it is located at the corner points of the
feasible region determined by the constraints of the system.
5. Simplex method selects optimal solution from among the set of feasible solutions to
the problem by iterative search.
‘n’ zero variables are called non-basic variables and remaining ‘m’ variables are
called basic variables
Basic Feasible Solution – The solution yield all non-negative basic variables.
Feasible Solution – Satisfies all the constraints
Degeneracy and non-degeneracy Basic Feasible Solution – A basic feasible solution
is said to be non-degenerate if it has exactly ‘m’ positive (non-zero) Xj.
If one or more of the ‘m’ basic variables are zero, it is called degenerate
(problem will not generate new solution)
Steps (Iteration procedure) in Simplex Method
subject to raw material constraint 2X1 + 3X2 60 Total wood available is 60 units
2 units of wood is required per table 3 units of wood is required per chair
X1, X2 ≥ 0
Labour hour constraint 4X1 + 3X2 96 Total labour available is 96 hours
X1 table and X2 chairs are
4 units of labour is required per table 3 units of labour is required per chair not negative
Interpretation of elements in Simplex tableau
Let S1 be slack variable for wood and S2 be slack variable for labour hours
40 35 4X1 + 3X 0 2 + S02 = 96
Hrs of labour @ 0 Rs. per hour
We are adding S1 and S2 objective function because, if wood or labour is left over, that
will be added to our objective of profit.
Let us start with the assumption that, Zero cost for slack material and slack labour
At the end of the solution if S1 or S2 leftover if any, so many units will be considered as
left over units of inputs.
Initial Simplex tableau
Zj
Cj - Zj
Basic variables
X1 X2 S1 S2
0 S1 2 3 1 0 60
0 S2 4 3 0 1 96
Zj
Cj - Zj
Cj = Coefficient of objective function The cost of slack variables S1 and S2 are zero
Cbi = Coefficient of basic variables
Interpretation of elements in Simplex tableau
2X1 + 3X2 + S1 = 60
Z = 40X1+35X2+0S1+0S2 4X1 + 3X2 + S2 = 96
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables
X1 X2 S1 S2
0 S1 2 3 1 0 60
0 S2 4 3 0 1 96
Zj 0 0 0 0 0
Cj - Zj
40 35 0 0
ZJ =
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
0 S1 2 3 1 0 60
2 60 /2= 30
S2 44 3 0 1 96
0 96/4 =24
96
0
3
1
Zj
0 0 0 0 0
Cj - Zj
40 35 0 0
We have more profit from table, we can use all the resources for making tables only. Therefore select table as
a product to work (i.e key column)
How many tables and chairs can be made from available wood and labour ?
we need 2 units of wood /table we have 60 units of wood i.e we can make 60/2 – 30 tables
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
0 S1 2 3 1 0 60 60 /2= 30
2
96
0
3
1
Zj 0 0 0 0 0
Cj - Zj 40 35 0 0
we need 4 hrs of labour /table we have 96 units of labour i.e we can make 96/4 –24 tables
Though we have wood for 30 tables we can only make 24 tables because of labour constraint
therefore select the least value 24 (S2 or labour) to calculate the best product mix (select S2 labour as key row)
entering variable
Basic variables X1 X2 S1 S2
(BV)
0 S1 42 3 1 0 60 60 /2= 30
4
96
0
3
1
40 S2 2 3 0 1 100 96/4 =24
0 0 0 0 0
Zj leaving variable
40 35 0 0
Cj - Zj
We have selected to work on table consuming all the labour hours by making slack S2 = 0
therefore we can replace S2 with X1
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
0 S1 2 3 1 0 60
2
40 X1 44 3 0 1 96 96/4 =24
96
0
3
1
Zj
0 0 0 0 0
Cj - Zj 0 0
40 35
Divide the key row coefficients with key element (in this case time required per table)
(4/4), (3/4), (0/4), (1/4) and (96/4) (we are dividing the time required per table across the
products, to see if one hour time is left how many other products can be made))
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
0 S1 4 3 1 0 60 60 /2= 30
2
X1 24/4 3 0 1 100
96/4
40 96/4 =24
0/4
3/4
1/4
Zj
Cj - Zj
Basic variables X1 X2 S1 S2
(BV)
0 S1 4 3 1 0 60 60 /2= 30
2
X1 24/4 3 0 1 100
96/4
40 96/4 =24
0/4
3/4
1/4
Zj
Cj - Zj
Old value ( - )
Solution I
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
Zj 40 30 0 10 960
Cj - Zj
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
Cj - Zj
Substitution rates or changes in S2 : Since one unit of X1 requires four hours, solution in
the table uses up all the 96 hrs.
If one unit of S2 i.e one hour is made available for other purposes, then ¼ units of X1
would have to be given up.
Since one unit of X1 require 2 kgs of wood, one hour of S2 reduces the out put of X1 by ¼
units , ¼ x 2 = ½ of wood would be unutilised (-1/2)
Solution I
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
Zj 960
40 30 0 10
Cj - Zj 0 5 0 -10
Adding a unit of X2 would replace 3/2 kgs of wood ( 2 x ¾ = 3/2) or released from X1
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
Substitution rates or changes in X1 : Addition of one unit of X1 would replace, one unit of
the same product.
Addition of X1 and replacing by X1 imply no change in the requirement of wood, it is
zero.
0 S1 0 3/2
3/2 1 -1/2 12 12/3/2= 8
40 X1 1 3/4
3/4 0 1/4 24 24/3/4 =32
Zj 960
40 30 0 10
Cj - Zj 0 5 0 -10
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
0 S1 0 3/23/2 1 -1/2 12
-1/2
3/2
12
0
1
12/3/2 = 8
40 X1 1 3/4
3/4 0 1/4 24
24x4/3=32
Zj 960
40 30 0 10
Cj - Zj 0 5
0 -10
Negative signs are gains and positive signs are loss or giving up for other activities
X1 1- ¾ x 0 / 3/2 = 1
S1 0 – (¾ x 1) /3/2 = - 1/2
Old value - S2 1/4 – (¾ x - 1/2) /3/2 = 0
X2 3/4 – (3/4x3/2) / 3/2= 0
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
0 S1 0 3/23/2 1 -1/2 12
-1/2
3/2
12
0
1
12/3/2 = 8
40 X1 1 3/4
3/4 0 1/4 24
24
Zj 960
40 30 0 10
Cj - Zj 0 5
0 -10
X1 1- ¾ x 0 / 3/2 = 1
S1 0 – (¾ x 1) /3/2 = - 1/2 24 - (3/4 x12) x 2/3 = 18
Basic variables X1 X2 S1 S2
(BV)
35 X2 0 1 2/3 -1/3 8
12/3/2 = 8
40 X1 1 0 -1/2 1/2 18 24x4/3=32
Zj 40 35 10/3 25/3 1000
Cj - Zj 0 0
-10/3 -25/3
The values 0 and 1 under X1 suggest that a unit of X1 added to the current mix will call for replacing one
unit of the same product in the solution with 0 change needed in the other product.
Similarly for X2 adding one product of X2 will have no change in X1
For S1 2/3 for X2 and -1/2 for X1 implies that, releasing (removing) one kg of wood would mean losing
2/3 units of X2 and gaining ½ units of X1
Loss of 2/3 units of X2 and gain of ½ units of X1 would result in net loss of (35 x 2/3) – (40 x ½) = - 10/3
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)
35 X2 0 1 2/3 -1/3 8
40 X1 1 0 -1/2 1/2 18
Cj - Zj 0 0
-10/3 -25/3
For S2 the values - 1/3 for X2 and 1/2 for X1 indicate that, releasing (removing) one hour of labour would
mean losing ½ units of X1 and gaining 1/3 hours X2
reduction of ½ hours from X1 would release 4 x ½ = 2 hours of labour while adding 1/3 hrs for X2 that
would consume 3 x 1/3 = 1 hour of labour