Docsity

Operations Research - LINEAR PROGRAMMING – SIMPLEX METHOD - Excercise - Business Management, Study notes of Business Administration

Toggle sidebar
bg1
LINEAR PROGRAMMING – SIMPLEX METHOD
1 Introduction
The Linear Programming with two variables can be solved graphically. The graphical method of
solving linear programming problem is of limited application in the business problems as the
number of variables is substantially large. If the linear programming problem has larger number of
variables, the suitable method for solving is Simplex Method. The simplex method is an iterative
process, through which it reaches ultimately to the minimum or maximum value of the objective
function.
The simplex method also helps the decision maker/manager to identify the following:
Redundant Constraints
Multiple
So
l
ut
i
ons
Unbounded
So
l
ut
i
on
Infeasible
Probl
e
m
3.2 Basics of Simplex Method
The basic of simplex method is explained with the following linear programming
problem.
Example 3.1:
Maximize
60x1 + 70x2
Subject to:
2x1 + x2 ≤ 300
3x1 + 4x2 ≤ 509
4x1 + 7x2 ≤ 812
x1, x2 ≥ 0
Solution
First we introduce the
v
a
r
ia
bl
e
s
s3, s4, s5 ≥
0
So that the constraints becomes equations, thus
2x1 + x2 + s3= 300
3x1 + 4x2+ s4= 509
4x1 + 7x2+ s5
=
812
Corresponding to the three constraints, the variables s3, s4, s5 are called as slack variables. Now,
the system of equation has three equations and five variables.
There are two types of solutions they are basic and basic feasible, which are discussed as
follows:
Basic Solution
We may equate any two variables to zero in the above system of equations, and then the system will
have t
hr
ee
v
a
r
ia
bl
e
s.
Thus, if this system of three equations with three variables is solvable such a
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Operations Research - LINEAR PROGRAMMING – SIMPLEX METHOD - Excercise - Business Management and more Study notes Business Administration in PDF only on Docsity!

LINEAR PROGRAMMING – SIMPLEX METHOD

1 Introduction The Linear Programming with two variables can be solved graphically. The graphical method of solving linear programming problem is of limited application in the business problems as the number of variables is substantially large. If the linear programming problem has larger number of variables, the suitable method for solving is Simplex Method. The simplex method is an iterative process, through which it reaches ultimately to the minimum or maximum value of the objective function. The simplex method also helps the decision maker/manager to identify the following:  Redundant Constraints  Multiple Solutions  Unbounded Solution  Infeasible Problem 3. 2 Basics of Simplex Method The basic of simplex method is explained with the following linear programming problem. Example 3.1: Maximize 60 x 1 + 70 x 2 Subject to: 2 x 1 + x 2 ≤ 300 3 x 1 + 4 x 2 ≤ 509 4 x 1 + 7 x 2 ≤ 812 x 1 , x 2 ≥ 0 Solution First we introduce the variables s 3 , s 4 , s 5 ≥ 0 So that the constraints becomes equations, thus 2 x 1 + x 2 + s 3 = 300 3 x 1 + 4 x 2 + s 4 = 509 4 x 1 + 7 x 2 + s 5 = 812 Corresponding to the three constraints, the variables s3, s4, s 5 are called as slack variables. Now, the system of equation has three equations and five variables. There are two types of solutions they are basic and basic feasible, which are discussed as follows: Basic Solution We may equate any two variables to zero in the above system of equations, and then the system will have three variables. Thus, if this system of three equations with three variables is solvable such a

solution is called as basic solution.

The profit Z=6 0 x 1 + 70 x 2 i.e. Maximize 60 x 1 + 70 x 2 The standard form can be summarized in a compact table form as In this problem the slack variables s 3 , s 4 , and s 5 provide a basic feasible solution from which the simplex computation starts. That is s 3 ==300, s 4 = 509 and s 5 =812. This result follows because of the special structure of the columns associated with the slacks. If z represents profit then z=0 corresponding to this basic feasible solution. We represent by CB the coefficient of the basic variables in the objective function and by XB the numerical values of the basic variable. So that the numerical values of the basic variables are: XB 1 =300, XB 2 =509, XB 3 =812. The profit z=60x 1 +7 0 x 2 can also expressed as z- 60 x 1 - 70 x 2 =0. The simplex computation starts with the first compact standard simplex table as given below: CB 0 0 0 Basic Variables s 3 s 4 s 5 z Cj XB 300 509 812

