Docsity

Convex Optimization Problems - Lecture Notes | CMPS 290, Study notes of Computer Graphics

Toggle sidebar
bg1
Convex Optimization — Boyd & Vandenberghe
4. Convex optimization problems
•optimization problem in standard form
•convex optimization problems
•quasiconvex optimization
•linear optimization
•quadratic optimization
•geometric programming
•generalized inequality constraints
•semidefinite programming
•vector optimization
4–1
Optimization problem in standard form
minimize f0(x)
subject to fi(x)≤0, i = 1, . . . , m
hi(x) = 0, i = 1, . . . , p
•x∈Rnis the optimization variable
•f0:Rn→Ris the objective or cost function
•fi:Rn→R,i= 1, . . . , m, are the inequality constraint functions
•hi:Rn→Rare the equality constraint functions
optimal value:
p?= inf{f0(x)|fi(x)≤0, i = 1, . . . , m, hi(x) = 0, i = 1,...,p}
•p?=∞if problem is infeasible (no xsatisfies the constraints)
•p?=−∞ if problem is unbounded below
Convex optimization problems 4–2
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download Convex Optimization Problems - Lecture Notes | CMPS 290 and more Study notes Computer Graphics in PDF only on Docsity!

Convex Optimization — Boyd & Vandenberghe

4. Convex optimization problems

  • optimization problem in standard form
  • convex optimization problems
  • quasiconvex optimization
  • linear optimization
  • quadratic optimization
  • geometric programming
  • generalized inequality constraints
  • semidefinite programming
  • vector optimization

4–

Optimization problem in standard form

minimize f 0 (x) subject to fi(x) ≤ 0 , i = 1,... , m hi(x) = 0, i = 1,... , p

  • x ∈ Rn^ is the optimization variable
  • f 0 : Rn^ → R is the objective or cost function
  • fi : Rn^ → R, i = 1,... , m, are the inequality constraint functions
  • hi : Rn^ → R are the equality constraint functions

optimal value:

p?^ = inf{f 0 (x) | fi(x) ≤ 0 , i = 1,... , m, hi(x) = 0, i = 1,... , p}

  • p?^ = ∞ if problem is infeasible (no x satisfies the constraints)
  • p?^ = −∞ if problem is unbounded below

Optimal and locally optimal points

x is feasible if x ∈ dom f 0 and it satisfies the constraints

a feasible x is optimal if f 0 (x) = p?; Xopt is the set of optimal points

x is locally optimal if there is an R > 0 such that x is optimal for

minimize (over z) f 0 (z) subject to fi(z) ≤ 0 , i = 1,... , m, hi(z) = 0, i = 1,... , p ‖z − x‖ 2 ≤ R

examples (with n = 1, m = p = 0)

  • f 0 (x) = 1/x, dom f 0 = R++: p?^ = 0, no optimal point
  • f 0 (x) = − log x, dom f 0 = R++: p?^ = −∞
  • f 0 (x) = x log x, dom f 0 = R++: p?^ = − 1 /e, x = 1/e is optimal
  • f 0 (x) = x^3 − 3 x, p?^ = −∞, local optimum at x = 1

Convex optimization problems 4–

Implicit constraints

the standard form optimization problem has an implicit constraint

x ∈ D =

⋂^ m

i=

dom fi ∩

⋂^ p

i=

dom hi,

  • we call D the domain of the problem
  • the constraints fi(x) ≤ 0 , hi(x) = 0 are the explicit constraints
  • a problem is unconstrained if it has no explicit constraints (m = p = 0)

example: minimize f 0 (x) = −

∑k i=1 log(bi^ −^ a

T i x)

is an unconstrained problem with implicit constraints aTi x < bi

example

minimize f 0 (x) = x^21 + x^22 subject to f 1 (x) = x 1 /(1 + x^22 ) ≤ 0 h 1 (x) = (x 1 + x 2 )^2 = 0

  • f 0 is convex; feasible set {(x 1 , x 2 ) | x 1 = −x 2 ≤ 0 } is convex
  • not a convex problem (according to our definition): f 1 is not convex, h 1 is not affine
  • equivalent (but not identical) to the convex problem

minimize x^21 + x^22 subject to x 1 ≤ 0 x 1 + x 2 = 0

Convex optimization problems 4–

Local and global optima

any locally optimal point of a convex problem is (globally) optimal

proof: suppose x is locally optimal and y is optimal with f 0 (y) < f 0 (x)

x locally optimal means there is an R > 0 such that

