Introduction to Management Science

Download Report

Transcript Introduction to Management Science

Table of Contents Chapter 2 (Linear Programming: Basic Concepts)

Three Classic Applications of LP (Section 2.1) The Wyndor Glass Company Product Mix Problem (Section 2.2) Formulating the Wyndor Problem on a Spreadsheet (Section 2.3) The Algebraic Model for Wyndor (Section 2.4) The Graphical Method Applied to the Wyndor Problem (Section 2.5) Using the Excel Solver with the Wyndor Problem (Section 2.6) A Minimization Example—The Profit & Gambit Co. (Section 2.7) 2.2

2.3

2.4–2.8

2.9

2.10–2.20

2.21–2.26

2.27–2.32

Introduction to Linear Programming (UW Lecture) 2.33–2.48

These slides are based upon a lecture introducing the basic concepts of linear programming and the Solver to first-year MBA students at the University of Washington (as taught by one of the authors). The lecture is largely based upon a production problem using lego building blocks.

The Graphical Method and Properties of LP Solutions (UW Lecture) 2.49–2.57

These slides are based upon a lecture introducing the graphical method and other concepts about linear programming solutions to first-year MBA students at the University of Washington (as taught by one of the authors).

McGraw-Hill/Irwin

2.1

© The McGraw-Hill Companies, Inc., 2003

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.

McGraw-Hill/Irwin

2.2

© The McGraw-Hill Companies, Inc., 2003

Wyndor Glass Co. Product Mix Problem

• Wyndor has developed the following new products: – An 8-foot glass door with aluminum framing.

– A 4-foot by 6-foot double-hung, wood-framed window.

• The company has three plants – Plant 1 produces aluminum frames and hardware.

– Plant 2 produces wood frames.

– Plant 3 produces glass and assembles the windows and doors.

Questions:

1. Should they go ahead with launching these two new products?

2. If so, what should be the

product mix

?

McGraw-Hill/Irwin

2.3

© The McGraw-Hill Companies, Inc., 2003

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).

3 4 5 6 7 8 B Profit Large Bricks Small Bricks C Tables $20.00

D Chairs $15.00

Bill of Materials 2 2 1 2 E F G Available 6 8

McGraw-Hill/Irwin

2.4

© The McGraw-Hill Companies, Inc., 2003

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).

E F G 3 4 5 6 7 8 9 10 11 12 B Unit Profit Plant 1 Plant 2 Plant 3 Units Produced C Doors $300 D Windows $500 Hours Used Per Unit Produced 1 0 0 2 3 2 Doors 0 Windows 0 Hours Available 1 12 18

McGraw-Hill/Irwin

2.5

© The McGraw-Hill Companies, Inc., 2003

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). B E F G 3 4 5 6 7 8 9 10 11 12 Unit Profit Plant 1 Plant 2 Plant 3 Units Produced C Doors $300 D Windows $500 Hours Used Per Unit Produced 1 0 3 0 2 2 Doors 1 Windows 1 Hours Available 1 12 18 Total Profit $800 11 12 G Total Profit =SUMPRODUCT(UnitProfit,UnitsProduced)

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003

2.6

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.

3 4 5 6 7 8 9 10 11 12

McGraw-Hill/Irwin

B Unit Profit Plant 1 Plant 2 Plant 3 Units Produced C Doors $300 D Windows $500 Hours Used Per Unit Produced 1 0 0 3 2 2 Doors 1 Windows 1 E F G Hours Used 1 2 5 <= <= <= Hours Available 1 12 18 Total Profit $800 5 6 7 8 9 E Hours Used =SUMPRODUCT(C7:D7,UnitsProduced) =SUMPRODUCT(C8:D8,UnitsProduced) =SUMPRODUCT(C9:D9,UnitsProduced) 2.7

© The McGraw-Hill Companies, Inc., 2003

A Trial Solution

3 4 5 6 7 8 9 10 11 12 B Unit Profit Plant 1 Plant 2 Plant 3 Units Produced C Doors $300 D Windows $500 Hours Used Per Unit Produced 1 0 3 0 2 2 Doors 4 Windows 3 E F G Hours Used 4 6 18 <= <= <= Hours Available 1 12 18 Total Profit $2,700 The spreadsheet for the Wyndor problem with a trial solution (4 doors and 3 windows) entered into the changing cells.

McGraw-Hill/Irwin

2.8

© The McGraw-Hill Companies, Inc., 2003

Algebraic Model for Wyndor Glass Co.

Let

D

= the number of doors to produce

W

= the number of windows to produce Maximize

P

= $300

D

+ $500

W

subject to

D

≤ 4 2

W

≤ 12 3

D

+ 2

W

≤ 18 and

D

≥ 0,

W

≥ 0.

McGraw-Hill/Irwin

2.9

© The McGraw-Hill Companies, Inc., 2003

Graphing the Product Mix

McGraw-Hill/Irwin

-2 W 8 5 4 7 6 A product mix of D = 4 and W = 6 (4, 6) A product mix of D = 2 and W = 3 3 2 -1 1 0 -1 Origin 1 -2 2 (2, 3) 3 4 5 6 7 Production rate (units per week) for doors 8 D 2.10

