Presentation is loading. Please wait.

Presentation is loading. Please wait.

Linear Programming. George Dantzig 1947 NarendraKarmarkar Pioneers of LP.

Similar presentations


Presentation on theme: "Linear Programming. George Dantzig 1947 NarendraKarmarkar Pioneers of LP."— Presentation transcript:

1 Linear Programming

2 George Dantzig 1947 NarendraKarmarkar Pioneers of LP

3 Linear Programming Graphical analysis Computational analysis (Simplex Method)

4 Computer Solution of the LP Problem Simplex Method A step-by-step mathematical procedure for finding the optimal solution to a LP problem. This procedure moves from corner point to corner point of the feasible solution space. Most practical applications of LP use computer programs to perform the calculations and to obtain the optimal solution.

5 Most business resource-allocation problems deal with constraints (capital, labor, legal, environmental). A wide variety of production, finance, marketing, and distribution problems employ the linear programming framework.

6 LP is a tool to solve maximization/minimization problems subject to underlying constraints. Assumptions: The objective function and the inequality constraint functions are linear functions of the decision variables. Applications: production decisions, profit maximization, investment decisions, scheduling, cost minimization, etc. Question: What is the difference between optimization problems solved by calculus-based methods and LP? What is Linear Programming (LP)?

7 Consider the White Company, a manufacturer of gas (Product 1) and electric (Product 2) clothes dryers. Problem: to determine the optimal levels of products to manufacture. Production consists of a machine process that takes raw materials and converts them into unassembled parts. These parts are sent to one of two divisions for assembly. Division 1 for Product 1 Division 2 for Product 2 Example:

8 Product 1 requires 20 units of raw material and 5 hours of machine-processing time. Product 2 requires 40 units of raw material and 2 hours of machine-processing time. 400 units of raw material are available. 40 hours of machine processing time are available. The capacities of the two assembly divisions are 6 and 9 units. Resource Quantity of Resources Required Per Unit of Output Quantity of Resources Available Raw material (units)2040400 Machine processing time (hours)5240 Capacity of Assembly Division 1 (units) 106 Capacity of Assembly Division 2 (units) 019

9 The percent contribution to profit and overhead (fixed costs) is $100 for each unit of Product 1 and $60 for each unit of Product 2. Formulation of the LP Problem #1Formulate the Objective Function: Let P 1 denote Product 1 and let P 2 denote Product 2. P 1 is the number of gas clothes dryers to manufacture and P 2 is the number of electric clothes dryers to manufacture. The objective of White Company is to maximize profits. Max Profits (π) = 100P 1 + 60P 2

10 #2 Consider Constraints (1)Raw material constraint 20P 1 + 40P 2 ≤ 400 (2)Machine processing time constraint 5P 1 + 2P 2 ≤ 40 (3)Capacity constraint of Division 1 P 1 ≤ 6 (4)Capacity constraint of Division 2 P 2 ≤ 9 (5)Non-negativity constraints P 1 ≥ 0 and P 2 ≥ 0

11 Various techniques are available for solving linear programming problems. --Graphical analysis Graphing the Feasible Solution Space Combining all the constraints yields the feasible solution space, which simultaneously satisfies all the constraints of the problem.

12

13

14

15

16 Graphing the Objective Function The profit function can be represented graphically as a series of parallel isoprofit lines. Each combination of output levels (P 1 and P 2 ) lying on a given line has the same total profit. The objective of profit maximization can be interpreted graphically to find an output combination that falls on as high an isoprofit line as possible. The resource constraints obviously limit us from increasing output and profits indefinitely.

17 Isoprofit Lines for The White Company Problem

18 Graphical Solution Combining the graphs of the feasible solution space and the objective function yields the output combination point within the feasible solution space that lies on the highest possible isoprofit line.

19 Optimal Solution a feasible solution that maximizes or minimizes the value of the objective function. Sometimes it is difficult to read the exact coordinates of the optimal solution from the graph. At point C, the machine-processing time constraint and the raw material constraint intersect. Therefore, 20P 1 + 40P 2 = 400 5P 1 + 2P 2 = 40 so, P 1 = 5 and P 2 = 7.5