x 1 x 2 s 3 s 4 s 5 2 1 1 0 0 3 4 0 1 0 4 7 0 0 1

  • 60 - 70 0 0 0 Table 1 In the objective function the coefficients of the variables are CB 1 =CB 2 =CB 3 =0. The topmost row of the Table 1 denotes the coefficient of the variables x 1 , x 2 , s 3 , s 4 , s 5 of the objective function respectively. The column under x 1 indicates the coefficient of x 1 in the three equations respectively. Similarly the remaining column also formed. On seeing the equation z=6 0 x 1 +7 0 x 2 we may observe that if either x 1 or x 2 , which is currently non-basic is included as a basic variable so that the profit will increase. Since the coefficient of x 2 is higher we choose x 2 to be included as a basic variable in the next iteration. An equivalent criterion of choosing a new basic variable can be obtained the last row of Table 1 i.e. corresponding to z. Since the entry corresponding to x 2 is smaller between the two negative values, x 2 will be included as a basic variable in the next iteration. However with three constraints there can be only three basic variables. Thus, by bringing x 2 a basic variable one of the existing basic variables becomes non-basic. The question here is How to identify this variable? The following statements give the solution to this question. Consider the first equation i.e. 2 x 1 + x 2 + s 3 = 300

From this equation 2 x 1 +s 3 =300-x 2 But x 1 =0. Hence, in order that s 3 ≥ 0 300 - x 2 ≥ 0 i.e. x 2 ≤ 300 Similarly consider the second equation i.e. 3 x 1 + 4x 2 + s 4 = 509 From this equation 3 x 1 +s 4 =509- 4 x 2 But, x 1 =0. Hence, in order that s 4 ≥ 0 509 - 4 x 2 ≥ 0 i.e. x 2 ≤509/ Similarly consider the third equation i.e. 4 x 1 + 7 x 2 + s 5 = 812 From this equation 4 x 1 +s 5 =812- 7 x 2 But x 1 =0. Hence, in order that s 5 ≥ 0 812 - 7 x 2 ≥ 0 i.e. x 2 ≤812/ Therefore the three equation lead to x 2 ≤300, x 2 ≤509/9, x 2 ≤812/ Thus x 2 =Min (x 2 ≤300, x 2 ≤509/9, x 2 ≤812/7) it means x 2 =Min (x 2 ≤300/1, x 2 ≤509/9, x 2 ≤812/7)= Therefore x 2 = If x 2 =116, you may be note from the third equation 7 x 2 +s 5 = i.e. s 5 = Thus, the variable s 5 becomes non-basic in the next iteration. So that the revised values of the other two basic variables are S 3 =300-x 2 = S 4 =509-4*116= Refer to Table 1, we obtain the elements of the next Table i.e. Table 2 using the following rules:

  1. We allocate the quantities which are negative in the z-row. Suppose if all the quantities are positive, the inclusion of any non-basic variable will not increase the value of the objective function. Hence the present solution maximizes the objective function. If there are more than one negative values we choose the variable as a basic variable corresponding to which the z value is least as this is likely to increase the more profit.
  1. We compute the minimum of the ratio 184 , 45 , 116 644 , 63 , 203 Min 10 5 4 = Min 5 = 63 7 7 7 This minimum occurs corresponding to s 4 , it becomes a non basic variable in next iteration.
  2. Like Table 2, the Table 3 is computed sing the rules (i), (ii), (iii) as described above. CB 0 60 70 Basic Variables s 3 x 1 x 2 zj-cj Cj XB 94 63 80

x 1 x 2 s 3 s 4 s 5 0 0 1 - 2 1 1 0 0 7/5 - 4/ 0 1 0 - 4/5 3/ 0 0 0 28 - 6 Table 3

  1. z 5 – c 5 < 0 should be made a basic variable in the next iteration.
  2. Now compute the minimum ratios 94 , 80 Min 1 3 = 94 5 Note: Since y 25 = - 4/5 < 0, the corresponding ratio is not taken for comparison. The variable s 3 becomes non basic in the next iteration.
  3. From the Table 3, Table 4 is calculated following the usual steps. CB 0 60 70 Basic Variables s 5 x 1 x 2 zj-cj Cj XB 94 691/ 118/

x 1 x 2 s 3 s 4 s 5 0 0 1 - 2 1 1 0 4/5 - 1/5 0 0 1 - 3 /5 2/5 0 0 0 6 16 0

