Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells...

26
Chapter 3 Introduction to optimization models

Transcript of Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells...

Page 1: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

Chapter 3

Introduction to optimization models

Page 2: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

Linear Programming• The PCTech company makes and sells two models for computers,

Basic and XP.• Profits for Basic is $80/unit and for XP is $129/unit. • Sales estimate is 600 Basics and 1200 XPs• Making the computers involves two operations:

Assembly: Basic requires 5 hours and XP requires 6 hours

Testing: Basic requires 1 hour and XP requires 2 hours

• Available labor hours:Assembly: 10000 hoursTesting: 3000 hours

Page 3: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

Linear Programming• PC Tech wants to know how many of each model it should

produce (assemble and test) to maximize its net profit, but it cannot use more labor hours than are available, and it does not want to produce more than it can sell.

• The problem objective:– Use LP to find the best mix of computer models that maximizes

profit– Stay within the company’s labor availability– Don’t produce more than what can be sold

Page 4: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

Graphical Method

x1 = Number of basic computer modelx2 = Number of XP computer model

Net profit = 80x1 + 129x2

x1

x2

Page 5: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1000

1200

1400

1600

1800 x1 = Number of basic computer modelx2 = Number of XP computer model

If x1 = 1290, x2 = 0, Net profit = 103,200

If x1 = 0, x2 = 800, Net profit = 103,200

Net profit = $103,200

x2

x1

Graphical Method

Net profit = 80x1 + 129x2

Page 6: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1000

1200

1400

1600

1800Net profit = 80x1 + 129x2

x1 = Number of basic computer modelx2 = Number of XP computer model

If x1 = 1290, x2 = 0, Net profit = 103,200

If x1 = 0, x2 = 800, Net profit = 103,200

Net profit = $103,200

x2

x1

Net profit = $130,00

Net profit = $140,00

Graphical Method

Iso-profit line

Page 7: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

Constraints

Basic Model XP Model Hours available

Assembly labor 5 hours/unit 6 hours/unit 10,000 hours

Testing labor 1 hour/unit 2 hours/unit 3,000 hours

Labor hours constraints

Basic Model XP Model

Maximum sales/month 600 1200

Sales constraints

Page 8: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1800

1200

1400

1600

1800

x1 = Number of basic computer modelx2 = Number of XP computer model

Assembly hours constraint:5x1 + 6x2 <= 10,000

If we make no XP model at all5(2000) + 6(0) = 10,000

If we make no Basic model at all5(0) + 6(1666.67) = 10,000

X1 = 2000, x2 = 0

Assembly Hours ConstraintsX1 = 0,

x2 = 1666.67

x1

x2

Page 9: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1800

1200

1400

1600

1800

x1 = Number of basic computer modelx2 = Number of XP computer model

Testing hours constraint:x1 + 2x2 <= 3,000

If we make no XP model at all(3000) + 2(0) = 3,000

If we make no Basic model at all(0) + 2(1500) = 3,000

Testing Hours Constraintsx2

x1

X1 = 3000, x2 = 0

X1 = 0, x2 = 1500

Page 10: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1800

1200

1400

1600

1800

x1 = Number of basic computer modelx2 = Number of XP computer model

Maximum sales Constraintsx2

x1

Maximum sales for basic model:x1 <= 600

X1 = 600, x2 = 0

Page 11: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1800

1200

1400

1600

1800

x1 = Number of basic computer modelx2 = Number of XP computer model

x2

x1

Maximum sales for XP model:x2 <= 1200

X1 = 0, x2 = 1200

Maximum sales Constraints

Page 12: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1800

1200

1400

1600

1800

x1 = Number of basic computer modelx2 = Number of XP computer model

Feasible regionx2

x1

x2 = 1200

x1 = 600

5x1 + 6x2 =10000

Feasible region

Redundant constraint

x1 + 2x2 <= 3000

Page 13: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1800

1200

1400

1600

1800

x1 = Number of basic computer modelx2 = Number of XP computer model

Optimum solutionx2

x1

Feasible region

Redundant constraintx1 + 2x2 <= 3000

Iso-profit line

Page 14: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1800

1200

1400

1600

1800

x1 = Number of basic computer modelx2 = Number of XP computer model

Optimum solutionx2

x1

Feasible region

Optimum solution

Page 15: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1800

1200

1400

1600

1800

x1 = Number of basic computer modelx2 = Number of XP computer model

Optimum solutionx2

x1

Feasible region

Optimum solution

Optimum Solution is the intersection between:x2 = 1200, and5x1 + 6x2 = 10000Solve and x1 = 560 and x2 = 1200Profit = 80(560) + 129(1200) = $199,600

5x1 + 6x2 =10000

x2 = 1200

Page 16: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

The algebraic modelMaximize 80x1 + 129x2

subject to:5x1 + 6x2 < 10000

x1 + 2x2 < 3000

x1 < 600

x2 < 1200

x1, x2 > 0

Page 17: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

Elements of LP model

• Decision variables– The variable whose values must be determined

• Objective function– A linear function of decision variables– The value of this function is to be optimized –

minimized or maximized• Constraints– Linear functions of the variables– Represents limited resources or minimum

requirements

Page 18: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

LP requirements

• Proportionality of variables• Additivity of resources• Divisibility of variables• Non-negativity• Linear objective function• Linear constraints

Page 19: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

Scaling in LP

• Poorly scaled model– model contains some very large numbers (e.g. 100,000 or

more) and some very small numbers (e.g. 0.001 or less)– Solver may erroneously give an error that the linearity

conditions are not satisfied• Three remedies for poorly scaled model– Use Automatic Scaling option in Solver/Options– Redefine the units in the model– Change the Precision setting in Solver's Options dialog

box to a larger number, such 0.00001 or 0.0001. (The default has five zeros.)

Page 20: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

Solutions to LP problem

• Feasible solution• Feasible region• Optimal solution– Unique– Multiple– Unbounded

Page 21: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1800

1200

1400

1600

1800

x1 = Number of basic computer modelx2 = Number of XP computer model

Multiple Optimum solutionx2

x1

Page 22: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1800

1200

1400

1600

1800

x1 = Number of basic computer modelx2 = Number of XP computer model

Multiple Optimum solutionx2

x1

Iso-profit line

Page 23: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1000

1200

1400

1600

1800 x1 = Number of basic computer modelx2 = Number of XP computer model

x2

x1

Unbounded Solution

Constraint 1

Constraint 2

Page 24: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1000

1200

1400

1600

1800 x1 = Number of basic computer modelx2 = Number of XP computer model

x2

x1

Unbounded Solution

Constraint 1

Constraint 2

Page 25: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

200 400 600 800 1000 1200 1400 1600 1800 2000 2200 2400 2600 2800 3000

200

400

600

800

1000

1200

1400

1600

1800 x1 = Number of basic computer modelx2 = Number of XP computer model

x2

x1

Infeasible Solution

Constraint 1

Constraint 2

Page 26: Chapter 3 Introduction to optimization models. Linear Programming The PCTech company makes and sells two models for computers, Basic and XP. Profits for.

Summary

• An LP model may result in– an unique optimum solution– multiple optimum solutions– unbounded feasible region– infeasible region