z feasible, ‖z − x‖ 2 ≤ R =⇒ f 0 (z) ≥ f 0 (x)

consider z = θy + (1 − θ)x with θ = R/(2‖y − x‖ 2 )

  • ‖y − x‖ 2 > R, so 0 < θ < 1 / 2
  • z is a convex combination of two feasible points, hence also feasible
  • ‖z − x‖ 2 = R/ 2 and

f 0 (z) ≤ θf 0 (x) + (1 − θ)f 0 (y) < f 0 (x)

which contradicts our assumption that x is locally optimal

Optimality criterion for differentiable f 0

x is optimal if and only if it is feasible and

∇f 0 (x)T^ (y − x) ≥ 0 for all feasible y

PSfrag replacements

−∇f 0 (x) X x

if nonzero, ∇f 0 (x) defines a supporting hyperplane to feasible set X at x

Convex optimization problems 4–

  • unconstrained problem: x is optimal if and only if

x ∈ dom f 0 , ∇f 0 (x) = 0

  • equality constrained problem

minimize f 0 (x) subject to Ax = b

x is optimal if and only if there exists a ν such that

x ∈ dom f 0 , Ax = b, ∇f 0 (x) + AT^ ν = 0

  • minimization over nonnegative orthant

minimize f 0 (x) subject to x ∫ 0

x is optimal if and only if

x ∈ dom f 0 , x ∫ 0 ,

∇f 0 (x)i ≥ 0 xi = 0 ∇f 0 (x)i = 0 xi > 0

  • epigraph form: standard form convex problem is equivalent to

minimize (over x, t) t subject to f 0 (x) − t ≤ 0 fi(x) ≤ 0 , i = 1,... , m Ax = b

  • minimizing over some variables

minimize f 0 (x 1 , x 2 ) subject to fi(x 1 ) ≤ 0 , i = 1,... , m

is equivalent to

minimize f˜ 0 (x 1 ) subject to fi(x 1 ) ≤ 0 , i = 1,... , m

where f˜ 0 (x 1 ) = infx 2 f 0 (x 1 , x 2 )

Convex optimization problems 4–

Quasiconvex optimization

minimize f 0 (x) subject to fi(x) ≤ 0 , i = 1,... , m Ax = b

with f 0 : Rn^ → R quasiconvex, f 1 ,... , fm convex

can have locally optimal points that are not (globally) optimal

PSfrag replacements

(x, f 0 (x))

convex representation of sublevel sets of f 0

if f 0 is quasiconvex, there exists a family of functions φt such that:

  • φt(x) is convex in x for fixed t
  • t-sublevel set of f 0 is 0 -sublevel set of φt, i.e.,

f 0 (x) ≤ t ⇐⇒ φt(x) ≤ 0

example

f 0 (x) =

p(x) q(x)

with p convex, q concave, and p(x) ≥ 0 , q(x) > 0 on dom f 0

can take φt(x) = p(x) − tq(x):

  • for t ≥ 0 , φt convex in x
  • p(x)/q(x) ≤ t if and only if φt(x) ≤ 0

Convex optimization problems 4–

quasiconvex optimization via convex feasibility problems

φt(x) ≤ 0 , fi(x) ≤ 0 , i = 1,... , m, Ax = b (1)

  • for fixed t, a convex feasibility problem in x
  • if feasible, we can conclude that t ≥ p?; if infeasible, t ≤ p?

Bisection method for quasiconvex optimization

given l ≤ p?, u ≥ p?, tolerance ≤ > 0. repeat

  1. t := (l + u)/ 2.
  2. Solve the convex feasibility problem (1).
  3. if (1) is feasible, u := t; else l := t. until u − l ≤ ≤.

requires exactly dlog 2 ((u − l)/≤)e iterations (where u, l are initial values)

Chebyshev center of a polyhedron

Chebyshev center of

P = {x | aTi x ≤ bi, i = 1,... , m}

is center of largest inscribed ball

B = {xc + u | ‖u‖ 2 ≤ r}

PSfrag replacements

xxchebcheb

  • aTi x ≤ bi for all x ∈ B if and only if

sup{aTi (xc + u) | ‖u‖ 2 ≤ r} = aTi xc + r‖ai‖ 2 ≤ bi

  • hence, xc, r can be determined by solving the LP

maximize r subject to aTi xc + r‖ai‖ 2 ≤ bi, i = 1,... , m

Convex optimization problems 4–

(Generalized) linear-fractional program

minimize f 0 (x) subject to Gx π h Ax = b

linear-fractional program

