Lesson - 05
Lesson - 05
5
LINEAR PROGRAMMING: SIMPLEX METHOD
CONTENTS
5.0 Aims and Objectives
5.1 Introduction
5.2 Additional Variables used in Solving LPP
5.3 Maximization Case
5.4 Solving LP Problems Using Computer with TORA
5.5 Minimization LP Problems
5.6 Big M Method
5.7 Degeneracy in LP Problems
5.8 Unbounded Solutions in LPP
5.9 Multiple Solutions in LPP
5.10 Duality in LP Problems
5.11 Sensitivity Analysis
5.12 Let us Sum Up
5.13 Lesson-end Activities
5.14 Keywords
5.15 Questions for Discussion
5.16 Terminal Questions
5.17 Model Answers to Questions for Discussion
5.18 Suggested Readings
5.1 INTRODUCTION
In practice, most problems contain more than two variables and are consequently too
large to be tackled by conventional means. Therefore, an algebraic technique is used to
solve large problems using Simplex Method. This method is carried out through iterative
process systematically step by step, and finally the maximum or minimum values of the
objective function are attained.
Quantitative Techniques The basic concepts of simplex method are explained using the Example 1.8 of the
for Management
packaging product mix problem illustrated in the previous chapter. The simplex method
solves the linear programming problem in iterations to improve the value of the objective
function. The simplex approach not only yields the optimal solution but also other valuable
information to perform economic and 'what if' analysis.
0 S3 120 2 3 1 0 60
S4 60 2 1 0 1 30
– Zj 0 –6 –4 0 0
If the objective of the given problem is a maximization one, enter the co-efficient of the
objective function Zj with opposite sign as shown in Table 5.3. Take the most negative
coefficient of the objective function and that is the key column Kc. In this case, it is -6.
Find the ratio between the solution value and the key column coefficient and enter it in
the minimum ratio column. The intersecting coefficients of the key column and key row
are called the pivotal element i.e. 2. The variable corresponding to the key column is the
entering element of the next iteration table and the corresponding variable of the key
row is the leaving element of the next iteration table. In other words, x1 replaces S4 in the
next iteration table. Table 5.3 indicates the key column, key row and the pivotal element.
Table 5.3
0 S3 120 2 3 1 0 60
Kr S4 60 2 1 0 1 30
-Zj 0 -6 -4 0 0
145
Quantitative Techniques In the next iteration, enter the basic variables by eliminating the leaving variable (i.e., key
for Management
row) and introducing the entering variable (i.e., key column). Make the pivotal element
as 1 and enter the values of other elements in that row accordingly. In this case, convert
the pivotal element value 2 as 1 in the next interation table. For this, divide the pivotal
element by 2. Similarly divide the other elements in that row by 2. The equation is S4 /2.
This row is called as Pivotal Equation Row Pe. The other co-efficients of the key column
in iteration Table 5.4 must be made as zero in the iteration Table 5.5. For this, a solver, Q,
is formed for easy calculation. Change the sign of the key column coefficient, multiply
with pivotal equation element and add with the corresponding variable to get the equation,
Solver, Q = SB + (–Kc ´ Pe)
The equations for the variables in the iteration number 1 of table 8 are,
For S3 Q = SB + (– Kc ´ Pe)
= S3 + (–2x Pe)
= S3 – 2Pe …………………………(i)
For – Z, Q = SB + (– Kc ´ Pe)
= – Z + ((– 6) ´ Pe)
= – Z + 6Pe …………………………(ii)
Using the equations (i) and (ii) the values of S3 and –Z for the values of Table 1 are
found as shown in Table 5.4
Table 5.4: S3 and –Z Values Calculated
0 S3 120 2 3 1 0 60
Kr S4 60 2 1 0 1 30
– Zj 0 –6 –4 0 0
1
S3 60 0 2 1 –1 30 S3 – 2Pe
Kr
Pe x1 30 1 ½ 0 ½ 60 S4 / 2
– Zj 100 0 –1 0 3 – Z + 6Pe
Using these equations, enter the values of basic variables SB and objective function Z. If
all the values in the objective function are non-negative, the solution is optimal. Here, we
have one negative value – 1. Repeat the steps to find the key row and pivotal equation
values for the iteration 2 and check for optimality.
In the iteration 2 number of Table 5.5, all the values of Zj are non-negative, Zj ³ 0, hence
optimality is reached. The corresponding values of x1 and x2 for the final iteration table
gives the optimal values of the decision variables i.e., x1 = 15, x2 = 30. Substituting these
values in the objectives function equation, we get
Zmax = 6x1 + 4x2
= 6(15) + 4(30)
= 90 + 120
0 S3 120 2 3 1 0 60
S4 60 2 1 0 1 30
Kr – Zj 0 –6 –4 0 0
1 S3 60 0 2 1 –1 30 S3 – 2pe
Kr x1 30 1 ½ 0 ½ 60 S4/2
Pe – Zj 100 0 –1 0 3 – Z + 6Pe
2 Pe X2 30 0 1 ½ – S3/2
x1 15 1 0 – 1/2 S3 – Pe/2
– Zj 210 0 0 1/4 ¾ – Z + Pe
½ 5/2
Figure 5.1: Solving LPP using Computer with TORA (Input Screen )
Click Solve Menu, and select Solve Problem → Algebraic → Iterations → All-Slack
Starting Solution. Now, click Go To Output screen, then the first iteration table will be
displayed. To select the entering variable, click a non-basic variable (if correct, the column
turns green). Similarly, select the leaving variable (if correct, the row turns red),
Figure 5.2.
In the final table, all the values of –Zj are ³ 0, hence optimality is reached. The optimum
solution is,
(a) The value of x1 = 800 units
0 Z 0 3 1 0 0 M M
Kr a1 4 4 1 0 0 1 0 0.75
a2 7 5 3 –1 0 0 1 1.6
S2 6 3 2 0 1 0 0 2 Z + (– M a 1 )
– M a2
Z1 – 11M 9M + 3 – 4M + 1 M 0 0 0
1 Pe X1 1 1 ¼ 0 0 4 a 1 /4
Kr a2 2 0 7/4 –1 0 1.14 a 2 – 5P e
S2 3 0 5/4 0 1 2.4 S 2 – 3P e
Z1 – 2M -3 0 7M /4 M 0 Z 1 + (9M –
+1/4 3) P e
2 x1 5/7 1 0 – 0 X 1 – P e /4
1/7
x2 8/7 0 1 – 0 a2
7/4
4/7
Z1 – 23/7 0 0 1/7 0
1. What are the different types of additional variables used in simplex method?
2. How will you introduce/auxiliary variables in solving LPT problem?
152 Contd....
Notes: (a) Write your answer in the space given below. Linear Programming :
Simplex Method
(b) Please go through the lesson sub-head thoroughly you will get your
answers in it.
(c) This Chek Your Progress will help you to understand the lesson better.
Try to write answers for them, but do not submit your answers to the
university for assessment. These are for your practice only.
_____________________________________________________________________
____________________________________________________________________________________________________________________
_____________________________________________________________________
__________________________________________________________________
__________________________________________________________________
Figure 5.5: LPP Solved Using Computer with TORA (Output Screen)
In the optimal iteration table if (Pj - Zj) value of one or more non-basic variable is equal
to 0, then the problem is said to have multiple or alternative solutions.
Table 5.10: Illustrating Multiple Solutions
Pj 4 1 0 0 0
Procedure
Step 1: Convert the objective function if maximization in the primal into minimization in
the dual and vice versa. Write the equation considering the transpose of RHS of
the constraints
Step 2: The number of variables in the primal will be the number of constraints in the
dual and vice versa.
Step 3: The co-efficient in the objective function of the primal will be the RHS constraints
in the dual and vice versa.
Step 4: In forming the constraints for the dual, consider the transpose of the body matrix
of the primal problems.
Note: Constraint inequality signs are reversed
Example 4: Construct the dual to the primal problem
Maximize Z = 6x1 + 10x2
Subject to constraints,
2x1 + 8x2 £ 60 .......................(i)
3x1 + 5x2 £ 45 .......................(ii)
5x1 - 6x2 £ 10 .......................(iii)
x2 £ 40 .......................(iv)
where x1, x2 ³ 0
Solution:
Minimize W = 60y1 + 45y2 + 10y3 + 40y4 155
Quantitative Techniques Subject to constraints,
for Management
2y1+3y2+5y3+ 0y4 ³ 6
8y1+ 5y2 + 6y3+ y4 ³ 10
where y1, y2, y3, y4 ³ 0
Example 5: Construct a dual for the following primal
Minimize Z = 6x1 – 4x2+ 4x3
Subject to constraints,
6x1 – 10x2 + 4x3 ³ 14 ..................(i)
6x1+ 2x2 + 6x3 ³ 10 ..................(ii)
7x1 – 2x2 + 5x3 £ 20 ..................(iii)
x1 – 4x2 + 5x3 ³ 3 ..................(iv)
4x1+ 7x2 – 4x3 ³ 20 ..................(v)
where x1, x2, x3 ³ 0
Solution: Convert 'less than' constraints into 'greater than' type by multiplying by
(–1) on both sides (i.e., for e.g. iii).
6x1 – 10x2 + 4x3 ³ 14
6x1+ 2x2 + 6x3 ³ 10
– 7x1 + 2x2 – 5x3 ³ 20
x1 – 4x2 + 5x3 ³ 3
4x1 + 7x2 – 4x3 ³ 20
The dual for the primal problem is,
Maximize W = 14y1+10y2+20y3+3y4+20y5
Subject to constraints,
6y1+ 6y2 – 7y3+ y4 + 4y5 £ 6
10y1+ 2y2 + 2y3 – 4y4+7y5 £ – 4
4y1+ 6y2 – 5y3+ 5y4 – 4y5 £ 4
where y1, y2, y3, y4 and y5 ³ 0
Referring to the current objective co-efficient, if the values of the objective function co-
efficient decrease by 16 (Min. obj. co-efficient) and increase by 20 (Max. obj. co-
efficient) there will not be any change in the optimal values of x 1 = 12.50 and
x2 = 25.00. But there will be a change in the optimal solution, i.e. Zmax. 157
Quantitative Techniques Note: This applies only when there is a change in any one of the co-efficients of variables
for Management
i.e., x1 or x2. Simultaneous changes in values of the co-efficients need to apply for 100
Percent Rule for objective function co-efficients.
For x1, Allowable decrease = Current value - Min. Obj. co-efficient
= 40 – 24
= Rs. 16 ------------------ (i)
Allowable increase = Max. Obj. co-efficient – Current value
= 60 – 40
= Rs. 20.00 ---------------- (ii)
Similarly, For x2, Allowable decrease = Rs. 10.00 ---------------- (iii)
Allowable increase = Rs. 20.00 --------------- (iv)
For example, if co-efficient of x 1 is increased to 48, then the increase is
48 – 40 = Rs. 8.00. From (ii), the allowable increase is 20, thus the increase in x1 co-
efficient is 8/20 = 0.40 or 40%.
Similarly,
If co-efficient of x2 is decreased to 27, then the decrease is 30 - 27 = Rs. 3.00.
From (iii), the allowable decrease is 10, thus the decrease in x2 co-efficient is 3/10 = 0.30
or 30%.
Therefore, the percentage of increase in x1 and the percentage of decrease in x2 is 40
and 30 respectively.
i.e. 40% + 30% = 70%
For all the objective function co-efficients that are changed, sum the percentage of the
allowable increase and allowable decrease. If the sum of the percentages is less than or
equal to 100%, the optimal solution does not change, i.e., x1 and x2 values will not change.
But Zmax will change, i.e.,
= 48(12.50) + 27(25)
= Rs. 1275.00
If the sum of the percentages of increase and decrease is greater than 100%, a different
optimal solution exists. A revised problem must be solved in order to determine the new
optimal values.
Change in the right-hand side constraints values and effect on optimal solution
Suppose an additional 40 kgs of material 3 is available, the right-hand side constraint
increases from 150 to 190 kgs.
Now, if the problem is solved, we get the optimal values as
x1 = 23.61, x2 = 16.11 and Zmax = 1427.78
From this, we can infer that an additional resources of 40 kgs increases the profit by
= 1427.78 – 1250 = Rs. 177.78
Therefore, for one kg or one unit increase, the profit will increase by
= 177.78 / 40
= Rs. 4.44
Dual price is the improvement in the value of the optimal solution per unit increase in the
158 right-hand side of a constraint. Hence, the dual price of material 3 is Rs 4.44 per kg.
Increase in material 2 will simply increase the unused material 2 rather than increase in Linear Programming :
Simplex Method
objective function. We cannot increase the RHS constraint values or the resources. If
the limit increases, there will be a change in the optimal values.
The limit values are given in Table 2.10, i.e., Min RHS and Max RHS values.
For example, for material 3, the dual price Rs. 4.44 applies only to the limit range 150 kgs
to 262.50 kgs.
Where there are simultaneous changes in more than one constraint RHS values, the 100
per cent Rule must be applied.
Reduced Cost
159
Quantitative Techniques The reduced cost indicates how much the objective function co-efficient for a particular
for Management
variable would have to improve before that decision function assumes a positive value in
the optimal solution.
The reduced cost of Rs.12.50 for decision variable x2 tells us that the profit contribution
would have to increase to at least 30 + 12.50 = 42.50 before x3 could assume a positive
value in the optimal solution.
5.14 KEYWORDS
Slack
Simplex method
Surplus
160
Variable Linear Programming :
Simplex Method
Solution
7. Why is the simplex method more advantageous than the graphical method?
8. What are the rules in selecting key column, key row and pivotal element?
Exercise Problems
1. A company manufactures three products A, B and C, which require three raw
materials I, II and III. The table given below shows the amount of raw materials
required per kg of each product. The resource availability per day and the profit
contribution for each product is also given. 161
Quantitative Techniques
Product A B C Availability (kg)
for Management
Raw Material
I 4 1 6 800
II 5 6 8 1500
III 2 4 1 1200
Profit per unit (Rs) 9 10 6
A 5 7 1 4
B 7 4 4 8
C 4 8 6 2
The profit contribution for windows A, B and C are Rs. 3.00, Rs. 4.00 and Rs. 5.00
respectively.
a. Formulate the problem.
b. Solve the problem using simplex method to maximize the profit.
c. Determine the excess time available in each processes and by how much.
3. Solve the following LPP using simplex method.
Maximize , Z = 2x1 + x2
Subject to constraints,
4x1+ 3x2 £12 .....................(i)
4x1+ x2 £ 8 .....................(ii)
4x1 – x2 £ 8 .....................(iii)
where x1, x2 ³ 0
4. Solve the following LPP:
Zmax = 20x1 + 28x2 + 23x3
Subject to constraints,
4x1+ 4x2 £ 75 ....................(i)
2x1+ x2 + 2x3 £ 100 ....................(ii)
3x1+ 2x2 + x3 £ 50 ....................(iii)
where x1, x2, x3 ³ 0
5. Three high precision products are manufactured by a Hi-Tech Machine Tools
Company. All the products must undergo process through three machining centers
A, B and C. The machine hours required per unit are,
162
Linear Programming :
Machining Center Product
Simplex Method
I II III
A 2 4 6
B 3 6 2
C 3 2 1
Raghu has to decide to undertake construction projects. Ignore the time value of
money. As a consultant, what suggestion you would like to give Raghu in deciding
about the projects to select. Determine the solution using TORA.
7. Solve the following LP Problem using Big M Method.
Minimize, Z = 2x1+ 9x2 + x3
Subject to constraints,
x1+ 4x2+ 2x3 ³ 5 .......................(i)
3x1 + x2 + 2x3 ³ 4 .......................(ii)
where x1, x2, x3 ³ 0
8. Solve the following LPP
Zmin = 4x1 + x2 163
Quantitative Techniques Subject to constraints,
for Management
3x + x2 = 3 .................(i)
4x +3x2 ³ 6 .................(ii)
x1 + 2x2 £ 3 ................(iii)
where x1, x2 ³ 0
9. Solve the following LPP. Find whether multiple or alternate solution exists
Maximize Z = 2x1+ 4x2 + 6x3
Subject to constraints,
10x1 + 4x2 + 6x3 £ 150 ..................(i)
8x1+ 6x2 + 2x3 £ 100 ..................(ii)
x1 + 2x2 + x3 £ 120 ....................(iii)
where x1, x2, x3 ³ 0
10. Write the dual of the following LP problem
Minimize Z = 6x1 – 4x2 + 4x3
Subject to constraints,
3x1 + 10x2 + 4x3 ³ 15 .......................(i)
12x1 + 2x2 + 5x3 ³ 4 ...................(ii)
5x1 – 4x2 – 2x3 £ 10 ...................(iii)
x1 – 3x2 + 6x3 ³ 3 ...................(iv)
4x1 + 9x2 – 4x3 ³ 2 ...................(v)
where x1, x2, x3 ³ 0
11. Obtain the dual of the following linear programming problem
Maximize Z , = 4x1 + 9x2 + 6x3
Subject to constraints,
10x1 + 10x2 – 2x3 £ 6 .......................(i)
-5x1 + 5x3 + 6x3 ³ 8 .......................(ii)
14x1 – 2x2 – 5x3 £ 20 ........................(iii)
5x1 – 4x2 +7x3 ³ 3 ........................(iv)
8x1+ 10x2 – 5x3 = 2 .......................(v)
where x1, x2, x3 ³ 0
164
Bersitman, D, and J Tsitsiklin, Introduction to Linear Optimization, Belmont. Mass:
Athena Publishing 1997.