Docsity

Convex Optimization - Lecture Notes, Lecture notes of Mathematics

Toggle sidebar
bg1
Convex Optimization Page 1
Daniel Guetta
CONVEX OPTIMIZATION
Chapter 2 – Convex Sets
Basics
o A set is affine if it contains any line through two of its point. Alternatively,
111
,, , 1
nnn
qq q
+
Î=++Îxx x x
.
o The affine hull of a set of points is the set of all affine combinations of these
points.
o The affine dimension of a set is the dimension of its affine hull. Its relative
interior is its interior relative to its affine hull
{}
: ( , ) aff relint for some 0CB r r=Î Ç Í >xx
o The most general form of a convex combination is ()x, where ()1Î=x.
o A set is a cone if , 0qqγÎxx
The set
{}
(,):tt£xx is a norm cone associated with a particular norm.
The conic hull of {}
i
x is
{}
11 :
kk
ll ++ ³x0xl.
o A hyperplane is a set of the form
{}
:b⋅=xax . Hyperplane with normal vector
a, offset b from the origin; can be written as
{}
00
:( )0 ^
⋅- = = +xa x x x a
o Given k + 1 affinely independent pints (ie: 0i-vv
linearly independent), the k-
dimensional simplex determined by these points is
{
}
:0, 1
ii i
qq q
+
=³=
åv.
We can describe this as a polyhedron as follows:
Write 10 0
,, k
Béù
-
ëû
-= êú
vvvv and 1,,
k
qq
é
ù
¢=
ê
ú
ë
û
q. All points xÎ can
then be expressed as 0B¢
=+xv q provided 0
¢³q and 1£
¢
⋅1q
B has rank k (by assumptions) and k < n, and so there exists a nn
A´
Î
such that 1
20
AB I
AB AB
é
ùéù
ê
úêú
==
ê
úêú
ê
úêú
ë
ûëû
.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d

Partial preview of the text

Download Convex Optimization - Lecture Notes and more Lecture notes Mathematics in PDF only on Docsity!

C ONVEX O PTIMIZATION

Chapter 2 – Convex Sets

 Basics

o A set is affine if it contains any line through two of its point. Alternatively, x (^) 1 , , x (^) n Î  , q (^) += 1  q 1 x 1 + + qn x n Î. o The affine hull of a set of points is the set of all affine combinations of these points. o The affine dimension of a set is the dimension of its affine hull. Its relative interior is its interior relative to its affine hull

relint  = { x Î C : B ( , ) x r Ç aff Í for some r > 0 }

o The most general form of a convex combination is ( ) x , where ( x Î  ) = 1. o A set  is a cone if x Î , q ³ 0  q x Î

 The set { ( , ) : x t x £ t }is a norm cone associated with a particular norm.

 The conic hull of { x i }is { l 1 x 1 +  + lk x k : l ³ 0 }.

o A hyperplane is a set of the form { x : a ⋅ x = b }. Hyperplane with normal vector

a , offset b from the origin; can be written as { x : a ⋅ ( x - x 0 ) = 0 } = x 0 + a ^

o Given k + 1 affinely independent pints (ie: v i (^) - v 0 linearly independent), the k-

dimensional simplex determined by these points is  = { å qi v i : qi ³ 0, q += 1 }.

We can describe this as a polyhedron as follows:  Write B = éëê^ v 1 (^) - v 0 (^) , , v k - v 0 ùûú and q ¢ = éêë q^1 , , qk ùúû. All points x Î  can then be expressed as x = v (^) 0 + B q ¢ provided q ¢ ³ 0 and 1 q ⋅ ¢£ 1  B has rank k (by assumptions) and k < n , and so there exists a A Î  n^ ´ n such that 1 2 0

AB A B^ I

A B

éê ùú é ùê ú = (^) ê ú =ê ú êë úû ê úë û

 Multiplying the boxed equation by A , we get q ¢ = A 1 (^) x - A 1 v 0 and A 2 (^) x = A 2 v 0. We can therefore express q ¢ ³ 0 and 1 ^ q ¢£ 0 as linear inequalities. Together with A 2 (^) x = A 2 v 0 , they define the polyhedron.

 Operations that preserve convexity