f 0 (x) =

cT^ x + d eT^ x + f

, dom f 0 (x) = {x | eT^ x + f > 0 }

  • a quasiconvex optimization problem; can be solved by bisection
  • also equivalent to the LP (variables y, z)

minimize cT^ y + dz subject to Gy π hz Ay = bz eT^ y + f z = 1 z ≥ 0

generalized linear-fractional program

f 0 (x) = max i=1,...,r

cTi x + di eTi x + fi

, dom f 0 (x) = {x | eTi x+fi > 0 , i = 1,... , r}

a quasiconvex optimization problem; can be solved by bisection

example: Von Neumann model of a growing economy

maximize (over x, x+) mini=1,...,n x+ i /xi subject to x+^ ∫ 0 , Bx+^ π Ax

  • x, x+^ ∈ Rn: activity levels of n sectors, in current and next period
  • (Ax)i, (Bx+)i: produced, resp. consumed, amounts of good i
  • x+ i /xi: growth rate of sector i

allocate activity to maximize growth rate of slowest growing sector

Convex optimization problems 4–

Quadratic program (QP)

minimize (1/2)xT^ P x + qT^ x + r subject to Gx π h Ax = b

  • P ∈ Sn +, so objective is convex quadratic
  • minimize a convex quadratic function over a polyhedron

PSfrag replacements

P

x?

−∇f 0 (x?)

Second-order cone programming

minimize f T^ x subject to ‖Aix + bi‖ 2 ≤ cTi x + di, i = 1,... , m F x = g

(Ai ∈ Rni×n, F ∈ Rp×n)

  • inequalities are called second-order cone (SOC) constraints:

(Aix + bi, cTi x + di) ∈ second-order cone in Rni+

  • for ni = 0, reduces to an LP; if ci = 0, reduces to a QCQP
  • more general than QCQP and LP

Convex optimization problems 4–

Robust linear programming

the parameters in optimization problems are often uncertain, e.g., in an LP

minimize cT^ x subject to aTi x ≤ bi, i = 1,... , m,

there can be uncertainty in c, ai, bi

two common approaches to handling uncertainty (in ai, for simplicity)

  • deterministic model: constraints must hold for all ai ∈ Ei

minimize cT^ x subject to aTi x ≤ bi for all ai ∈ Ei, i = 1,... , m,

  • stochastic model: ai is random variable; constraints must hold with probability η

minimize cT^ x subject to prob(aTi x ≤ bi) ≥ η, i = 1,... , m

deterministic approach via SOCP

  • choose an ellipsoid as Ei:

Ei = {¯ai + Piu | ‖u‖ 2 ≤ 1 } (¯ai ∈ Rn, Pi ∈ Rn×n)

center is ¯ai, semi-axes determined by singular values/vectors of Pi

  • robust LP

minimize cT^ x subject to aTi x ≤ bi ∀ai ∈ Ei, i = 1,... , m

is equivalent to the SOCP

minimize cT^ x subject to a¯Ti x + ‖P (^) iT x‖ 2 ≤ bi, i = 1,... , m

(follows from sup‖u‖ 2 ≤ 1 (¯ai + Piu)T^ x = ¯aTi x + ‖P (^) iT x‖ 2 )

Convex optimization problems 4–

stochastic approach via SOCP

  • assume ai is Gaussian with mean ¯ai, covariance Σi (ai ∼ N (¯ai, Σi))
  • aTi x is Gaussian r.v. with mean a¯Ti x, variance xT^ Σix; hence

prob(aTi x ≤ bi) = Φ

bi − ¯aTi x ‖Σ^1 i /^2 x‖ 2

where Φ(x) = (1/

2 π)

∫ (^) x −∞ e

−t^2 / (^2) dt is CDF of N (0, 1)

  • robust LP

minimize cT^ x subject to prob(aTi x ≤ bi) ≥ η, i = 1,... , m,

with η ≥ 1 / 2 , is equivalent to the SOCP

minimize cT^ x subject to ¯aTi x + Φ−^1 (η)‖Σ^1 i /^2 x‖ 2 ≤ bi, i = 1,... , m

Design of cantilever beam

PSfrag replacements

F

segment 4 segment 3 segment 2 segment 1

  • N segments with unit lengths, rectangular cross-sections of size wi × hi
  • given vertical force F applied at the right end

design problem

minimize total weight subject to upper & lower bounds on wi, hi upper bound & lower bounds on aspect ratios hi/wi upper bound on stress in each segment upper bound on vertical deflection at the end of the beam

