Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 31

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.

6. By using simplex technique, we can consider a minimum number of feasible


solutions to obtain an optimal one.
Simplex Method
 Basic Solution – If there are ‘m’ equality constraints and (m+n) number of variables
(m < n), a start for the optimal solution is made by putting ‘n’ unknown equal to zero
and solving for ‘m’ equations in remaining ‘m’ unknowns, provided solution exists
and is unique.

 ‘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

1. Formulate the problem in mathematical model with objective function, constraints


and non-negativity variables
2. Set up the initial simplex table with slack or surplus variables
3. Determine the decision variables which are to be brought into the solution
4. Determine which variables to replace
5. Calculate new row values for entering variables
6. Revise remaining rows

Repeat step 3 to 6 till optimal solution is obtained.


Example 1
A manufacturer of wooden articles produces tables and chair which require two types of
inputs, i.e. wood and labor,
Each table requires 2 units of wood and 4 unit labor
Each chair requires 3 units of wood and 3 units of labor
Profit from each table is Rs 40 and profit from each chair is Rs 35
Total available resources for manufacturing tables and chair are 60 units of wood and 96
units of labor.
The manufacturer wants to maximize his profit by distributing his resources for each table
and chair.
Formulate the problem mathematically and solve using simplex method
Example – 1, Interpretation of the vales in the problem and solution
Let the tables be X1 and chairs be X2

maximize profit , Z = 40X1 + 35X2

Rs. 40 profit per table Rs. 35 profit per chair

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

Z = 40X1+35X2+0S1+0S2 2X1 + 3X2 + S1 = 60

40 35 4X1 + 3X 0 2 + S02 = 96
Hrs of labour @ 0 Rs. per hour

kgs of wood @ 0 Rs per kg

 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

Cbi Cj Solution Ratio


Basic variables

Zj
Cj - Zj

Note: Cj = Coefficient of objective function


Cbi = Coefficient of basic variables
ZJ = (sum of cost of basic variables multiplied by coefficients of constraint variables)

For all maximization problems Cj – Zj should be  0

Cj - Zj = Net profit (cost should be negative)


Initial Simplex tableau
2X1 + 3X2 + S1 = 60 ZJ =

Objective function 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

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

0 S2 44 3 0 1 100 96/4 =24

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

Cbi Cj 40 35 0 0 Solution Ratio

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

Old value ( - ) 2 units of wood ( - ) 2 X4 hrs of labour /4 = 0


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

Old value ( - ) 3 units of wood ( - )


3 - 2x3 /4 = 3/2 = 1.5
For the second row apply the formula ; old value – {(corresponding key column value) x (corresponding key
row value)} / key element
X1 = 2 - 2 X4/4 =0 Zj
X2 = 3 - 2x3 /4 = 3/2 X1 = (0x0)+(40x1) = 40 ; X2 = (0 x3/2)+(40x3/4) = 30
S1 = 1- 2 x 0 /4 = 1
S2 = 0 - 2x1/4 = -1/2 S1 = ( 0x1) + (40x0) = 0 ; S2 = ( 0x-1/2) + (40x1/4) = 10
solution = 60 – 2 x96/4 = 12 Solution (0x12) + (40 x24) = 960

Old value ( - )
Solution I
Cbi Cj 40 35 0 0 Solution Ratio

Basic variables X1 X2 S1 S2
(BV)

0 S1 0 3/2 1 -1/2 12 60 /2= 30

40 X1 1 3/4 0 1/4 24 96/4 =24

Zj 40 30 0 10 960

Cj - Zj
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)

0 S1 0 3/2 1 -1/2 12 60 /2= 30


40 X1 1 3/4 0 1/4 24 96/4 =24
Zj 40 30 0 10 960

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)

0 S1 0 3/2 1 -1/2 12 60 /2= 30

40 X1 1 3/4 0 1/4 24 96/4 =24

Zj 960
40 30 0 10
Cj - Zj 0 5 0 -10

For all maximization problems Cj – Zj should be  0


X1 = 24, X2 = 0, S1 = 12, S2 = 0 and the total revenue = 960
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)

