19. FORMULATION OF LP PROBLEM Machine Time per unit (minutes) Machine Capacity (Minutes/Day) Product 1 Product 2 Product 3 M1 M2 M3 2 4 2 3 - 5 2 3 - 440 470 430
20. FORMULATION OF LP PROBLEM Step 1 Find the key decision to be made. The key decision is to decide the extent of product 1,2&3 to be produced as this can vary. Step 2 Assume symbols for the extent of production. Let the extent of Product 1,2&3 be X1, X2 & X3. Step 3 Express the feasible alternatives mathematically in terms of variables. Feasible alternatives are those which are physically, economically and financially possible. In this example, feasible alternatives are sets of values of x1, x2 & x3, where x1,x2 &x3 ≥ 0 since negative production has no meaning and is not feasible.
21. FORMULATION OF LP PROBLEM Step 4 Mention the object quantitatively and express it as a linear function of variables. IN the present example, objective is to maximize the profit. i.e. Maximize Z = 4x1+3x2+6x3 Step 5 Express the constraints as linear equations/inequalities in terms of variables. Here, constraints are o the machine capacities and can be mathematically expressed as 2x1 + 3x2 + 2x3 ≤ 440, 4x1 + 0x2 + 3x3 ≤ 470, 2x1 + 5x2 + 0x3 ≤ 430.
22.
23. FORMULATION OF LP PROBLEM Food Type Yield per unit Cost per unit (Rs) Protein Fats Carbohydrates 1 2 3 4 3 4 8 6 2 2 7 5 6 4 7 4 45 40 85 65 Min Requirement 800 200 700
24. FORMULATION OF LP PROBLEM Let x1, x2, x3 and x4 denote the number of units of food of type 1,2,3 & 4 respectively. Objective is to minimize the cost i.e. Minimize Z = 45x1+40x2+85x3+65x4 Constraints are on the fulfillment of the daily requirements of various constituents i.e. Proteins - 3x1 + 4x2 + 8x3 + 6x4 ≥ 800 Fats - 2x1 + 2x2 + 7x3 + 5x4 ≥ 200, Carbohydrates - 6x1 + 4x2 + 7x3 + 4x4 ≥ 700. Where x1,x2,x3,x4 each ≥ 0
25.
26. FORMULATION OF LP PROBLEM Property Properties of raw materials A B C Specific Gravity Chromium Melting Point 0.92 7% 440 ºC 0.97 13% 490 º C 1.04 16% 480 ºC
27. FORMULATION OF LP PROBLEM Let the percentage contents of raw materials A,B and C to be used for making the alloy be x1, x2 and x3 respectively. Objective is to minimize the cost i.e. Minimize Z = 90x1+280x2+40x3 Constraints are imposed by the specifications required for the alloy. i.e. 0.92x1 + 0.97x2 + 1.04x3 ≤ 0.98 7x1 + 13x2 + 16x3 ≥ 8, 440x1 + 490x2 + 480x3 ≥ 450. x1+x2+x3 = 100 as x1,x2 and x3 are the percentage contents of materials A,B and C in making the alloy. Also x1,x2,x3 each ≥ 0
28.
29. FORMULATION OF LP PROBLEM Let the number of trucks of type A,B and C to be purchased be x1, x2 and x3 respectively. Constraints are : On the number of crew: x1+2x2+2x3 ≤ 120 On the number of trucks: x1 + x2 + x3 ≤ 40 On the money to be invested: 80,000x1 + 1,00,000x2 + 1,20,000x3 ≤ 50,00000 Objective is to maximize the tonne Km/per day. Tonne Km per Day = Pay load in tonne X Km/Hour X hours / Day A = 20 x 50 x 20 = 12,000 B = 20 x 45 x 19 = 17,100 C = 17 x 45 x 22 = 16,830 Objective function is Maximize Z = 12,000 x1 + 17,100 x2 + 16830 x3 Where x1,x2,x3 ≥ 0
30. GRAPHICAL METHOD A firm manufactures two products A & B on which the profits earned per unit are Rs. 3 and Rs. 4 respectively. Each product is processed on two machines M1 and M2. Product A requires one minute of processing time on M1 and two minutes on M2. b requires 2 minute on M1 and M2. Machine M1 is available for not more than 7 hrs. 30 minutes. While machine M2 is available for 10 hrs. during any working day. Find the number of units of product A and B to be manufactured to get maximum profit.
31. FORMULATION OF LP PROBLEM Let x1 and x2 denote the number of units of products A and B to be produced per day. Objective Function Maximize Z = 3 x1+ 4 x2 Subject to X1+x2 ≤ 450 2X1 + x2 ≤ 600 Where x1,x2 ≥ 0
39. SIMPLEX METHOD A firm manufactures two products A & B on which the profits earned per unit are Rs. 3 and Rs. 4 respectively. Each product is processed on two machines M1 and M2. Product A requires one minute of processing time on M1 and two minutes on M2. b requires minute on M1 and M2. Machine M1 is available for not more than 7 hrs. 30 minutes. While machine M2 is available for 10 hrs. during any working day. Find the number of units of product A and B to be manufactured to get maximum profit.
40. SIMPLEX METHOD Maximize Z = 3x1 + 4x2 Subject to x1 + x2 ≤ 450 2x1 + x2 ≤ 600 x1,x2 ≥ 0 Step 1- Express the problem in standard form Maximize Z = 3x1 + 4x2 + 0s1 + 0s2 Subject to x1 + x2 +s1= 450 2x1 + x2 +s2 = 600 x1,x2, s1, s2 ≥ 0
88. TRANSPORTATION MODEL Optimality Test The test procedure for optimality involves examination of each vacant cell to find whether or not making an allocation in it reduces the total transportation cost. Two Methods: Stepping Stone method: Modified Distribution Method (MODI)
94. MODI METHOD Distribution Center 2 -3 5 Plant 0 1 10 4 ui vj Compute ui+vj for each empty cell 12 6 -3 -2 7 6
95. MODI METHOD Distribution Center 2 -3 5 Plant 0 1 10 4 ui vj Compute cij-(ui+vj) for each empty cell 11-12=-1 7-6=1 1+3=4 0+2=2 6-7=-1 8-6=2
96. MODI METHOD Optimality Test A –Ve value in an unoccupied cell indicates that a better solution can be obtained by allocating units to this cell. A +ve value in an unoccupied cell indicates that a poorer solution will result by allocating units to the cell. A zero value in an unoccupied cell indicates that another solution of the total value can be obtained by allocating units to this cell. Iterate for optimality by allocating to most –ve cell. Recheck for optimality. If still notoptimal allocate to most –ve cell and go on.
97. EXAMPLE Is An optimal solution for the transportation problem: 70 55 90 85 35 50 45 If not iterate it for optimal solution 50 20 55 30 35 25 6 1 9 3 11 5 2 8 10 12 4 7
99. EXAMPLE A product is produced by four factories A,B,C,D. The unit production costs in them are Rs. 2, 3, 1 and 5 respectively. Their production capacities are 50,70,30,50 units respectively. These factories supply the product to four stores, demands of which are 25,35,105,20 units respectively. Unit transportation cost in rupees from each factory to each store is given in the table below: Determine the extent of deliveries from each of the factories to each of the stores so that the total production and transportation cost is minimum. (p-267) 2 4 6 11 10 8 7 5 13 3 9 12 4 6 8 3
100. ASSIGNMENT PROBLEM ASSIGNMENT MODEL CAN BE REGARDED AS A SPECIAL CASE OF TRANSPORTATION PROBLEM. Determine the assignment that will optimize the total processing cost. (325) X Y Z A B C JOBS 25 15 22 31 20 19 35 24 17
101. ASSIGNMENT PROBLEM Make sure the matrix is balanced. If not add a dummy row or column to balance it. Subtract each row element from the lowest value in that row to arrive at the machine opportunity cost. X Y Z A B C JOBS 25 – 15 = 10 0 7 12 1 0 18 7 0
102. ASSIGNMENT PROBLEM Subtracting each column element from the lowest value in that column will give job opportunity cost. The total opportunity cost (combined job and machine opportunity cost) is given by subtraction the lowest column value in table 2 from each of the column values. X Y Z A B C JOBS 10 – 10 = 0 0 7 2 1 0 8 7 0
103. ASSIGNMENT PROBLEM Checking for optimality. Hungarian Method Draw vertical and horizontal lines to cover all zeros in the matrix. If the number of lines are equal to n then the assignment is optimal. If no subtract the smallest value of the uncovered cells from each uncovered cell and add it to all intersecting values. Again draw vertical and horizontal lines to cover all zeros. Repeat till the number of lines are equal to n.
109. EXAMPLE Five wagons are available at stations 1,2,3,4&5. These are required at five stations I, II , III , IV & V. The mileages between various between various stations are given below. How should the wagons be transferred so that the total mileage covered is minimum. Stations 10 5 9 18 11 13 9 6 12 14 3 2 4 4 5 18 9 12 17 15 11 6 14 19 10
110. EXAMPLE Unbalanced Matrix A company has one surplus truck in each of the cities A,B,C,D and E and one deficit truck in each of the cities 1,2,3,4,5&6. The distance between the cities in kilometers is shown in the matrix below. Find the assignment of trucks from cities in surplus to cities in deficit so that the total distance covered by the vehicles is minimum. (341) 1,2,3,4,5&6 12 10 15 22 18 8 10 18 25 15 16 12 11 10 3 8 5 9 6 14 10 13 13 12 8 12 11 7 13 10
111. EXAMPLE Maximization problem A company has a team of four salesmen and there are four districts where the company wants to start its business. After taking into account the capabilities of salesmen and the nature of districts, the company estimates that the profit per day in rupees for each salesman in each district is as below. Find the assignment of salesmen to various districts which will yield maximum profit. District 16 10 14 11 14 11 15 15 15 15 13 12 136 12 14 15
112.
113. DECISION THEORY Decision making under conditions of uncertainty MaxiMax Criterion Alternatives States of Nature (Product Demand) Maximum of Row High Moderate Low Nil Expand Construct Subcontract 50000 70000 30000 25000 30000 15000 -25000 -40000 -1000 -45000 -80000 -10000 50000 70000 30000
114. DECISION THEORY Decision making under conditions of uncertainty MaxiMin Criterion Alternatives States of Nature (Product Demand) Minimum of Row High Moderate Low Nil Expand Construct Subcontract 50000 70000 30000 25000 30000 15000 -25000 -40000 -1000 -45000 -80000 -10000 -45000 -80000 -10000
115. DECISION THEORY Decision making under conditions of uncertainty MiniMax Regret Criterion Alternatives States of Nature (Product Demand) Maximum of Row High Moderate Low Nil Expand Construct Subcontract 20000 0 40000 5000 0 15000 24000 39000 0 35000 70000 0 35000 70000 40000
116. DECISION THEORY Decision making under conditions of uncertainty Hurwicz Criterion (Criterion of realism or Weighted Average Criterion) α = Appropriate degree of optimism Alternatives States of Nature (Product Demand) Maximum of Row Minimum of Row P= α . Max + (1 – α ) min α = .8 High Moderate Low Nil Expand Construct Subcontract 50000 70000 30000 25000 30000 15000 -25000 -40000 -1000 -45000 -80000 -10000 50000 70000 30000 -45000 -80000 -10000 31000 40000 22000
117. DECISION THEORY Decision making under conditions of uncertainty Laplace Criterion (Criterion of rationality or Bayes’ Criterion OR Equal Probability) Alternatives States of Nature (Product Demand) Expected Pay Offs Rs = 1/n (P1+P2+P3+…….Pn) High Moderate Low Nil Expand Construct Subcontract 50000 70000 30000 25000 30000 15000 -25000 -40000 -1000 -45000 -80000 -10000 1000/4 (50 + 25 - 25 – 45) = -1250 1000/4 (70+30-40-80) = -5000 1000/4 (30 + 15 - 1 -10) = 8500
118. EXAMPLE The following matrix gives the payoff of different strategies (alternatives) S1,S2,S3 against conditions (events) N1, N2, N3 & N4. Indicate the decision taken under the following approaches (a) Pessimistic (b) Optimistic (c) Regret (d) Equal Probability N1 N2 N3 N4 S1 S2 S3 4000 20000 20000 -100 5000 15000 6000 400 -2000 18000 0 1000
119. EXAMPLE The following matrix gives the payoff of different strategies (alternatives) S1,S2,S3 against conditions (events) N1, N2, N3 & N4. Indicate the decision taken under the following approaches (a) Pessimistic (b) Optimistic (c) Regret (d) Equal Probability N1 N2 N3 N4 S1 S2 S3 4000 20000 20000 -100 5000 15000 6000 400 -2000 18000 0 1000