20 Extreme Points and the Optimal Solution Extreme point graphically a corner point of the feasible solution space. Two important general properties of an optimal solution to a LP problem. (1)The optimal solution lies on the boundary of the feasible space. => we can ignore interior points on the feasible solution space when searching for an optimal solution. (2)The optimal solution occurs at one of the extreme points (corner points) of the feasible solution space.

21 Multiple Optimal Solutions Suppose that the objective function in our problem were to maximize π = 100P 1 + 40P 2.

22 In addition to the optimal combination of outputs P 1 and P 2 to produce (P 1 = 5 and P 2 = 7.5) and the maximum π ($950), we also are interested in the amount of each resource to use in the production process. Raw Material Constraint 20P 1 + 40P 2 = 20(5) + 40(7.5) = 400 all available raw materials (400 units) are used in producing the optimal output combination. Machine-Processing Time Constraint 5P 1 + 2P 2 = 5(5) + 2(7.5) = 40 all available machine-producing time is used in producing the optimal output combination. Division 1 CapacityDivision 2 Capacity P 1 ≤ 6 but P 1 = 5P 2 ≤ 9 but P 2 = 7.5 So, 1 unit of Division 1 assembly capacity and 1.5 units of Division 2 assembly capacity are unused in producing the optimal output combination.

23 Slack Variables Unused or idle resources associated with a less than or equal to constraint are referred to as slack. Slack variables can be added to the formation of a LP problem to represent this slack or idle capacity. Max π = 100P 1 + 60P 2 + 0S 1 + 0S 2 + 0S 3 + 0S 4 20P 1 + 40P 2 + S 1 = 400 5P 1 + 2P 2 + S 2 = 40 P 1 + S 3 = 6 P 2 + S 4 = 9 P 1, P 2, S 1, S 2, S 3, S 4 ≥ 0.

24 Primal Problem The original formulation of the LP problem. Dual Problem Associated with every LP problem is a related dual LP problem. If the objective in the primal problem is maximization of some function, then the objective in the dual problem is the minimization of a related (but different) function. Conversely, a primal minimization problem has a related dual maximization problem. The dual variables represent the variables contained in the dual problem.

25 Dual Problem of the White Company Profit Maximization Problem. Associated with each constraint of the primal problem is a dual variable. Because the primal problem had four constraints, the dual problem has four variables, say W 1,, W 2, W 3, and W 4. (Note: the constraints requiring each of the primal variables to be greater than or equal to zero P 1 ≥ 0, P 2 ≥ 0, are not included when determining the number of dual variables). The objective of the dual problem is minimization, that is to minimize the total cost or value of the resources employed in the process. Specify, minimize Z = 400W 1 + 40W 2 + 6W 3 + 9W 4. The constants 400, 40, 6, and 9 come from the resource constraints in the primal problem; W 1, W 2, W 3, and W 4 are expressed in $/unit.

26 The constraints of the dual problem come from the fact that 20 units of W 1,, 5 units of W 2, and 1 unit of W 3 are involved to produce P 1 and that 40 units of W 1, 2 units of W 2, and 1 unit of W 4 are involved to produce P 2. 20W 1 + 5W 2 + W 3 ≥ 100 40W 1 + 2W 2 + W 4 ≥ 60 W 1 ≥ 0, W 2 ≥ 0, W 3 ≥ 0, and W 4 ≥ 0. The value of the resources used in producing one unit each of P 1 and P 2 must be at least as great as the profit received from the sale of one unit of each product.

27 Economic Interpretation of the Dual Variables The dual variables measure the “imputed values” or shadow prices of each of the scarce resources. The shadow price measures the contribution to the objective function of one additional unit of a resource. W 1, = $.625 per unit, W 2 = $17.50 per unit, W 3 = W 4 = $0 per unit. Each dual variable indicates the change in profits for an incremental change in the amount of each of the various resources. In this way, the dual variables are similar to the Lagrangian Multiplier λ.