variables: wi, hi for i = 1,... , N

Convex optimization problems 4–

objective and constraint functions

  • total weight w 1 h 1 + · · · + wN hN is posynomial
  • aspect ratio hi/wi and inverse aspect ratio wi/hi are monomials
  • maximum stress in segment i is given by 6 iF/(wih^2 i ), a monomial
  • the vertical deflection yi and slope vi of central axis at the right end of segment i are defined recursively as

vi = 12(i − 1 /2)

F

Ewih^3 i

  • vi+

yi = 6(i − 1 /3)

F

Ewih^3 i

  • vi+1 + yi+

for i = N, N − 1 ,... , 1 , with vN +1 = yN +1 = 0 (E is Young’s modulus) vi and yi are posynomial functions of w, h

formulation as a GP

minimize w 1 h 1 + · · · + wN hN subject to w−max^1 wi ≤ 1 , wminw i− 1 ≤ 1 , i = 1,... , N h−max^1 hi ≤ 1 , hminh− i 1 ≤ 1 , i = 1,... , N Smax−^1 w− i 1 hi ≤ 1 , Sminwih− i 1 ≤ 1 , i = 1,... , N 6 iF σmax−^1 w− i 1 h− i 2 ≤ 1 , i = 1,... , N y−max^1 y 1 ≤ 1

note

  • we write wmin ≤ wi ≤ wmax and hmin ≤ hi ≤ hmax

wmin/wi ≤ 1 , wi/wmax ≤ 1 , hmin/hi ≤ 1 , hi/hmax ≤ 1

  • we write Smin ≤ hi/wi ≤ Smax as

Sminwi/hi ≤ 1 , hi/(wiSmax) ≤ 1

Convex optimization problems 4–

Minimizing spectral radius of nonnegative matrix

Perron-Frobenius eigenvalue λpf (A)

  • exists for (elementwise) positive A ∈ Rn×n
  • a real, positive eigenvalue of A, equal to spectral radius maxi |λi(A)|
  • determines asymptotic growth (decay) rate of Ak: Ak^ ∼ λk pf as k → ∞
  • alternative characterization: λpf (A) = inf{λ | Av π λv for some v ¬ 0 }

minimizing spectral radius of matrix of posynomials

  • minimize λpf (A(x)), where the elements A(x)ij are posynomials of x
  • equivalent geometric program:

minimize λ subject to

∑n j=1 A(x)ijvj/(λvi)^ ≤^1 ,^ i^ = 1,... , n

variables λ, v, x

LP and SOCP as SDP

LP and equivalent SDP

LP: minimize cT^ x subject to Ax π b

SDP: minimize cT^ x subject to diag(Ax − b) π 0

(note different interpretation of generalized inequality π)

SOCP and equivalent SDP

SOCP: minimize f T^ x subject to ‖Aix + bi‖ 2 ≤ cTi x + di, i = 1,... , m

SDP: minimize f T^ x

subject to

[

(cTi x + di)I Aix + bi (Aix + bi)T^ cTi x + di

]

∫ 0 , i = 1,... , m

Convex optimization problems 4–

Eigenvalue minimization

minimize λmax(A(x))

where A(x) = A 0 + x 1 A 1 + · · · + xnAn (with given Ai ∈ Sk)

equivalent SDP minimize t subject to A(x) π tI

  • variables x ∈ Rn, t ∈ R
  • follows from λmax(A) ≤ t ⇐⇒ A π tI

Matrix norm minimization

minimize ‖A(x)‖ 2 =

λmax(A(x)T^ A(x))

where A(x) = A 0 + x 1 A 1 + · · · + xnAn (with given Ai ∈ Sp×q)

equivalent SDP

minimize t

subject to

[

tI A(x) A(x)T^ tI

]

  • variables x ∈ Rn, t ∈ R
  • constraint follows from

‖A‖ 2 ≤ t ⇐⇒ AT^ A π t^2 I, t ≥ 0

⇐⇒

[

tI A AT^ tI

]

Convex optimization problems 4–

Vector optimization

general vector optimization problem

minimize (w.r.t. K) f 0 (x) subject to fi(x) ≤ 0 , i = 1,... , m hi(x) ≤ 0 , i = 1,... , p

vector objective f 0 : Rn^ → Rq, minimized w.r.t. proper cone K ∈ Rq

convex vector optimization problem

minimize (w.r.t. K) f 0 (x) subject to fi(x) ≤ 0 , i = 1,... , m Ax = b

with f 0 K-convex, f 1 ,... , fm convex