


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















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
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:
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
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/
s 5 0 1 0
s 6 0 0 1 zj-cj 0 - 8/5 1/5 12/5 0 0 Table 2
x 1 1 0 0
x 2 0 1 0
x 3
s 4 3/
s 5
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:
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
s 4 1/
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
s 4 1/
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.
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
s 4 1/
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
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
x 1 7/ 8/ 65/
x 2 0 1 0
s 3
s 4 1/
s 5 0 0 1
a 6 1 0 0 zj-cj - 7/15M +143/
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.
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
s 4 0
s 5 0 0 1
a 6 1 0 0
a 7 0 1 0 zj-cj - 41M +12. 5
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
s 4 1/
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: