Lecture 4 - DSO 547 Linear Programming - Dasgupta
Lecture 4 - DSO 547 Linear Programming - Dasgupta
Decision Analysis
DSO 547
Prof Dasgupta
Lecture 4
Linear Programming
1
Agenda
LP recap of essentials
We all face decision about how to use
limited resources such as:
Oil in the earth
Land for dumps
Time
Money
Workers
Mathematical Programming...
MP is a field of management science that
finds the optimal, or most efficient, way of
using limited resources to achieve the
objectives of an individual of a business.
a.k.a. Optimization
What is optimization?
Determining
the best values for a set of decisions
subject to a set of constraints
in order to maximize/minimize some objective function
Used to solve problems with:
Competing mechanisms
Resource allocation issues
Implementation/delivery constraints
Applications of Optimization
Characteristics of
Optimization Problems
Decisions
Constraints
Objectives
Optimization
Linear
Non-Linear
Requirements:
Objective formula is linear
All constraints are linear
Requirements:
(none)
Model Classification
Linear optimization or linear programming
Objective and all constraints are linear functions of the
decision variables.
Chapter 9
10
10
Subject to:
11
So what is linear?
Distinct variable
Constant value
In math-speak:
1.
Additivity: each variable is a distinct term in the objective formula
2.
Proportionality contribution from each variable proportional to its magnitude
3.
Divisibility a fractional decision is (at least approximately) meaningful
Example: profit = ($100/unit)*(# sold) ($50/unit)(# made) (fixed cost)
12
12
managerial levers
optimization problem
resource limitations
as a linear function of these variables
13
13
An Example LP Problem
Blue Ridge Hot Tubs produces two types of hot tubs: AquaSpas & Hydro-Luxes.
Pumps
Labor
Tubing
Unit Profit
Aqua-Spa
1
9 hours
12 feet
$350
Hydro-Lux
1
6 hours
16 feet
$300
14
15
16
LP Model for
Blue Ridge Hot Tubs
MAX: 350X1 + 300X2
S.T.: 1X1 + 1X2 <= 200
9X1 + 6X2 <= 1566
12X1 + 16X2 <= 2880
X1 >= 0
X2 >= 0
17
Solving LP Problems:
An Intuitive Approach
Idea: Each Aqua-Spa (X1) generates the highest unit profit ($350), so lets
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!
18
Solving LP Problems:
A Graphical Approach
The constraints of an LP problem defines its
feasible region.
The best point in the feasible region is the
optimal solution to the problem.
For LP problems with 2 variables, it is easy to plot
the feasible region and find the optimal solution.
19
X2
250
(0, 200)
200
150
100
50
(200, 0)
0
0
50
100
150
200
250
X1
X2
(0, 261)
250
200
150
100
50
(174, 0)
0
50
100
150
200
250
X1
X2
250
(0, 180)
200
150
100
Feasible Region
50
(240, 0)
0
0
50
100
150
200
250
X1
X2
250
200
(0, 116.67)
objective function
150
50
0
0
50
100
150
200
250
X1
X2
250
(0, 175)
200
objective function
350X1 + 300X2 = 35000
objective function
350X1 + 300X2 = 52500
150
100
(150, 0)
50
0
0
50
100
150
200
250
X1
X2
250
objective function
350X1 + 300X2 = 35000
200
150
optimal solution
350X1 + 300X2 = 66100
100
objective function
350X1 + 300X2 = 52500
50
0
0
50
100
150
200
250
X1
26
X2
250
200
150
(80, 120)
obj. value = $66,100
(122, 78)
100
50
obj. value = $0
(0, 0)
0
0
50
100
150
200
250
X1
28
Sensitivity Analysis:
Understanding How Things Change
See file Blue Ridge Hot Tub
29
30
X2
250
200
150
100
50
0
0
50
100
150
200
250
X1
X2
250
boundary line of tubing constraint
200
100
Feasible Region
50
0
0
50
100
150
200
250
X1
X2
1000
objective function
X1 + X2 = 600
800
objective function
X1 + X2 = 800
600
400
200
X1 + X2 = 400
0
0
200
400
600
800
1000
X1
Example of Infeasibility
X2
250
200
X1 + X2 = 200
150
100
feasible region for
first constraint
50
X1 + X2 = 150
0
0
50
100
150
200
250
X1
Sailcloth
Glass Fiber
Engines
Sailboat
Unit Reqmt
4
8
0
Motorboat
Unit Reqmt
0
4
1
Inventory Total
400
1000
120
35
35
Maximize
(65, 120)
(0, 120)
1200S + 1000M
Subject to 4S + 0M 400
8S + 4M 1000
0S + 1M 120
S, M 0
[feasible zone]
(100, 0)
Which of these
constraints are
binding?
36
36
Chapter 9
37
37
(Cont.)
38
38
39
40
40
Dahlby Outfitters
41
42
43
Aroma
Rating
Strength
Rating
Cost/lb.
Lbs available
Brazilian
75
15
$0.50
1,500,000
Colombian
60
20
$0.60
1,200,000
Peruvian
85
18
$0.70
2,000,000
44
44
The campaign requires 500,000 viewers among the single males, and 200,000
viewers in each of the other two groups.
Five channels are available, each with its own audience demographics. The table
below shows the number of viewers of each type per $1,000 of advertising for
each of the five channels.
Channel
Channel
Channel
Channel
Channel
1
2
3
4
5
Single
Men
Single
Women
Couples
300
100
0
2000
750
850
900
1200
0
500
1200
2000
800
200
500
That is, $2000 spent on channel 2 would reach 200 Single Men,
1800 Single Women, and 4,000 couples, etc.
What is the
optimization
problem?
45
45
Summary
Linear programming represents the most widely used
optimization technique in practice.
The special features of a linear program are a linear
objective function and linear constraints.
Linearity in the optimization model allows us to apply the
simplex method as a solution procedure, which in turn
guarantees finding a global optimum whenever an
optimum of any kind exists.
Therefore, when we have a choice, we are better off with
a linear formulation of a problem than with a nonlinear
formulation.
Chapter 9
46
46
Summary
While optimization is a powerful technique, we should not
assume that a solution that is optimal for a model is also
optimal for the real world.
Often, the realities of the application will force changes in
the optimal solution determined by the model.
One powerful method for making this translation is to look
for the pattern, or the economic priorities, in the optimal
solution.
These economic priorities are often more valuable to
decision makers than the precise solution to a particular
instance of the model.
Chapter 9
47
47