o Intersection (including infinite intersection) – also preserve subspaces, affine sets and convex cones:  Example : The positive semidefinite cone  n^ + can be written as  (^) z ¹ 0 {^ X^ Î^  n^ :^ z^  X^ z ³^0 }. Each set in the intersection is convex (since the defining equations are linear), and so  n^ + is convex.   Example :  = (^) { x Î  m^ : (^) å x (^) i cos( i t ) £ 1 for t Î -[ 3 p^ , 3 p ]} can be written as (^)  t (^) Î -[ p 3 (^) , 3 p ] { X Î  (^) n : - 1 £ (cos , t , cos mt ) ⋅ x £ (^1) }, and so is convex.  o Affine functions : An affine function has the form f ( ) x = A x + b. The image and inverse image of a convex set under such a function is convex.  Example :  1 +  2 = (^) { x + y : x Î 1 , y Î 2 } is the image of  1 ´  2 = (^) {( x 1 (^) , x 2 (^) ) : x 1 Î  1 , x 2 Î 2 } under f^ ( x^1^ ,^ x 2^ )=^ x 1^ + x 2^.   Example : (^) { x : A x £ b , C x = d (^) } is the inverse image of  (^) + ´{0} under f ( ) x = ( b - A x d , - C x ).   Example : (^) { x : A ( ) x = x 1 (^) A 1 +  + x n AnB } is the inverse image of the positive semidefinite cone  n (^) +under f ( ) x = B - A ( ) x.   Example : (^) { x : ( x - x (^) c ) ^ P ( x - x c )£ (^1) }, where P Î  n (^) ++ is the image of a unit Euclidean ball under f ( u ) = P 1/2 u + x c.  o Perspective function : f ( , ) z t = z / t , where t > 0. It normalizes the last component of a vector to 1 and then gets rid of that component. The image of a convex set under the perspective function is convex. o Linear-fractional function : A linear-fractional function is formed by compsing that perspective function with an affine function. They take the form f ( ) x = ( A x + b ) / ( c ⋅ x + d ), with domain (^) { x : c ⋅ x + d > (^0) }.

f ( y ) on one side, divide by t , take limit as t  0. General case consider g t ( ) = f (^) ( t y + (1 - t ) x (^) ) and g ¢( )^ t =  f (^) ( t y + (1 - t ) x (^) ) (^  y - x ). (^)  Apply previous result with y = 1 and x = 0.  Apply inequality with t y + (1 - t ) x and ty^ + (1 - t )^ x. This implies an inequality about g that makes it convex.  o Theorem : ^2 f ( ) x  0 over  convex  f convex over. Proof : f ( ) y = f ( x ) +  f ( x ) (⋅ y - x ) + 12 ( y - x ) ^ éêë^ ^2 f (^) ( e x + ( 1 - e ) y (^) )ùûú( y - x )^ for e Î [0,1]. If ^2 f is positive definite, get FOC for convexity. 

 Convex functions

The following functions are convex Function Parameters Convex/concave… …on domain e^ ax a^ Î^ ^ convex^  xa^ a^ > 1 or 0 < a^ < 1 a^ < 0 concaveconvex^ (0,(0,^ ¥¥)) | x | p p^ > 1^ convex^  log x concave (^) (0, ¥) x log x convex (0, ¥) a ⋅ x + b (ie: any affine function)^ both^  n (ie: any norm) (^) convex (^)  n log (^) ( å exi ) (the log-sum-exp func.)^ convex (^)  n ( x (^) i )1/ n (the geometric mean)^ concave^ (0,^ ¥) n log det X (the log determinant) convex X Î  n ++ å w fi i^ ( ) x^ wi^ > 0^ Same as^ concave/convex f^ i , providing they are all Ways to find convexity: o Directly verify definition o Check the Hessian : for example, for f ( , x y ) = x^2 / y 2 2 3 2 3 f x y ( , ) 2^ y^ xy^^2 y x y 0 y xy^ x y x

éê (^) - ùú (^) é ù êé ùú  = (^) ê (^) - ú = (^) êë - ú êû - ú êë úû (^) êë úû

o Restrict to a line : f is convex if and only if g t ( ) = f t éêë^ x 1 (^) + (1 - t ) x 2 ùúû is convex over [0,1] " x 1 (^) , x (^) 2. For example, f X ( ) = log det X. Take the line X = Z + tV , restricting to values of t for which X  0 , and wlog, assume it contains t = 0. 1/2 1/2 1/2 1/ 1/2 1/

( ) ( ) log det ( ) log det ( ) log det log(1 (^) i )

g t f Z tV Z I tZ VZ Z I tZ VZ Z Z tl

