Professional Documents
Culture Documents
Linear Programming: Chapter 1: Robert J. Vanderbei
Linear Programming: Chapter 1: Robert J. Vanderbei
Operations Research and Financial Engineering Princeton University Princeton, NJ 08544 http://www.princeton.edu/rvdb
Resource Allocation
maximize subject to c1x1 + c2x2 + + cnxn a11x1 + a12x2 + + a1nxn a21x1 + a22x2 + + a2nxn . . . am1x1 + am2x2 + + amnxn x1 , x 2 , . . . , x n
b1 b2 bm 0,
where
cj = prot per unit of product j produced bi = units of raw material i on hand aij = units of raw material i required to produce one unit of product j.
where
cj li ui aij
= = = =
cost per unit of food j minimum daily allowance of nutrient i maximum daily allowance of nutrient i units of nutrient i contained in one unit of food j.
Airy Disk and Diraction Rings A conventional telescope has a circular openning as depicted by the left side of the gure. Visually, a star then looks like a small disk with rings around it, as depicted on the right.
Heres the same Airy disk from the previous slide plotted using a logarithmic brightness scale with 1011 = 110dB set to black:
The problem is to nd an aperture mask, i.e. a pupil plane mask, that yields a 100 dB null somewhere near the rst diraction ring. A hard problem! Such a null would appear almost black in this log-scaled image.
Electric Field
Consider tinting the front opening of the telescope using a nonuniform tint given by A(r).
In such a situation, the image plane electric eld of a star is a rotationally symmetric real function E ():
D/2
E () = 2
0
A(r)J0(2r)rdr
The intensity of the light at radius from the center of the image plane is given by the square of the electric eld.
Maximizing Throughput
We maximize the area under A(r) (make the tinting as bright as possible) subject to very strict contrast constraints:
D/2
maximize
0
A(r)rdr
subject to 105E (0) E () 105E (0), for min max 0 A (r ) 1 , for 0 r D/2
The rst constraint guarantees 1010 light intensity throughout a desired annulus of the focal plane, and the remaining constraint ensures that the tinting is really a tinting.
0.45
-20
0.4
-40
0.35
0.3
-60
0.25
-80
0.2
-100
0.15
-120
0.1
0.05
-140
0.05
0.1
0.15
0.2
0.25
0.3
0.35
0.4
0.45
0.5
-160 -20
-15
-10
-5
10
15
20
FIR Filter DesignContinued A nite impulse response (FIR) lter takes as input a digital signal and convolves this signal with a nite set of xed numbers h0, . . . , hn to produce a ltered output signal:
n
yk =
i=n
h|i|uki.
Sparing the details, the output power at frequency is given by |H ( )|2 where H ( ) =
k =n n n
h|k|e
2ik
= h(0) + 2
k =1
hk cos(2k ),
Similarly, the mean absolute deviation from a at frequency response over a frequency range, say L [0, 1], is given by 1 |L| |H ( ) 1| d
L
minimize
0
|Hw ( ) + Hm( ) + Ht( ) 1| d Hw ( ) , H m ( ) , Ht( ) , W = [.2, .8] M = [.4, .6] [.9, .1] T = [.7, .3]
subject to
where
Hi ( ) = hi k
hi 0
+2
k =1
hi k cos(2k ),
i = W, M, T
minimize
0
t( )d [0, 1] W M T
Specic Example
Demo:
orig-clip
woofer
midrange
tweeter
reassembled
Ref: J.O. Coleman, U.S. Naval Research Laboratory, CISS98 paper available: engr.umbc.edu/jec/pubs/abstracts/ciss98.html
Portfolio Optimization
Markowitz Shares the 1990 Nobel Prize
Press Release - The Sveriges Riksbank (Bank of Sweden) Prize in Economic Sciences in Memory of Alfred Nobel
Historical Data
Year US 3-Month T-Bills 1.075 1.084 1.061 1.052 1.055 1.077 1.109 1.127 1.156 1.117 1.092 1.103 1.080 1.063 1.061 1.071 1.087 1.080 1.057 1.036 1.031 1.045 US Gov. Long Bonds 0.942 1.020 1.056 1.175 1.002 0.982 0.978 0.947 1.003 1.465 0.985 1.159 1.366 1.309 0.925 1.086 1.212 1.054 1.193 1.079 1.217 0.889 S&P 500 Wilshire 5000 NASDAQ Composite Lehman Bros. Corp. Bonds 1.023 1.002 1.123 1.156 1.030 1.012 1.023 1.031 1.073 1.311 1.080 1.150 1.213 1.156 1.023 1.076 1.142 1.083 1.161 1.076 1.110 0.965 EAFE Gold
1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994
0.852 0.735 1.371 1.236 0.926 1.064 1.184 1.323 0.949 1.215 1.224 1.061 1.316 1.186 1.052 1.165 1.316 0.968 1.304 1.076 1.100 1.012
0.815 0.716 1.385 1.266 0.974 1.093 1.256 1.337 0.963 1.187 1.235 1.030 1.326 1.161 1.023 1.179 1.292 0.938 1.342 1.090 1.113 0.999
0.698 0.662 1.318 1.280 1.093 1.146 1.307 1.367 0.990 1.213 1.217 0.903 1.333 1.086 0.959 1.165 1.204 0.830 1.594 1.174 1.162 0.968
0.851 0.768 1.354 1.025 1.181 1.326 1.048 1.226 0.977 0.981 1.237 1.074 1.562 1.694 1.246 1.283 1.105 0.766 1.121 0.878 1.326 1.078
1.677 1.722 0.760 0.960 1.200 1.295 2.212 1.296 0.688 1.084 0.872 0.825 1.006 1.216 1.244 0.861 0.977 0.922 0.958 0.926 1.146 0.990
R j (t ).
t=1
RiskMarkowitz dened risk as the variability of the returns as measured by the historical variances: 1 riskj = T
T
Rj (t) rewardj
t=1
However, to get a linear programming problem (and for other reasons) we use the sum of the absolute values instead of the sum of the squares: 1 riskj = T
T
Rj (t) rewardj .
t=1
Hedging
Correlation: up years for A are down years for B and vice versa.
Portfolios
xj Rj (t)
t=1
1 R(t) = T
xj Rj (t)
t=1 j
Portfolios Risk:
1 risk(x) = T 1 = T = 1 T
|R(t) reward(x)|
t=1 T
t=1 T
1 xj Rj (t) T xj Rj (t)
xj Rj (s)
s=1 j T
Rj (s)
t=1 T
1 T
s=1
1 = T
A Markowitz-Type Model Decision Variables: the fractions xj . Objective: maximize return, minimize risk. Fundamental Lesson: cant simultaneously optimize two objectives. Compromise: set an upper bound for risk and maximize reward subject to this bound constraint: Parameter is called risk aversion parameter. Large value for puts emphasis on reward maximization. Small value for puts emphasis on risk minimization. Constraints: 1 T
T
xj = 1
j
xj 0
for all j
Optimization Problem
maximize
1 T 1 T
xj Rj (t)
t=1 T j
subject to
xj = 1
j
xj 0
for all j
Easy to convert...
maximize
1 T
xj Rj (t)
t=1 j
subject to yt
j
for all t
yt
t=1
xj = 1
j
xj 0
for all j
Ecient Frontier
Varying risk bound produces the so-called ecient frontier. Portfolios on the ecient frontier are reasonable. Portfolios not on the ecient frontier can be strictly improved.
US 3-Month T-Bills Lehman NASDAQ Bros. Comp. Corp. Bonds Wilshire 5000 Gold EAFE Reward Risk
0.017 0.191 0.119 0.321 0.407 0.355 0.180 0.260 0.144 0.041
Ecient Frontier
Gold
EAFE
Long Bonds
S&P 500
Corp. Bonds
T-Bills