28 W 2 = $17.50 indicates that profits could be increased by as much as $17.50 if an additional hour of machine capacity could be made available to the production process. W 1 = $.625 indicates that profits could be increased by as much as $.625 if additional units of raw material could be made available to the production process. W 3 = W 4 = $0 indicates profits would not increase at all if additional assembly capacity were available.

29 Cost Minimization: Silverado Mining Company Suppose that the Silverado Mining Company owns two different mines (A and B) for producing uranium ore. After the ore is mined, it is separated into three grades – high, medium and low. Mine A produces.75 tons of high grade ore/hr. Mine A produces.25 tons of medium grade ore/hr. Mine A produces.50 tons of low grade ore/hr. Mine B produces.25 tons of high grade ore/hr. Mine B produces.25 tons of medium grade ore/hr. Mine B produces 1.50 tons of low grade ore/hr. The Company has contracts with uranium processing plants to supply a minimum of 36 tons of high-grade ore, 24 tons of medium- grade ore, and 72 tons of low-grade ore per week. Example

30 It costs the company $50/hr to operate Mine A and $40/hr to operate Mine B Objective:The company wishes to determine the number of hours per week it should operate each mine to minimize the total cost of fulfilling its supply contracts. Formulation of the LP Problem Objective Function:Define H 1 as the number of hours per week that Mine A is operated and H 2 as the number of hours per week that Mine B is operated. Minimize TC = 50H 1 + 40H 2 TC (refers to total cost).

31 Constraint Relationships High-Grade Ore Contract.75H 1 +.25H 2 ≥ 36. Medium-Grade Ore Contract.25H 1 +.25H 2 ≥ 24. Low-Grade Ore Contract.50H 1 + 1.50H 2 ≥ 72. Non-negativity Constraints H 1 ≥ 0, H 2 ≥ 0.

32 Surplus Variables In a minimization problem, surplus variables are subtracted from the greater than or equal to inequality constraints to convert these constraints to equalities. Minimize TC = 50H 1 + 40H 2 + 0S 1 + 0S 2 + 0S 3. s.t..75H 1 +.25H 2 – S 1 = 36.25H 1 +.25H 2 – S 2 = 24.50H 1 + 1.50H 2 – S 3 = 72 H 1, H 2, S 1, S 2, S 3 ≥ 0.

33 Graph the Feasible Solution Space based on.75H 1 +.25H 2 ≥ 36.25H 1 +.25H 2 ≥ 24.50H 1 + 1.50H 2 ≥ 72 Iso-Cost line TC = 50H 1 + 40H 2 H 1 8 4 5 10 H 2 200 400

34 H 1 144 120 96 72 48 24 24 48 72 96120 144H 2 B(24,72).50H 1 + 1.50H 2 = 72 ABCD Represents the Feasible Solution Boundary D(144,0) C(72,24) A(0,144) isocost line at TC = $4,080, TC = 50H 1, + 40H 2.75H 1 +.25H 2 = 36.25H 1 +.25H 2 = 24

35 TC At pointA,H 1 = 144H 2 = 0$50(144) + $40(0) = $7,200 B,H 1 = 72H 2 = 24$50(72) + $40(24) = $4,560 C,H 1 = 24H 2 = 72$50(24) + $40(72) = $4,080 D,H 1 = 0H 2 = 144$50(0) + $40(144) = $5,760 At point B, intersection of.50H 1 + 1.50H 2 = 72.25H 1 +.25H 2 = 24 H 1 = 72, H 2 = 24 At point C, intersection of.25H 1 +.25H 2 = 24.75H 1 +.25H 2 = 36 H 1 = 24, H 2 = 72 Minimum TC combination of H 1 & H 2 occurs at point C. Minimum TC is $4,080.


Download ppt "Linear Programming. George Dantzig 1947 NarendraKarmarkar Pioneers of LP."

Similar presentations


Ads by Google