0 S1 0 3/2 1 -1/2 12 60 /2= 30


40 X1 1 3/4 0 1/4 24 96/4 =24
Zj 960
40 30 0 10
Cj - Zj 0 5 0 -10
 Substitution rates or changes in S1 : 0 corresponding to X1 implies that reducing one kg
of wood has no effect on output of X1
 Since all the labour hours having been used, making available 1 kg of wood will cause no
change in the output (12 kg of wood is available unused)
 Substitution rates or changes in X2 : Addition of one unit of X2 would replace ¾ unit of
product X1
 X2 requires 3 hours of labour, implies that we give up ¾ units of X1

 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)

0 S1 0 3/2 1 -1/2 12 60 /2= 30


40 X1 1 3/4 0 1/4 24 96/4 =24
Zj 960
40 30 0 10
Cj - Zj 0 5 0 -10

 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.

 Positive rates indicate decrease and negative / release of material or labour


Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)

0 S1 0 3/2 1 -1/2 12 60 /2= 30


40 X1 1 3/4 0 1/4 24 96/4 =24
Zj 960
40 30 0 10
Cj - Zj 0 5 0 -10
 changes in Cj - Zj
 Zj represents the loss of profit that results from the addition of one unit of variable
heading a particular column.
 Zj = 40, 30, 0 and 10
 Addition of one unit of X1 causes reduction of one unit of the same product and a 0
change in S1
 Reduction of one unit of X1 would result in a loss of Rs. 40
 Hence for X1, the value equals 40.
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)

0 S1 0 3/2 1 -1/2 12 60 /2= 30


40 X1 1 3/4 0 1/4 24 96/4 =24
Zj 960
40 30 0 10
Cj - Zj 0 5 0 -10
 changes in Cj - Zj
 Addition of one unit of X2 results in two changes.
a. S1 is reduced by 3/2 units and
b. X1 is reduced by ¾ units
 Since the profit per unit of S1 is nil, the changes in S1 shall cause no changes to the profit
 Since profit of X1 Rs.40 reduction of 3/4 units would result in a loss of 40 x ¾ = 30
 For S1 addition of one unit of S1 causes a substitution of 1 unit of the same and none of
X1, therefore the loss of profit is zero
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)

0 S1 0 3/2 1 -1/2 12 60 /2= 30


40 X1 1 3/4 0 1/4 24 96/4 =24
Zj 960
40 30 0 10
Cj - Zj 0 5 0 -10
changes in Cj - Zj
Adding one unit of S2, produces two changes
a.Freeing of 1/2 units of wood (S1) and
b.Consuming ¼ hrs labour of X1, that would cause a reduction of 40 x ¼ = 10 (loss of Rs. 10)
 For X2, unit profit is Rs. 35, whereas loss of profit is Rs.30
 Net change in the profit resulting from the addition of on unit of X2, is 35-30 Rs.5
 For S1, net change is zero while for S2, adding a unit in the solution would involve a net loss
of Rs 10
 A positive value in (Cj –Zj) indicates that the objective function value may be increased.
Cbi Cj 40 35 0 0 Solution Ratio
Basic variables X1 X2 S1 S2
(BV)

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

S2 1/4 – (¾ x - 1/2) /3/2 = 1/2


X2 3/4 – (3/4x3/2) / 3/2= 0
Cbi Cj 40 35 0 0 Solution Ratio

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

Zj 40 35 10/3 25/3 1000

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

 The changes shall cause a net reduction of Rs. 25/3 in profit


 A loss of 40 x ½ = 20 and gain of 35 x1/3 = 35/3 (20 – 35/3 = 25/3)
Example – 1, Interpretation of the vales in the problem and solution
Let the tables be X1 and chairs be X2

maximize profit , Z = 40X1 + 35X2 Solution


X1 = 18, X2 = 8, Z =1,000
2X1 + 3X2  60
Z= 40(18) + 35(8) = 720 + 280 = 1,000
4X1 + 3X2  96
2(18)+3(8) = 36 + 24 = 60
X1, X2 ≥ 0 4(18) + 3(8) = 72 + 24 = 96

You might also like