© The McGraw-Hill Companies, Inc., 2003

Graph Showing Constraints:

D

≥ 0 and

W

≥ 0

W 8 6 4 2

McGraw-Hill/Irwin

0 2 4 Production rate for doors 6 2.11

8 D

© The McGraw-Hill Companies, Inc., 2003

Nonnegative Solutions Permitted by

D

≤ 4

W 8 D = 4 6 4 2

McGraw-Hill/Irwin

0 2 4 Production rate for doors 6 2.12

8 D

© The McGraw-Hill Companies, Inc., 2003

Nonnegative Solutions Permitted by 2

W

≤ 12

4 2 W 8 6 2 W = 12

McGraw-Hill/Irwin

0 2 4 Production rate for doors 6 2.13

8 D

© The McGraw-Hill Companies, Inc., 2003

Boundary Line for Constraint 3

D

+ 2

W

≤ 18

W 10 (0, 9) 8 6 (2, 6) 3 D + 2 W = 18 4 2 (4, 3)

McGraw-Hill/Irwin

0 2 4 Production rate for doors 2.14

6 (6, 0) 8 D

© The McGraw-Hill Companies, Inc., 2003

Changing Right-Hand Side Creates

Parallel

Constraint Boundary Lines

W 12 1 0 3D + 2W = 24 8 6 3D + 2W = 18 4 2 3D + 2W = 12

McGraw-Hill/Irwin

0 2 4 6 Production rate for doors 8 2.15

1 0 D

© The McGraw-Hill Companies, Inc., 2003

McGraw-Hill/Irwin

Nonnegative Solutions Permitted by 3

D

+ 2

W

≤ 18

W 10 8 6 4 2 3D + 2W = 18 0 2 4 Production rate for doors 2.16

6 8 D

© The McGraw-Hill Companies, Inc., 2003

McGraw-Hill/Irwin

Graph of Feasible Region

W 10 8 3 D + 2 W = 18 6 D = 4 2 W =12 4 2

Feasible region

0 2 4 Production rate for doors 6 2.17

8 D

© The McGraw-Hill Companies, Inc., 2003

Objective Function (

P

= 1,500)

Production rate for windows W 8 6 P = 1500 = 300D + 500W 4

Feasible region

2

McGraw-Hill/Irwin

0 2 4 Production rate for doors 2.18

6 8 D

© The McGraw-Hill Companies, Inc., 2003

Finding the Optimal Solution

Production rate for windows W P = 3600 = 300D + 500W 8 P = 3000 = 300D + 500W 6 Optimal solution (2, 6) P = 1500 = 300D + 500W 4

Feasible region

2

McGraw-Hill/Irwin

0 2 4 Production rate for doors 2.19

6 8 10 D

© The McGraw-Hill Companies, Inc., 2003

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.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003

2.20

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.

McGraw-Hill/Irwin

3 4 5 6 7 8 9 10 11 12 B Unit Profit Plant 1 Plant 2 Plant 3 Units Produced C Doors $300 Hours Used Per Unit Produced 1 0 0 3 2 2 Doors 1 2.21

D Windows $500 Windows 1 E F G Hours Used 1 2 5 <= <= <= Hours Available 1 12 18 Total Profit $800

© The McGraw-Hill Companies, Inc., 2003

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.

3 4 5 6 7 8 9 10 11 12 B Unit Profit Plant 1 Plant 2 Plant 3 Units Produced C Doors $300 D Windows $500 Hours Used Per Unit Produced 1 0 0 2 3 2 Doors 1 Windows 1 E Hours Used 1 2 5 F G <= <= <= Hours Available 1 12 18 Total Profit $800

McGraw-Hill/Irwin

2.22

© The McGraw-Hill Companies, Inc., 2003

The Complete Solver Dialogue Box

McGraw-Hill/Irwin

2.23

© The McGraw-Hill Companies, Inc., 2003

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.

McGraw-Hill/Irwin

2.24

© The McGraw-Hill Companies, Inc., 2003

The Solver Results Dialogue Box

McGraw-Hill/Irwin

2.25

© The McGraw-Hill Companies, Inc., 2003

The Optimal Solution

3 4 5 6 7 8 9 10 11 12 B Unit Profit Plant 1 Plant 2 Plant 3 Units Produced C Doors $300 D Windows $500 Hours Used Per Unit Produced 1 0 0 3 2 2 Doors 2 Windows 6 E F G Hours Used 2 12 18 <= <= <= Hours Available 1 12 18 Total Profit $3,600

McGraw-Hill/Irwin

2.26

© The McGraw-Hill Companies, Inc., 2003

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?

McGraw-Hill/Irwin

2.27

© The McGraw-Hill Companies, Inc., 2003

Profit & Gambit Co. Spreadsheet Model