= + = éêë^ + ùúû = éêë^ + ùúû = + (^) å + Where li are the eigenvalues of Z - 1/2^ VZ^ - 1/2^. Taking derivatives of g , we find that the derivative is always < 0. Thus, convexity. o Use the epigraph : Consider f ( , x Y )= xY^ -^1 x. It is convex over  n^ ´ n ++.

epi (^) {( , , ) : 1 , (^0) } ( , , ) : 0, 0 f Y t Y t Y Y t^ Y Y t = - = íìïïï^ éêê^ ùúú üïïïý £ ïïïî (^) êë úû ïïïþ x x x x x  (^) x

(We used Schur Complements). This is a set of LMIs, and therefore convex. o Jensen’s Inequality : f convex  f (^) ( [ x ]) £  éêë^ f ( ) x ùúû, " x s.t. ( x Î dom f ) = 1.

 Operations that preserve convexity

o Non-negative weighed sum. o The perspective function g ( , ) x t = tf ( x / ) t [ t > 0] is convex if f is convex. Example : The perspective of the negative logarithm gives the relative entropy and Kullback-Leibler divergence.  o The pointwise maximum sup (^) y Î  f ( , x y ) is an extended-value convex function, if f ( ,⋅ y ) is convex for each y^ Î^ [note that we do not require joint convexity of f ] This corresponds to intersections of epigraphs. Example : Let f ( x ) be the sum of the r largest elements of x. Then we can write f ( x ) as the maximum of all the possible sums of r elements of x.  Example : Support function s (^)  ( ) x = sup (^) { x ⋅ y : y Î (^) }. Convex.  Example : l max (^) ( X ) = sup (^) { x ^ X x : x £ (^1) }; family of linear functions of X.  Note : Every convex function f :  n  can be written as f ¢( )^ x = sup (^) { g ( ) : x g affine, g ( ) z £ f ( ) z " z }

Example : f ( x )=^12 xQ^ x with Q Î  n ++. Then y ⋅ x -^12 xQ^ x which is bounded above and maximized at y - Q x = 0  x = Q -^1 y , and f *^ ( ) y =^12 yQ^ -^1 y.  Example : Let I (^)  ( ) x =0 if x Î , ¥otherwise. Then the conjugate of this indicator is the support function I *^ ( ) y = sup (^) x Î ( y ⋅ x ) = s  ( ) y.  Example : If f ( ) x = x , then f *( ) y = Indicator f n of (^) { y : y (^) *£ (^1) }. To see why; if y (^) * > 1 , then $ z s.t. y ⋅ z > 1, z £ 1. Take x = t z and let t  ¥. If y * £ 1 , then x ⋅ y £ x y *£ x. Therefore, 0 maximizes x ⋅ y - x maxed at 0.  Example : f ( ) x = log (^) ( (^) å exi ). Differentiating y ⋅ x - f ( ) x and setting to 0, we get yi = ex i^ /å exi and f *^ ( x ) = (^) å yi log yi i f y ³ 0 1 y , ⋅ = 1 and ¥ otherwise [this is valid even if some of the components of y are 0].  Example : Company uses resources r at price p prices produces revenue S ( r ). The maximum profit that can be made from a given price is M ( p ) = sup [ ( ) r S r - p ⋅ r ] = -( S *)(- p ).  o From the definition, we get f ( ) x + f *( ) y ³ x ⋅ y. o If f is differentiable, the maximizer of y ⋅ x - f ( ) x satisfies y =  f ( ) x. Thus, for any z for which y =  f ( ) z , f *^ ( y ) = z ⋅ f ( z ) - f ( z ) o The conjugate of g ( ) x = f A ( x + b ) is g *^ ( ) y = f *( A -^  y^ )- bA^ -  y^. o The conjugate of the sum of functions is the sum of conjugates. o Let f be a proper convex function. A vector g is a subgradient of f at x if f ( ) z ³ f ( ) x + g ⋅ ( x - z )" z Î n. ¶ f ( ) x is the set of all subgradients at x. It is a closed and convex set. If x is in the interior of the domain of f , ¶ f ( ) x is non- empty, and if f is differentiable at x , ¶ f ( ) x ={ f ( )} x.  If f is a proper convex function, then x ⋅ y = f ( ) x + f *( ) yy ζ f ( ) x [if f is closed, these are also equivalent to x Î ¶ f *^ ( ) y. Proof : Follows directly from the definition of f *. 

 Chernoff Bounds & Large Deviations

o Chernoff Bounds – { (^) X ³ t (^) }£ e l^^ (^ X^ - t^^ )^  ( X ³ t ) £ e - lt^ [ e lX^ ] " l ³ 0.

o Define the cumulant generating function f ( ) l = log [ e lX ], and define f (^) + ( ) l = f ( ) l if l ³ 0 and ¥ otherwise. o Making the Chernoff Bound as tight as possible, we get ( X ³ t ) £ inf l (^) ³ 0 e - lt^ ( e lX ) = exp (^) (- sup (^) l ³ 0 [ lt - f ( )] l ) = exp (^) (- f (^) +*[ ] t ) o Similarly, ( X Î ) £ [ e l ⋅^^ X + m^ ] provided l ⋅ z + m ³ 0 " z Î. Then, defining f ( ) l = log [ e l ⋅ X ], we find that { } { } { }

,

( ) inf ( ) : inf s

log up ( ) ( ) inf ( ) ( ) (0)

f f S f f

m m^ m l l

Î

Î £ + - ⋅ £ " Î

z

X z z z

l l l

l ll^ l  

o Example : Let X be multivariate Gaussian: X ~ N (0, I ). We then have f ( ) l = 12 l l ⋅. Consider  = { x : A x £ b }. Now  By LP duality: S (^)  (- l ) = sup (^) z Î( - l ⋅ z ) = inf Au =- l , u ³ 0 b ⋅ u  As such, log ( X Î ) £ inf (^) l b ⋅ u + 12 l ⋅ l s.t. u ³ 0 , Au + l = 0  Eliminating l , we get lo g ( X Î ) £ i fn (^) u ³ 0 b ⋅ u +^12 uAA^  u  Using QP duality, we can write this program as sup (^) l ³ 0 - 12 A -^1 ( l - b )^22.  Intepreting l as a slack variable, this becomes sup A x £ b -^12 x^22  As such, ( X Î  ) £ exp éêë^ - 12 dist(0,  )ùúû.

Chapter 4 – Convex Optimization Problems

 Terminology

min 0 ( ) s.t. 0 1, , ( )

i i

i

f x f x m h x i p

o  is the feasible region of the problem

 Equivalent Problems

o Informal definition of equivalent problems: from the solution to one problem, a solution to the other is readily found, and vice versa.

A convex optimization problem is

0 convex 0 1, , con

min ( vex 1, , afin

s.t. ( ) i e

i i

i m a x b i

f f p

x x   

If f 0 is quasiconvex , the problem is a quasiconvex optimization problem. In either case, the e -suboptimal sets are convex. An optimality condition for x is  f 0 ( ) ( x ⋅ y - x ) ³ 0 " y feasible Geometrically,  f 0 ( ) x is a supporting hyperplane to the feasible set at x. Alternatively, anywhere feasible we try to move from x yields an increase in objective. Proof : For a convex function, f 0 (^) ( ) y ³ f 0 ( ) x +  f 0 ( ) ( x ⋅ y - x ). If the optimality condition

is met, f 0^ ( ) y^^ ³^ f 0 ( ) x " y^. Conversely , suppose $^ y^ s.t.^  f^0 ( ) ( x^ ⋅^ y^ -^ x^ )^ <^0. Then consider z ( ) t = t y + ( 1 - t ) x , t Î[0,1]. This is feasible, but (^) dd t f (^) 0 ( ( )) z t (^) t = 0 =  f 0 ( ) ( x ^ y - x ) < 0. So

close to 0, we can decrease f 0 by moving away from f.  Examples:  For unconstrained problems,  f 0 ( ) x = 0  For problems with A x = b , every solution can be written as y = x + v v , Î( A ) So  f 0 (^) ( ) x ⋅ v ³ 0 " v Î ( A ), but this is a nullspace, so  f 0 (^) ( ) x ⋅ v = 0 " v Î( A ) In other words,  f (^) 0 ( ) x Î  ( A ) ^=( A ), ie: $ n s.t.  f 0 ( ) x + An^ = 0.  For problems with x0 , need  f 0 ( ) x ³ 0 , else  f 0 ( ) ( x ⋅ y - x ) unbounded below. So reduces to  f 0 ( ) x ⋅ x ³ 0. This gives complementary slackness…

Examples of convex optimization problems. o Linear programs (LP)Example (Chebyshev Center) : Consider the problem of finding the largest ball  = (^) { x (^) c (^) + u | u £ r } that lies in a polyhedron. Require that  lies on one side of a ⋅ x £ b is equivalent to requiring: sup (^) u £ r { a ⋅ x c (^) + a ⋅ u (^) }£ ba ⋅ x c + r a £ b   Example : min (^) x max i ( a i (^) ⋅ x + b i (^) )can be linearised using the epigraph.  o Linear-fractional programs

min (^) x e x :⋅ + f > 0 ce^ ⋅⋅^ xx^ ++^ df s.t. x Î = (^) { x : G x £ h , A x = b } This is a quasiconvex program, which can be transformed into min, s.t. 0, 0, 1, 0

z G z A z z z

z £

y y b e y f

c y d y h Proof : Note that z = (^) e x ⋅ 1 +^ f , y = x z is feasible for the transformed problem with the same objective. Similarly, x = y / z is feasible for the original problem, if z ¹ 0. Thus, the original and modified objectives are both > and < each other. If z = 0 and x 0 is feasible for the original problem, then x = x 0 + t y is optimal for the original problem; taking t  ¥ allows us to gets the two objectives arbitrarily close to each other.  o Quadratic programs (QP) min (^) x^12 xP^ x + q ⋅ x + r s.t. x Î = (^) { G x £ h , A x = b } Where P  0.  Example : Distance between polyhedra min x (^) 1 - x 2 (^) 22 s.t. x 1 (^) Î 1 , x 2 Î 2.  Example : Consider an LP minimizing c ⋅ x where ( ) x = x , ov( ) x = S. Then ar( c ⋅ x )= x ^ S x. Can minimize c ⋅ x + g x S^ x.   Example (portfolio problems) : p (^) i is relative price change of asset i (change/start) and xi is amount of asset bought. Mean return is p ⋅ x , variance is x S^ x. Minimize variance subject to given mean return. Budget constraint 1 x ⋅ = 1. Short sales : Can set x = x long^ - x short and require 1 x ⋅ sho^ rt^ £ h 1 x ⋅ l ngo. Transaction costs : Can set x = x init^ + u buy^ - u sell and constraint (^) ( 1 - f sell^ ) 1 u ⋅ sell^ = (^) ( 1 + f buy^ ) 1 u ⋅ buy. 

o Quadratically constrained quadratic programs (QCQP) min (^) x^12 x ^ P 0 (^) x + q (^) 0 ⋅ x + r 0 s.t. 12 xP^ i x + q ⋅ x + r i £ 0 x , Î Where the Pi are positive definite. In this case, we are maximizing a quadratic function over an intersection of ellipses and polyhedra. o Second-order cone program (SOCP)

min s.t. 2 ,1, , , x f^  x^^ Ai^ x^ + b^ i £^ c^ ⋅^ x^ +^ d^ i^ =^  m x Î

quadratic – Schur complements allowed us to make it linear. [Similarly, we can bound the lowest eigenvalue: l min (^) ( A ) ³ sAsI ]   Example (portfolio optimization) : Say we know Lij £ S ij £ Uij. Given a portfolio x , can maximize x S^ x s.t. that constraint and S  0 to get worst-case variance. We can add additional convex constraints  Known portfolio variances : u k  S u k = sk^2  Estimation error : If we estimate S = Sˆ but within an ellipsoidal confidence interval, we have C^ ( S - S £ˆ)^ a , where C^ ( )⋅ is some positive definite quadratic form.  Factor models : Say p = Fz + d , where z are random factors and d represents additional randomness. We then have S = F Sfactor F ^ + D , and we can constraint each individually.  Correlation coefficients : rij = (^) S SS iiij jj. In a case where we know the volatilities exactly, constraints on rij are linear…   Example (expressing QCQP and SOCP as SDP) : Using Schur complements, we can make these non-linear constraints linear 1/ (^12 0) ( 1/2 ) 0

I P

P P

éê ùú £  ê (^) - ⋅ - ú ê ú

ë û

x x x g x h x g x h

F I^ F

F

éê (^) ⋅ + + ùú

  • £ ⋅ +  ê (^) + ⋅ + ú êë úû

x q g x h g^ x^ h^ x^ q x q ^ g x h

 Geometric Programming

o A function f ( ) x = (^) å Kk =^ 1 c xk 1 a^1^^ k^ x (^) 2 a^2 k^  x (^) nank , with ck > 0 and ai Î  is a posynomial (closed under +, ´). K = 1 gives a monomial (closed under ´ ¸, ).  Posynomial ´ Monomial =Posynomial  Posynomial ¸ Monomial =Posynomial o A geometric program is of the form min f 0 ( ) s.t. x fi ( x ) £ 1 , hi ( ) x = 1, x > 0

f are posynomials, h are monomials. Can deal with f ( x )£ g ( x ) and h ( ) x = g ( ) x by dividing. Can maximize by minimizing inverse (also posynomial). o Example : max^ x x 1^ 2 x^ 3 s.t.^ x x 1 2^ +^ x x 2^ 3 +^ x x 1 3^ £ c / 2, x^ >^0 [min volume box] can be written as min x (^) 1 - 1 x 2 - 1 x 3 - 1 s.t. (2 x x 1 (^) 2 / c ) + (2 x x 2 (^) 3 / c ) + (2 x x 1 (^) 3 / c ) £1, x > 0.  o To make convex, substitute y (^) i = log xixi = eyi. Feed in and then take logs of objective and constraints. Result is convex.

 Existence of Solutions

o Theorem ( Weierstrass ): Consider the problem min f ( ) s.t. x x Î  Ì n. Then, if ^ is non-empty,^ f^ is lower semicontinuous over^ ^ and either (1)^ ^ is compact (2)  is closed, and f is coercive (3) There exists a scalar g such that the level set ( ) g = (^) { x Î  : f ( ) x £ g }is nonempty and compact, then the set of optimal minimizing solutions of f is non-empty and compact. Proof : Let f * be the optimal objective, and g kf *. Then the set of optimal solutions is (^)  k^ ¥ (^) = 1 ( gk ). If (3) is true, this is an intersection of nested non-empty compact sets – it is therefore non-empty and compact. 1  3 For g > f *, ( ) g must be non-empty, and by semi-continuity of f , it is closed. Since  is compact, this closed subset is also compact. 2  3 ( ) g = f -^1 (( -¥ , g ]Ç (^) ) since  is closed, the intersection is closed and so is the inverse by semi-continuity of f. Since f is coercive, ( ) g is also bounded. Thus, ( ) g is compact.  o Example : Consider min 12 xP^ x - b ⋅ x x , Î. If l^ is the smallest eigenvalue of P , then we can say that 12 x^  P^^ x^ -^ b^ ⋅^ x^ ³^12 l x^^2 - b^ x. This is coercive if l > 0. Thus, a solution exists if P  0. 

Chapter 5 – Duality

 The Lagrangian Function

o min f 0 ( ) s.t. x f x ( ) £ 0 h , ( x )= 0. We let ( , x l n , ) = f 0 ( ) x + l ⋅ f x ( ) + n ⋅ h x ( ) be the Lagrangian, and g ( l n , ) = inf x (^) ( , x l n , ). This clearly underestimates the optimal value, because everywhere in the feasible region, ( , x l n , ) £ f 0 ( ) x.

o Example : QCQP: min 12 xP^0 (^) x + q (^) 0 ⋅ x + r 0 s.t. 12 x ^ Pi x + q (^) i ⋅ x + r i £ 0 , where P 0 (^)  0, Pi  0. The Lagrangian is

( ) ( ) ( )

( ) ( ) ( ) ( , )^120 0

P P (^) i Pi i i i

l l = + (^) å l + + (^) å l ⋅ + + ⋅

q r x x x q q x r r

l l l

^ ^ ^ 

l ³ 0 and so P ( l )  0. Differentiating and setting to 0, we find the dual problem is max g ( l ) = - 12 q ( l ) P(^ l ) - 1 q ( l ) + r ( l ) s.t. l0. p *^ = d * if we have strict feasibility.  o Example : Min entropy (above) has dual max (^) l ³0, n ( - l ⋅ b - n - e - n -^1 å e - (^ Al ) i ). Optimizing over n , we get max (^) l ³ 0 ( - l ⋅ b - (^) å e - (^ Al ) i + (^1) ) , a GP. 

 Geometric Interpretation/Proof of Strong Duality

o Consider  = (^) {( ( ), f x h x ( ), f 0 ( ) x }. Then p *^ = inf (^) { t : ( , u v , ) t Î , u £ 0 , v = (^0) }, and g ( l n , ) = inf (^) {( l n , ,1) ( , ⋅ u v , ) : ( , t u v , ) t Î (^) }. To assuming the infemum exists, the inequality ( l n , ,1) ( ⋅ u v , , t ) ³ g ( l , n ) "( u , v , t )Î defines a supporting hyperplane. Looking at the expression for p * and g ( , l n ), it is clear that p *^ ³ g ( l n , )when l ³ 0 , because it involves more constraints. o Let  =  + (^) (  m (^) + ,{ }, 0 +) be an “epigraph” of  which extends it “up” in the objective & inequalities. This then allows us to write p^ *^ =^ inf^ { t^ : ( , 0 0^ , )^ t Î}^ , and, for l ³ 0 , g ( l n , ) = inf (^) {( l n , ,1) ( , ⋅ u v , ) : ( , t u v , ) t Î}. Once again, this defines a supporting hyperplane to  , and the dual problem involves finding the supporting hyperplane with least t. Since ( , 0 0 , p *) ÎBd( ) , we have p *^ = ( , 0 0 , p *) (⋅ l , n ,1) ³ g ( l n , ), which is weak duality. If there is a non-vertical supporting hyperplane at ( , 0 0 , p *), then strong duality holds. o To prove strong duality, let  = (^) {( , 0 0 , ) : s s < p *}. This set does not intersect with . Create a separating hyperplane ( l n  , , m ) so that  ( l n  , ,^ m ) ( ⋅ u v , , t ) £ a "( , u v , t )Î  mt £ mp *£ a  ( l n  , , m ) ( ⋅ u , v , t ) ³ a ³ mp * "( , u v , ) t Î   l ³ 0 , m ³ 0. Otherwise, the LHS would be unbounded below as we went up the epigraph.

Divide first equation by m and substitute in the second to find the Lagrangian is

p *. If m = 0 ; second equation above becomes ( l n  , ) (^ ⋅ u v , ) ³ 0 "( , u v , ) t Î. Applying this to the strictly feasible point with v = 0 and u < 0 , we find that l ^ = 0 , and so n ^ ¹ 0 [supporting hyperplane cannot be 0 vector], so n  ⋅ v ³ 0. But the problem is convex, so v = A x - b. But since we have an interior point with n ^ ⋅ v = 0 , there are points around that interior point with n ^ ⋅^ v <^0. Thus, unless n  A^ = 0 [contradiction if A full rank] we have a contradiction. Geometrically, this is equivalent to saying the hyperplane must pass to the left of our interior point. 

 Interpretations of Duality

o Multicriterion optimization : Consider min (^) ( f ( ), x f 0 ( ) x (^) ). One way to obtain every pareto-optimal point is to minimize l ^ ⋅ F. Since we can re-scale this without changing the minimizers, f 0 (^) ( ) x + l ⋅ F is an example of such a program, which is precisely the Lagrangian. o Shadow prices : The dual problem is the lowest cost given we can buy some “constraint violation” and be rewarded when we don’t violate them. Clearly, this is lower than our lowest cost without these amenities. When strong duality holds, there is a price that makes us indifferent. This is the “value” of the constraints.

 Optimality conditions

o Complementary Slackness : Consider that, if x * and ( l *^ , n *) are primal and dual optimal points with zero duality gap f 0 (^) ( x *^ ) = g ( l *^ , n *) = inf x (^) ( , x l *^ , n *^ ) £ ( x *^ , l *^ , n *^ ) £ f 0 ( x *) As such, every inequality in this line must be an equality. Now, recall that ( x *^ , l *^ , n *^ ) = f 0 ( x *^ ) + l *^ ⋅ f x ( *^ ) + n *^ ⋅ g x ( *). This implies that at optimality l *^ ⋅ f ( x *) = 0. Since each term is non-positive, we must have li *^ fi *^ ( x *) = 0. Only active constraints at the optimum can have non-zero multipliers. o KKT Conditions : Based on all the above, we find that for any problem for which strong duality holds, any primal-dual optimal pair must satisfy

p *^ ( , 0 0 ) = g ( l *^ , n *^ ) £ f 0 ( ) x + l *^ ⋅ f x ( ) + n *^ ⋅ h x ( ) £ f 0 ( ) x + l *^ ⋅ u + n *⋅ v o Local Result : If p differentiable & SD,  (^) u p *^ ( , 0 0 ) = - l *^ and  (^) v p *^ ( , 0 0 )= - n * *(0, 0) (^) lim (^) t 0 *^ ( (^) i , 0) * * [By global inequality] i

p p^ t^ p ut l

e

Taking t negative gives the opposite inequality.

 Examples

o Consider min log (^) ( å exp( a i ⋅ x + bi )). The dual isn’t particularly interesting. But the dual of min log (^) ( (^) å exp( y (^) i )) s.t. A x + b = y is entropy maximization. The same is true of A x - b.  o This can be done with constraints; f ( a ⋅ x + b )can be transformed to f y ( ). 

 Theorems of the Alternative

o Weak alternatives :  Non-strict Inequalities : Consider f x ( ) £ 0 h x , ( ) = 0 has sol n  min 0 s.t. = 0 (and not ¥) The dual function has the property g ( a l , a n ) = ag ( l n , )and is g ( l n , ) = inf (^) x éêë^ l ⋅ f x ( ) + n ⋅ h x ( )ùúû Because of the homogeneity, if there is any g ( l n , ) > 0 with l ³ 0 , d *= ¥. If that’s infeasible, d *^ = 0. Thus, since d *£ p *, we find that g ( l n , ) > 0, l ³ 0 feasi ble f ( x ) £ 0, h x ( ) =0 infeasible In fact, at most one of the two is feasible – weak alternatives.  Strict inequalities : If the inequality f ( ) x < 0 is strict, the alternative is g ( l n , ) ³ 0, l > 0 feasi ble f ( x ) < 0, h x ( ) =0 infeasible We can show this directly from the definition of the dual function, if we assume there exists f ( ) x ^ < 0 , then $ l ^ > 0, n s.t. g ( l n , ) < 0. o Strong alternatives – when fi are convex and h (^) i are affine, we might be able to prove strong alternatives ; that exactly one of them must hold  Strict inequalities : First, consider f x ( ) < 0 , A x = b feasible  p *^ = (^) ( min s s.t. fi ( ) x £ s , A x = b )< 0

The dual function is g ( l n , ) = n ⋅ ( A x - b ) + min (^) s éêë(1^ - 1 ⋅ l ) s ùúû. This is only finite if 1 ⋅ l = 1. So the dual is d *^ = (^) ( max g ( l n , ) s.t. 1 ⋅ l = 1, l ³ (^0) ). Provided strict feasibility holds, strong duality holds and p *^ = d *. So if the original system is infeasible ( p *^ > 0), then there exists a g ( l n , ) ³ 0 , l > 0. Similarly, if there exists such a ( , l n ) , then p *^ > 0… f ( x )< 0 , A x = b (^) infeasiblefeasible^  g ( l n , )³ 0, l > 0 infeasiblefeasible  Non-strict inequalities : Consider f ( ) x £ 0 , A x = b the program is the same as above, but we need the optimum to be attained so that p *^ > 0 if the system is infeasible. In that case, l ³ 0 , ( , g l n ) > 0 is clearly feasible. o Example : Consider A x £ b. Then g ( l ) = - l ⋅ b if Al^ = 0 and -¥ o.w.The strong system of alternative inequalities is l ³ 0 , Al^ = 0, l ⋅ b < 0.  o Example : Take m ellipsoids  i (^) = (^) { x : fi ( x ) = xAi x + 2 b i^ ⋅ x + c i^ £ 0 ,} Ai Î n ++. We ask if the intersection has a non-empty interior. This is equivalent to solving the system f ( ) x < 0. Here, g ( l ) = inf x (^) x ^ ( (^) å li Ai ) x + (^2) ( (^) å li b i^ ) ⋅ x +( (^) å li c i ). Differentiating, setting to 0 and using obvious notation, g ( l ) = - b (^) l ^ Al^ -^1 b l (^) + c l. As such, the alternative system is l > 0 , - b (^) lA^ l^ -^1 b l (^) + c l ³ 0. To explain geometrically, consider that the ellipsoid with f ( ) x = l ⋅ f x ( ) contains the intersection of all the ellipsoids above, because if f ( ) x £ 0 , then clearly a positive linear combination of them is also < 0. This ellipsoid is empty if and only if the alternative is satisfied [prove by finding inf f ( ) x ].  o Example : Farkas’ Lemma: the following two systems are strong alternatives A x = b , x ³ 0 Ay ³0, y b ⋅ < 0 o ………………..

 Duality & Decentralization

o Consider min^ å^ ki =^ 1 fi ( x^ i^^ ) s.t.^ å ki (^) = 1 g^ i^ (^ x^ i )^ £^ 0 x , i Î W i [note: the vector g represents a number of inequality constraints]. The Lagrangian is ( , ) 1 ( ) 1 ( ) k (^) i k i ix m = (^) å (^) i = fi x + m ⋅å i = g x. The dual is ( ) 1 ( ) s.t. k g m = (^) å (^) i = gi m m ³ 0 where gi ( m ) = inf (^) x i ÎW ifi ( x i^ ) + m ⋅ g i^ ( x i )