Download presentation
Presentation is loading. Please wait.
Published byPhebe Oliver Modified over 9 years ago
1
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.1 Three Classic Applications of LP Product Mix at Ponderosa Industrial –Considered limited resources, and determined optimal mix of plywood products. –Increased overall profitability of company by 20%. Personnel Scheduling at United Airlines –Designed work schedules for all employees at a location to meet service requirements most efficiently. –Saved $6 million annually. Planning Supply, Distribution, and Marketing at Citgo Petroleum Corporation –The SDM system uses LP to coordinate the supply, distribution, and marketing of each of Citgo’s major products throughout the United States. –The resulting reduction in inventory added $14 million annually to Citgo’s profits.
2
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.2 Wyndor Glass Co. Product Mix Problem Wyndor has developed the following new products: An 8-foot glass door with aluminum framing (unit profit = $300); a 4-foot by 6-foot double- hung, wood-framed window (unit profit = $500). The company has three plants: Plant 1 (capacity: 4 hrs available) produces aluminum frames and hardware; Plant 2 (capacity: 12 hrs available) produces wood frames; Plant 3 (18 hrs available) produces glass and assembles the windows and doors. The 8-foot glass door requires some of the production capacity in Plants 1 and 3, but not Plant 2; The 4-foot wood-framed window needs only Plants 2 and 3. Technological coefficients (hrs/unit): Plant 1: 1 hr/doors, 0 hrs/windows; Plant 2: 0 hrs/doors, 2 hrs/windows; Plant 3: 3 hrs/doors, 2 hrs/windows. Questions: What should be the product mix?
3
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.3 Algebraic Model for Wyndor Glass Co. LetD = the number of doors to produce W = the number of windows to produce Maximize P = $300D + $500W subject to D ≤ 4 2W ≤ 12 3D + 2W ≤ 18 and D ≥ 0, W ≥ 0.
4
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.4 Graph of Feasible Region
5
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.5 Finding the Optimal Solution
6
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.6 Summary of the Graphical Method Draw the constraint boundary line for each constraint. Use the origin (or any point not on the line) to determine which side of the line is permitted by the constraint. Find the feasible region by determining where all constraints are satisfied simultaneously. Determine the slope of one objective function line. All other objective function lines will have the same slope. Move a straight edge with this slope through the feasible region in the direction of improving values of the objective function. Stop at the last instant that the straight edge still passes through a point in the feasible region. This line given by the straight edge is the optimal objective function line. A feasible point on the optimal objective function line is an optimal solution.
7
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.7 Identifying the Target Cell and Changing Cells Choose the “Solver” from the Tools menu. Select the cell you wish to optimize in the “Set Target Cell” window. Choose “Max” or “Min” depending on whether you want to maximize or minimize the target cell. Enter all the changing cells in the “By Changing Cells” window.
8
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.8 Adding Constraints To begin entering constraints, click the “Add” button to the right of the constraints window. Fill in the entries in the resulting Add Constraint dialogue box.
9
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.9 The Complete Solver Dialogue Box
10
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.10 Some Important Options Click on the “Options” button, and click in both the “Assume Linear Model” and the “Assume Non-Negative” box. –“Assume Linear Model” tells the Solver that this is a linear programming model. –“Assume Non-Negative” adds non-negativity constraints to all the changing cells.
11
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.11 The Solver Results Dialogue Box
12
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.12 The Optimal Solution
13
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.13 The Profit & Gambit Co. Management has decided to undertake a major advertising campaign that will focus on the following three key products: –A spray prewash stain remover. –A liquid laundry detergent. –A powder laundry detergent. The campaign will use both television and print media The general goal is to increase sales of these products. Management has set the following goals for the campaign: –Sales of the stain remover should increase by at least 3%. –Sales of the liquid detergent should increase by at least 18%. –Sales of the powder detergent should increase by at least 4%. Question: how much should they advertise in each medium to meet the sales goals at a minimum total cost?
14
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.14 Profit & Gambit Co. Spreadsheet Model
15
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.15 Algebraic Model for Profit & Gambit LetTV = the number of units of advertising on television PM = the number of units of advertising in the print media Minimize Cost = TV + 2PM (in millions of dollars) subject to Stain remover increased sales: PM ≥ 3 Liquid detergent increased sales:3TV + 2PM ≥ 18 Powder detergent increased sales:–TV + 4PM ≥ 4 and TV ≥ 0, PM ≥ 0.
16
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.16 Applying the Graphical Method
17
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.17 The Optimal Solution
18
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.18 A Production Problem Weekly supply of raw materials: 8 Small Bricks6 Large Bricks Products: Table Profit = $20 / Table Chair Profit = $15 / Chair
19
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.19 Linear Programming Linear programming uses a mathematical model to find the best allocation of scarce resources to various activities so as to maximize profit or minimize cost. Let T = Number of tables to produce C = Number of chairs to produce Maximize Profit = ($20)T + ($15)C subject to 2T + C ≤ 6 large bricks 2T + 2C ≤ 8 small bricks and T ≥ 0, C ≥ 0.
20
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.20 Graphical Representation
21
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.21 Components of a Linear Program Data Cells Changing Cells (“Decision Variables”) Target Cell (“Objective Function”) Constraints
22
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.22 When is a Spreadsheet Model Linear? All equations (output cells) must be of the form = ax + by + cz + … where a, b, c are constants (data cells) and x, y, z are changing cells.
23
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.23 Why Use Linear Programming? Linear programs are easy (efficient) to solve The best (optimal) solution is guaranteed to be found (if it exists) Useful sensitivity analysis information is generated Many problems are essentially linear
24
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.24 Developing a Spreadsheet Model Step #1: Data Cells –Enter all of the data for the problem on the spreadsheet. –Make consistent use of rows and columns. –It is a good idea to color code these “data cells” (e.g., light blue).
25
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.25 Developing a Spreadsheet Model Step #2: Changing Cells –Add a cell in the spreadsheet for every decision that needs to be made. –If you don’t have any particular initial values, just enter 0 in each. –It is a good idea to color code these “changing cells” (e.g., yellow with border).
26
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.26 Developing a Spreadsheet Model Step #3: Target Cell –Develop an equation that defines the objective of the model. –Typically this equation involves the data cells and the changing cells in order to determine a quantity of interest (e.g., total profit or total cost). –It is a good idea to color code this cell (e.g., orange with heavy border).
27
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.27 Developing a Spreadsheet Model Step #4: Constraints –For any resource that is restricted, calculate the amount of that resource used in a cell on the spreadsheet (an output cell). –Define the constraint in three consecutive cells. For example, if Quantity A ≤ Quantity B, put these three items (Quantity A, ≤, Quantity B) in consecutive cells. –Note the use of relative and absolute addressing to make it easy to copy formulas in column E.
28
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.28 Defining the Target Cell Choose the “Solver” from the Tools menu. Select the cell you wish to optimize in the “Set Target Cell” window. Choose “Max” or “Min” depending on whether you want to maximize or minimize the target cell.
29
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.29 Identifying the Changing Cells Enter all the changing cells in the “By Changing Cells” window. –You may either drag the cursor across the cells or type the addresses. –If there are multiple sets of changing cells, separate them by typing a comma.
30
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.30 Adding Constraints To begin entering constraints, click the “Add” button to the right of the constraints window. Fill in the entries in the resulting Add Constraint dialogue box.
31
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.31 Some Important Options Click on the “Options” button, and click in both the “Assume Linear Model” and the “Assume Non-Negative” box. –“Assume Linear Model” tells the Solver that this is a linear programming model. –“Assume Non-Negative” adds nonnegativity constraints to all the changing cells.
32
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.32 The Solution After clicking “Solve”, you will receive one of four messages: –“Solver found a solution. All constraints and optimality conditions are satisfied.” –“Set cell values did not converge.” –“Solver could not find a feasible solution.” –“Conditions for Assume Linear Model are not satisfied.”
33
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.33 Properties of Linear Programming Solutions An optimal solution must lie on the boundary of the feasible region. There are exactly four possible outcomes of linear programming: –A unique optimal solution is found. –An infinite number of optimal solutions exist. –No feasible solutions exist. –The objective function is unbounded (there is no optimal solution). If an LP model has one optimal solution, it must be at a corner point. If an LP model has many optimal solutions, at least two of these optimal solutions are at corner points.
34
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.34 Example: (Multiple Optimal Solutions) Minimize Z = 6x 1 + 4x 2 subject to x 1 ≤ 4 2x 2 ≤ 12 3x 1 + 2x 2 ≤ 18 and x 1 ≥ 0, x 2 ≥ 0.
35
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.35 Example: (No Feasible Solution) Maximize Z = 3x 1 + 5x 2 subject to x 1 ≥ 5 x 2 ≥ 4 3x 1 + 2x 2 ≤ 18 and x 1 ≥ 0, x 2 ≥ 0.
36
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 2.36 Example: (Unbounded Solution) Maximize Z = 5x 1 + 12x 2 subject to x 1 ≤ 5 2x 1 –x 2 ≤ 2 and x 1 ≥ 0, x 2 ≥ 0.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.