3 4 5 6 7 8 9 10 11 12 13 14 B Unit Cost ($millions) Stain Remover Liquid Detergent Powder Detergent Advertising Units C Television 1 D Print Media 2 Increase in Sales per Unit of Advertising 0% 1% 3% -1% 2% 4% Television 4 Print Media 3 E F G Increased Sales 3% 18% 8% >= >= >= Minimum Increase 3% 18% 4% Total Cost ($millions) 10

McGraw-Hill/Irwin

2.28

© The McGraw-Hill Companies, Inc., 2003

Algebraic Model for Profit & Gambit

Let

TV

= the number of units of advertising on television

PM

= the number of units of advertising in the print media Minimize Cost =

TV

+ 2

PM

(in millions of dollars) subject to Stain remover increased sales: Liquid detergent increased sales: Powder detergent increased sales:

PM

≥ 3 3

TV

–

TV

+ 2

PM

+ 4

PM

≥ 18 ≥ 4 and

TV

≥ 0,

PM

≥ 0.

McGraw-Hill/Irwin

2.29

© The McGraw-Hill Companies, Inc., 2003

Applying the Graphical Method

PM -4

McGraw-Hill/Irwin

-2 10

Feasible region

8 6 4 2 PM = 3 0 -TV + 4 PM = 4 2 3 TV + 2 PM = 18 4 6 Amount of TV advertising 8 2.30

1 0 TV

© The McGraw-Hill Companies, Inc., 2003

The Optimal Solution

PM Cost = 15 = TV + 2 PM 10 Cost = 10 = TV + 2 PM 4

Feasible region

McGraw-Hill/Irwin

0 (4,3) optimal solution 5 10 Amount of TV advertising 2.31

15 TV

© The McGraw-Hill Companies, Inc., 2003

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.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003

2.32

• Data Cells

Components of a Linear Program

• Changing Cells (“Decision Variables”) • Target Cell (“Objective Function”) • Constraints

McGraw-Hill/Irwin

2.33

© The McGraw-Hill Companies, Inc., 2003

Four Assumptions of Linear Programming

• Linearity • Divisibility • Certainty • Nonnegativity

McGraw-Hill/Irwin

2.34

© The McGraw-Hill Companies, Inc., 2003

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.

• Suppose C1:C6 are changing cells and D1:D6 are data cells.

Which of the following can be part of an LP

?

– SUMPRODUCT(D1:D6, C1:C6) – SUM(C1:C6) – C1 * SUM(C4:C6) – SUMPRODUCT(C1:C3, C4:C6) – IF(C1 > 3, 2*C3 + C4, 3*C3 + C5) – IF(D1 > 3, C1, C2) – MIN(C1, C2) – MIN(D1, D2) * C1 – ROUND(C1)

McGraw-Hill/Irwin

2.35

© The McGraw-Hill Companies, Inc., 2003

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

McGraw-Hill/Irwin

2.36

© The McGraw-Hill Companies, Inc., 2003

The Graphical Method for Solving LP’s

• Formulate the problem as a linear program • Plot the constraints • Identify the feasible region • Draw an imaginary line parallel to the objective function (

Z

=

a

) • Find the optimal solution

McGraw-Hill/Irwin

2.37

© The McGraw-Hill Companies, Inc., 2003

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.

McGraw-Hill/Irwin

2.38

© The McGraw-Hill Companies, Inc., 2003

Example #4 (Multiple Optimal Solutions)

Minimize

Z

= 6

x

1 subject to + 4

x

2

x

1

2x

2 ≤ 4 ≤ 12 3

x

1 + 2

x

2 ≤ 18 and

x

1 ≥ 0,

x

2 ≥ 0.

4 3 6 5 10 9 8 7 2 1

x

2

1 2 3 4 5 6 7 8 9 10

x

1

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003

2.39

Example #5 (No Feasible Solution)

Maximize

Z

= 3

x

1 + 5

x

2 subject to

x

1

x

2 3

x

1 ≥ 5 ≥ 4 + 2

x

2 ≤ 18 and

x

1 ≥ 0,

x

2 ≥ 0.

2 1 4 3 10 9 6 5 8 7

x

2

1 2 3 4 5 6 7 8 9 10

x

1

McGraw-Hill/Irwin

2.40

© The McGraw-Hill Companies, Inc., 2003

Example #6 (Unbounded Solution)

Maximize

Z

= 5

x

1 + 12

x

2 subject to

x

1 2

x

1 ≤ 5 –

x

2 ≤ 2 and

x

1 ≥ 0,

x

2 ≥ 0.

2 1 4 3 10 9 6 5 8 7

x

2

1 2 3 4 5 6 7 8 9 10

x

1

McGraw-Hill/Irwin

2.41

© The McGraw-Hill Companies, Inc., 2003

The Simplex Method Algorithm

1. Start at a feasible corner point (often the origin).

2. Check if adjacent corner points improve the objective function: a) If so, move to adjacent corner and repeat step 2.

b) If not, current corner point is optimal. Stop.

10 9 2 1 4 3 6 5 8 7

x

2

1 2 3 4 5 6 7 8 9 10

x

1

McGraw-Hill/Irwin

2.42

© The McGraw-Hill Companies, Inc., 2003