management science

26
Spreadsheet Modeling & Decision Analysis Chapter 2 Introduction to Optimization and Linear Programming

Upload: lisa1090

Post on 15-Dec-2014

620 views

Category:

Business


0 download

DESCRIPTION

Graphical Linear Programming

TRANSCRIPT

Page 1: Management Science

Spreadsheet Modeling & Decision Analysis

Chapter 2Introduction to Optimization

and Linear Programming

Page 2: Management Science

Characteristics of Optimization Problems

Decisions – that can be represented by decision variables (DVs). Typically represented as (X1, X2, X3, …. Xn); a set of n decision variables

Constraints – one or more functions of the DVs that must be satisfied. Typically should be thought of as restrictions (constraints) on the resources available to achieve the objective.

Objective - some function of the DVs the decision maker wants to MAXimize of MINimize.

Page 3: Management Science

General Form of an Optimization Problem

MAX (or MIN): f0(X1, X2, …, Xn)

Subject to: f1(X1, X2, …, Xn)<=b1

fk(X1, X2, …, Xn)>=bkfm(X1, X2, …, Xn) = bm

As in, MAX or MIN some objective subject to a specific set of constraints based on the decision problem.The 3 general forms of constraint relationships are represented here.Note: If all the functions in an optimization problem are linear (the objective functions and the constraints) , then the problem is a Linear Programming (LP) problem

Page 4: Management Science

Linear Programming (LP) Problems

MAX (or MIN): c1X1 + c2X2 + … + cnXn

Subject to: a11X1 + a12X2 + … + a1nXn <= b1

:

ak1X1 + ak2X2 + … + aknXn >=bk :

am1X1 + am2X2 + … + amnXn = bm

So, this general form on an LP specifies up to n decision variables and up to m constraints.

c1, c2, c3 … and so on are the coefficients in the objective function for DVs X1, X2, X3 … etc.

aij is the coefficient for variable Xj in the ith constraint.

Page 5: Management Science

5 Steps In Formulating LP Models:

1. Understand the problem.

2. Identify the decision variables.

3. State the objective function as a linear combination of the decision variables.

4. State the constraints as linear combinations of the decision variables.

5. Identify any upper or lower bounds on the decision variables.

Page 6: Management Science

Solving LP Problems:A Graphical Approach

The constraints of an LP problem defines its feasible region.

Feasible solutions (region) of an LP model is the set of points (values for the DVs) that simultaneously satisfy all the constraints in the problem.

The best point in the feasible region is the optimal solution to the problem.

For LP problems with 2 variables, it is possible to plot the feasible region and find the optimal solution graphically.

Page 7: Management Science

Summary of Graphical Solution to LP Problems

1. Plot the boundary line of each constraint in the model.

2. Identify the feasible region; i.e. the set of all points on the graph that simultaneously satisfy all the constraints.

3. Locate the optimal solution by either:

a. Plotting level curves for the objective function to identify the value of the coordinates for the DVs that satisfy the objective function (will occur at extreme point in the feasible region).

b. Enumerate all the extreme points and calculate the value of the objective function for each of these points.

Page 8: Management Science

Special Conditions in LP Models Alternate Optimal Solutions; instances where

more than one point in the feasible region MAX (or MIN) the objective function

Redundant Constraints; can occur if a constraint plays no role in determining the feasible region.

Unbounded Solutions; the objective function can be made infinitely large (for MAX …small for MIN) and still satisfy the constraints. problem

Infeasibility; instances where there is no way to satisfy all the constraints simultaneously.

Page 9: Management Science

An Example LP Problem

Blue Ridge Hot Tubs produces two types of hot tubs: Aqua-Spas & Hydro-Luxes.

There are 200 pumps, 1566 hours of labor, and 2880 feet of tubing available.

Aqua-Spa Hydro-LuxPumps 1 1Labor 9 hours 6 hoursTubing 12 feet 16 feetUnit Profit $350 $300

Page 10: Management Science

5 Steps In Formulating LP Models (Blue Ridge example):

1. Understand the problem.

2. Identify the decision variables.

X1=number of Aqua-Spas to produce

X2=number of Hydro-Luxes to produce

3. State the objective function as a linear combination of the decision variables.

MAX: 350X1 + 300X2

Page 11: Management Science

5 Steps In Formulating LP Models((Blue Ridge example …. continued)

4. State the constraints as linear combinations of the decision variables.

1X1 + 1X2 <= 200} pumps

9X1 + 6X2 <= 1566 } labor

