Documente Academic
Documente Profesional
Documente Cultură
September 1, 2016
Notes
LP review:
I Geometric
I Algebraic
Case-Studies:
I An online advertising problem
I Portfolio selection
Notes
Top view
(2)
(4)
x2
(3
(1
(5)
3
Side view
x1
3x1 + 5x2 = 16
3x1 + 5x2 = 14
3x1 + 5x2 = 12
3x1 + 5x2 = 10
3x1 + 5x2 = 8
3x1 + 5x2 = 6
3x1 + 5x2 = 4
3x1 + 5x2 = 2
3x1 + 5x2 = 0
(code on blackboard)
Notes
More formally
minimize
x
subject to
cT x + b
Ax d 0
Gx q = 0
x Rn
Notes
Notes
Decision: how do we allocate the ads to the sections of the web site?
I
Notes
Data available:
I
Notes
Implicit constraints:
I
Notes
Additional constraints:
I
Notes
Main constraints
Variable-type constraints
10
Notes
11
Notes
3 X
5
X
pi,j xi,j
i=1 j=1
12
Notes
5
X
xi,j
j=1
5
X
xi,j vi
for i = 1, 2, 3
j=1
13
Notes
3
X
xi,j
i=1
3
X
xi,j aj
for j = 1, 2, 3, 4, 5
i=1
14
Notes
x2,2
1X
xi,2
5
i=1
CoolTicketss contract requires that at least 25% of its page views are
on the News section
3
1X
x1,3
xi,3
4
i=1
i=1
15
Notes
Anything missing?
Nonnegativity:
xi,j 0
for i = 1, 2, 3 and j = 1, 2, 3, 4, 5
16
Notes
3 X
5
X
pi,j xi,j
(expected # click-throughs)
i=1 j=1
subject to
5
X
xi,j vi
for i = 1, 2, 3
(section capacities)
xi,j aj
for j = 1, 2, 3, 4, 5
(advertiser demand)
j=1
3
X
i=1
3
x2,2
1X
xi,2
5 i=1
(BankBostons contract)
x1,3
3
X
1X
xi,3
4 i=1
(CoolTicketss contract)
(D-Mobiles contract)
i=1
xi,j 0
for i = 1, 2, 3 and
j = 1, 2, 3, 4, 5
(nonnegativity)
17
Notes
Real-world usage
18
Notes
Portfolio selection
Bradley, Hax, Magnanti (1977)
Bond
type
Municipal
Agency
Govt
Govt
Municipal
Quality
rating
2
2
1
1
5
Years to
maturity
9
15
4
3
2
Yield to
maturity
4.3%
2.7
2.5
2.2
4.5
Notes
Portfolio selection
The bank places the following policy limitations on the portfolio
managers actions
1 Government and agency bonds must total at least $4 million
2
20
Notes
21
Notes
22
Notes
Variable-type constraints?
Cannot short bonds, so amount invested is nonnegative
Constraints:
xi 0
for i = 1, 2, 3, 4, 5
23
Notes
xi 10
i=1
24
Notes
So,
Nonlinear!
But can be linearized: xi s are nonnegative, so denominator is
nonnegative
2x1 + 2x2 + x3 + x4 + 5x5 1.4(x1 + x2 + x3 + x4 + x5 )
0.6x1 + 0.6x2 0.4x3 0.4x4 + 3.6x5 0
25
Notes
26
Notes
maximize
subject to
xi 10
(total earnings)
(cash available)
i=1
x2 + x3 + x4 4
(average quality)
(average maturity)
xi 0
(nonnegativity)
for i = 1, 2, 3, 4, 5
27
Notes
Portfolio selection
Solution
Bradley, Hax, Magnanti (1977)
Bond
type
Municipal
Agency
Govt
Govt
Municipal
Quality
rating
2
2
1
1
5
Years to
maturity
9
15
4
3
2
Yield to
maturity(%)
4.3
2.7
2.5
2.2
4.5
Optimal
investment(M$)
2.2
0.0
7.4
0.0
0.4
Notes
What if...
29
Notes
Incorporating borrowing
Define new decision variable
y = amount borrowed, in millions
Limitations on how much can be borrowed
I
xi 10 + y
i=1
30
Notes
Incorporating borrowing
Define new decision variable
y = amount borrowed, in millions
Borrowed money costs 2.75%
I
Nonnegativity
y0
31
Notes
Incorporating borrowing
New model:
maximize
(total earnings)
subject to
y1
(borrowing limit)
5
X
xi 10 + y
(cash available)
i=1
x2 + x3 + x4 4
(average quality)
(average maturity)
xi 0 for i = 1, 2, 3, 4, 5, y 0
(nonnegativity)
32
Notes
Portfolio selection
Solution
Bradley, Hax, Magnanti (1977)
Bond
type
Municipal
Agency
Govt
Govt
Municipal
Quality
rating
2
2
1
1
5
Years to
maturity
9
15
4
3
2
Yield to
maturity(%)
4.3
2.7
2.5
2.2
4.5
Optimal
investment(M$)
2.4
0.0
8.1
0.0
0.5
Notes
Recap
34