Note that zj – cj ≥ 0 for all j, so that the objective function can’t be improved any further. Thus, the objective function is maximized for x 1 = 691/5 and x 2 =118/5 and The maximum value of the objective function is 9 944. 3. 4 Simplex Method with More Than Two Variables In previous section we discussed the simplex method of linear programming problem with two decision variables. The simplex method computational procedure can be readily extended to linear programming problems with more than two variables. This is illustrated in this section with the help of the product mix problem given in the following Example 3 .2. Example 3. 2 An organization has three machine shops viz. A, B and C and it produces three product viz. X, Y and Z using these three machine shops. Each product involves the operation of the machine shops. The time available at the machine shops A, B and C are 100, 72 and 80 hours respectively. The profit per unit of product X, Y and Z is $22, $6 and $2 respectively. The following table shows the time required for each operation for unit amount of each product. Determine an appropriate product mix so as to maximize the profit. Shops Machine A B C Products Profit/unit X $ Y $ Z $ Available Hours 100 72 80 Solution First we have to develop linear programming formulation. The linear programming formulation of the product mix problem is: Maximize 22 x 1 + 6 x 2 + 2 x 3 Subject to: 10 x 1 + 2 x 2 + x 3 ≤ 100 7 x 1 + 3 x 2 + 2 x 3 ≤ 72 2 x 1 + 4 x 2 + x 3 ≤ 80 x 1 , x 2 , x 3 ≥ 0

By using this way we get the elements of the second and the third row in Table 2.

Similarly, the calculation of numerical values of basic variables in Table 2 is done. CB 22 0 0 Basic Variable x 1 s 5 s 6 Cj XB 10 2 60

x 1 1 0 0

x 2 2/ 16/ 18/

x 3 1/ 13/ 4/

s 4 1/

  • 7/
  • 1/

s 5 0 1 0

s 6 0 0 1 zj-cj 0 - 8/5 1/5 12/5 0 0 Table 2

  1. z 2 - c 2 = - 8/5. So x 2 becomes a basic variable in the next iteration.
  2. Calculate the minimum of the ratios 10, 7 , 60 Min 2 16 18 = Min 50, 70 , 300 = 70 10 10 5 16 18 16 Hence the variable s 5 will be a non basic variable in the next iteration.
  3. From Table 2, the Table 3 is calculated using the rules (i), (ii) and (iii) mentioned above. CB 22 6 0 Basic Variable x 1 x 2 s 6 Cj XB 73/ 30/ 177/

x 1 1 0 0

x 2 0 1 0

x 3

  • 1/ 13/
  • 17/

s 4 3/

  • 7/ 11/

s 5

  • 1/ 5/
  • 9/

s 6 0 0 1 zj-cj 0 0 24/16 24/16 1 0 Table 3 Note that all zj – cj ≥0, so that the solution is x 1 = 73/8, x 2 = 30/8 and s 6 = 177/4 maximizes the objective function. The Maximum Profit is: 2273/8 + 630/8 = 1606 / 8 + 180/ = 1786/8 = $223. 25 3. 5 Tow Phase and M-Method In the last two section we discussed the simplex method was applied to linear programming problems with less than or equal to (≤) type constraints. Thus, there we could introduce slack variables which provide an initial basic feasible solution of the problem.

Generally, the linear programming problem can also be characterized by the presence of both ‘less than or equal to’ type or ‘greater than or equal to (≥)’ type constraints. In such case it is not always possible to obtain an initial basic feasible solution using slack variables. The greater than or equal to type of linear programming problem can be solved by using the following methods:

  1. Two Phase Method
  2. M Method In this section we will discuss these two methods.
    1. 1 Two Phase Method We discuss the Two Phase Method with the help of the following Example 3 .3. Example 3. 3 Solution Minimize
  3. 5 x 1 + 14. 5 x 2 Subject to: x 1 + x 2 ≥ 2000
  4. 4 x 1 + 0. 75 x 2 ≥ 1000
  5. 075 x 1 + 0. 1 x 2 ≤ 200 x 1 , x 2 ≥ 0 Here the objective function is to be minimized; the values of x 1 and x 2 which minimized this objective function are also the values which maximize the revised objective function i.e. Maximize
    1. 5 x 1 – 14. 5 x 2 We can multiply the second and the third constraints by 100 and 1000 respectively for the convenience of calculation. Thus, the revised linear programming problem is: Maximize
    1. 5 x 1 – 14. 5 x 2 Subject to: x 1 + x 2 ≥ 2000 40 x 1 + 75 x 2 ≥ 100000 75 x 1 + 100 x 2 ≤ 200000 x 1 , x 2 ≥ 0 Now we convert the two inequalities by introducing surplus variables s 3 and s 4 respectively. The third constraint is changed into an equation by introducing a slack variable s 5. Thus, the linear programming problem becomes as

CB

Basic variables a 6 x 2 s 5 Cj XB 2000/ 4000/ 200000/

x 1 7/ 8/ 65/

x 2 0 1 0

s 3

  • 1 0 0