12X1 + 16X2 <= 2880 } tubing

5. Identify any upper or lower bounds on the decision variables.

X1 >= 0

X2 >= 0

Page 12: Management Science

So, the formulation of the LP Model for Blue Ridge Hot Tubs is;

MAX: 350X1 + 300X2

S.T.: 1X1 + 1X2 <= 200

9X1 + 6X2 <= 1566

12X1 + 16X2 <= 2880

X1 >= 0

X2 >= 0

Page 13: Management Science

Solving LP Problems: An Intuitive Approach

Idea: Each Aqua-Spa (X1) generates the highest unit profit ($350), so let’s make as many of them as possible!

How many would that be?

– Let X2 = 0

1st constraint: 1X1 <= 200

2nd constraint: 9X1 <=1566 or X1 <=174

3rd constraint: 12X1 <= 2880 or X1 <= 240

If X2=0, the maximum value of X1 is 174 and the total profit is $350*174 + $300*0 = $60,900

This solution is feasible, but is it optimal? No!

Page 14: Management Science

Graphical Solution to the Blue Ridge Hot Tub example …

Page 15: Management Science

X2

X1

250

200

150

100

50

0 0 50 100 150 200 250

(0, 200)

(200, 0)

boundary line of pump constraint

X1 + X2 = 200

Plotting the First Constraint

Page 16: Management Science

X2

X1

250

200

150

100

50

0 0 50 100 150 200 250

(0, 261)

(174, 0)

boundary line of labor constraint

9X1 + 6X2 = 1566

Plotting the Second Constraint

Page 17: Management Science

X2

X1

250

200

150

100

50

0 0 50 100 150 200 250

(0, 180)

(240, 0)

boundary line of tubing constraint

12X1 + 16X2 = 2880

Feasible Region

Plotting the Third Constraint

Page 18: Management Science

X2Plotting A Level Curve of the

Objective Function

X1

250

200

150

100

50

0 0 50 100 150 200 250

(0, 116.67)

(100, 0)

objective function

350X1 + 300X2 = 35000

Page 19: Management Science

A Second Level Curve of the Objective FunctionX2

X1

250

200

150

100

50

0 0 50 100 150 200 250

(0, 175)

(150, 0)

objective function 350X1 + 300X2 = 35000

objective function 350X1 + 300X2 = 52500

Page 20: Management Science

Using A Level Curve to Locate the Optimal SolutionX2

X1

250

200

150

100

50

0 0 50 100 150 200 250

objective function 350X1 + 300X2 = 35000

objective function

350X1 + 300X2 = 52500

optimal solution

Page 21: Management Science

Calculating the Optimal Solution The optimal solution occurs where the “pumps” and “labor”

constraints intersect. This occurs where:

X1 + X2 = 200 (1)

and 9X1 + 6X2 = 1566 (2)

From (1) we have, X2 = 200 -X1 (3)

Substituting (3) for X2 in (2) we have,

9X1 + 6 (200 -X1) = 1566

which reduces to X1 = 122

So the optimal solution is,

X1=122, X2=200-X1=78

Total Profit = $350*122 + $300*78 = $66,100

Page 22: Management Science

Enumerating The Corner PointsX2

X1

250

200

150

100

50

0 0 50 100 150 200 250

(0, 180)

(174, 0)

(122, 78)

(80, 120)

(0, 0)

obj. value = $54,000

obj. value = $64,000

obj. value = $66,100

obj. value = $60,900obj. value = $0

Note: This technique will not work if the solution is unbounded.

Page 23: Management Science

Example of Alternate Optimal Solutions

X2

X1

250

200

150

100

50

0 0 50 100 150 200 250

450X1 + 300X2 = 78300objective function level curve

alternate optimal solutions

Page 24: Management Science

Example of a Redundant ConstraintX2

X1

250

200

150

100

50

0 0 50 100 150 200 250

boundary line of tubing constraint

Feasible Region

boundary line of pump constraint

boundary line of labor constraint

Page 25: Management Science

Example of an Unbounded SolutionX2

X1

1000

800

600

400

200

0 0 200 400 600 800 1000

X1 + X2 = 400

X1 + X2 = 600

objective function

X1 + X2 = 800objective function

-X1 + 2X2 = 400

Page 26: Management Science

Example of InfeasibilityX2

X1

250

200

150

100

50

0 0 50 100 150 200 250

X1 + X2 = 200

X1 + X2 = 150

feasible region for second constraint

feasible region for first constraint