CH 2 Linear Programming in Spreadsheets
CH 2 Linear Programming in Spreadsheets
Introduction to Mathematical
Programming
Chapter 2
Modeling and Solving LP
Problems in a Spreadsheet
3-2
Introduction
Solving LP problems graphically is
only possible when there are two
decision variables
Few real-world LP have only two
decision variables
Fortunately, we can now use
spreadsheets to solve LP problems
3-3
Spreadsheet Solvers
The company that makes the Solver in
Excel, Lotus 1-2-3, and Quattro Pro is
Frontline Systems, Inc.
Check out their web site:
http://www.solver.com
LINDO
MPSX
3-4
} profit
} labor
} nonnegativity
3-6
3-7
3-9
A spreadsheet's primary
business purpose is communicating information to
managers.
Reliability -
Auditability -
Modifiability -
3-10
3-11
3-12
Model 2
Model 3
3,000
2,000
900
Hours of wiring/unit
1.5
Hours of harnessing/unit
Cost to Make
$50
$83
$130
Cost to Buy
$61
$97
$145
Number ordered
3-14
3-15
} model 1
M2 + B2 = 2,000
} model 2
M3 + B3 =
} model 3
900
Resource Constraints
2M1 + 1.5M2 + 3M3 <= 10,000 } wiring
1M1 + 2.0M2 + 1M3 <= 5,000 } harnessing
Nonnegativity Conditions
M1, M2, M3, B1, B2, B3 >= 0
3-16
3-17
An Investment Problem:
Retirement Planning Services, Inc.
A client wishes to invest $750,000 in the
following bonds.
Return
Years to
Maturity
Rating
Acme Chemical
8.65%
11
1-Excellent
DynaStar
9.50%
10
3-Good
Eagle Vision
10.00%
4-Fair
Micro Modeling
8.75%
10
1-Excellent
OptiPro
9.25%
3-Good
Sabre Systems
9.00%
13
2-Very Good
Company
3-18
Investment Restrictions
No more than 25% can be invested
in any single company.
At least 50% should be invested in
long-term bonds (maturing in 10+
years).
No more than 35% can be invested
in DynaStar, Eagle Vision, and
OptiPro.
3-19
3-21
Nonnegativity conditions
Xi >= 0 for all i
3-22
3-23
Groves
Mt. Dora
50
Processing
Plants
Capacity
Ocala
200,000
40
35
400,000
30
Eustis
Orlando
22
600,000
55
300,000
20
Clermont
25
Leesburg
225,000
3-24
3-25
3-26
} Ocala
} Orlando
Supply constraints
X14 + X15 + X16 = 275,000 } Mt. Dora
X24 + X25 + X26 = 400,000 } Eustis
X34 + X35 + X36 = 300,000 } Clermont
Nonnegativity conditions
Xij >= 0 for all i and j
3-27
3-28
Feed 1
Feed 2
Feed 3
Feed 4
Corn
30%
5%
20%
10%
Grain
10%
30%
15%
10%
Minerals
20%
20%
20%
30%
$0.25
$0.30
$0.32
$0.15
3-30
3-31
Nonnegativity conditions
X1, X2, X3, X4 >= 0
3-32
the mix
X2 = thousands of pounds of feed 2 to use in
the mix
X3 = thousands of pounds of feed 3 to use in
the mix
X4 = thousands of pounds of feed 4 to use in
the mix
3-34
3-35
Nonnegativity conditions
X1, X2, X3, X4 >= 0
3-36
After:
Largest constraint coefficient is 8
Smallest constraint coefficient is
0.05/8 = 0.00625.
3-37
3-39
Month
$250
$265
$285 $280
$260
4,000
3,500
1,750
Units Demanded
3-40
3-41
3-42
3-46
3-47
Reqd Payments $0
$0
$250
$0
$250
$0
$300
3-49
MIN: A1 + B1 + C1 + D1
3-50
} month 2
} month 4
} month 6
Nonnegativity Conditions
Ai, Bi, Ci, Di >= 0, for all i
3-51
3-52
Risk Management:
The Taco-Viva Sinking Fund - II
Assume the CFO has assigned the following risk ratings to
each investment on a scale from 1 to 10 (10 = max risk)
Investment
Risk Rating
D
6
The CFO wants the
weighted average
risk to not
exceed 5.
3-53
<5
} month 1
<5
} month 2
<5
} month 3
<5
} month 4
<5
} month 5
<5
} month 6
3-54
3-55
3-56
nO
Oij w j
j 1
nI
I v
=
j 1
ij j
Oij w j
j 1
nI
I ij v j
j 1
3-57
3-58
MAX: Oij w j
nO
Oij w j
j 1
j 1
3-59
nI
j 1
j 1
1 nI
nO nI
j 1 j 1
I ij v j 1
I ij v j 1
j 1
Nonnegativity Conditions
wj, vj >= 0, for all j
3-60
Important Point
When using DEA, output variables should be
expressed on a scale where more is better
and input variables should be expressed on a
scale where less is better.
3-61
3-62
End of Chapter 2
3-63