s 4 1/

  • 1/ 4/

s 5 0 0 1

a 6 1 0 0 zj-cj - 1/15 0 1 - 1 / 75 0 0 Table 2 Then x 1 becomes a basic variable and a 6 becomes a non basic variable in the next iteration. CB 0 0 0 Basic variables x 1 x 2 s 5 Cj XB 10000/ 4000/ 250000/

x 1 1 0 0

x 2 0 1 0

s 3

  • 15/ 8/ 325/

s 4 1/

  • 1/ 16/

s 5 0 0 1 zj-cj 0 0 0 0 0 Table 3 The calculation of Phase I end at this stage. Note that, both the artificial variable have been removed and also found a basic feasible solution of the problem. The basic feasible solution is: x^1 =^ 10000/7,^ x^2 =^4000 /2,^ s^5 =^ 250000/^7. Phase II The initial basic feasible solution obtained at the end of the Phase I calculation is used as the initial basic feasible solution of the problem. In this Phase II calculation the original objective function is introduced and the usual simplex procedure is applied to solve the linear programming problem.

CB

Basic variables x 1 x 2 s 5 Cj XB 10000/ 4000/ 250000/

x 1 1 0 0

x 2 0 1 0

s 3

  • 15/ 8/ 325/

s 4 1/

  • 1/ 5/

s 5 0 0 1 zj-cj 0 0 143/14 2/35 0 Table 1 In this Table 1 all zj-cj ≥ 0 the current solution maximizes the revised objective function. Thus, the solution of the problem is: x 1 = 10000/7 = 1428 and x 2 = 4000/7 = 571. 4 and The Minimum Value of the objective function is: 26135. 3 3. 5. 2 M Method In this method also we need artificial variables for determining the initial basic feasible solution. The M method is explained in the next Example 3. 4 with the help of the previous Example 3 .3. Example 3. 4 Maximize

    1. 5 x 1 – 14. 5 x 2 Subject to:

The coefficient of a 6 and a 7 are large negative number in the objective function. Since the objective function is to be maximized in the optimum solution, the artificial variables will be zero. Therefore, the basic variable of the optimum solution are variable other than the artificial variables and hence is a basic feasible solution of the original problem. The successive calculation of simplex tables is as follows: Table 1 Since M is a large positive number, the coefficient of M in the zj – cj row would decide the entering basic variable. As - 76M < - 41 M, x 2 becomes a basic variable in the next iteration replacing a 7. The artificial variable a 7 can’t be re-entering as basic variable. CB

  • M
    1. 5 0 Basic variables a 6 x 2 s 5 Cj XB 2000/ 4000/ 200000/

x 1 7/ 8/ 65/

x 2 0 1 0

s 3

  • 1 0 0

s 4 1/

  • 1/ 4/

s 5 0 0 1

- M

a 6 1 0 0 zj-cj - 7/15M +143/

0 M - M/

Table 2 Now x 1 becomes a basic variable replacing a 6. Like a 7 the variable a 6 also artificial variable so it can’t be re-entering in the table.

CB

- M

- M

Basic variables a 6 a 7 s 5 Cj XB 2000 100000 200000

x 1 1 40 75

x 2 1 75 100

s 3

  • 1 0 0

s 4 0

  • 1 0

s 5 0 0 1

- M

a 6 1 0 0

- M

a 7 0 1 0 zj-cj - 41M +12. 5

- 76M

M M 0 0 0

CB

Basic variables x 1 x 2 s 5 Cj XB 10000/ 4000/ 250000/

x 1 1 0 0

x 2 0 1 0

s 3

  • 15/ 8/ 325/

s 4 1/

  • 1/ 16/

s 5 0 0 1 zj-cj 0 0 143/14 2/35 0 Table 3 Hence The optimum solution of the problem is x 1 = 1000 0/7, x 2 = 4000/7 and The Minimum Value of the Objective Function is: 26135. 3 3. 6 Multiple Solutions The simplex method also helps in identifying multiple solutions of a linear programming problem. This is explained with the help of the following Example 3 .5. Example 3. 5 Consider the following linear programming problem. Maximize 2000 x 1 + 3000 x 2 Subject to: 6 x 1 + 9 x 2 ≤ 100 2 x 1 + x 2 ≤ 20 x 1 , x 2 ≥ 0. Solution Introduce the slack variables s 3 and s 4 , so that the inequalities can be converted in to equation as follows: 6 x 1 + 9 x 2 + s 3 = 100 2 x 1 + x 2 + s 4 = 20 x 1 , x 2 , s 3 , s 4 ≥ 0. The computation of simple procedure and tables are as follows: