Docsity

Lecture 3: Optimization Problems and Iterative Algorithms - Convex Functions and Convexity, Study notes of Engineering

Partial preview of the text

Download Lecture 3: Optimization Problems and Iterative Algorithms - Convex Functions and Convexity and more Study notes Engineering in PDF only on Docsity!

Lecture 3

Optimization Problems

and Iterative Algorithms

August 27, 2008

Outline

  • Special Functions: Linear, Quadratic, Convex
  • Criteria for Convexity of a Function
  • Operations Preserving Convexity
  • Unconstrained Optimization
    • First-Order Necessary Optimality Conditions
  • Constrained Optimization
    • First-Order Necessary Optimality Conditions
    • KKT Conditions
  • Iterative Algorithms

Examples of Convex/Concave Functions

Examples on R

Convex:

  • Affine: ax + b over R for any a, b ∈ R
  • Exponential: e

ax

over R for any a ∈ R

  • Power: x

p

over (0, +∞) for p ≥ 1 or p ≤ 0

  • Powers of absolute value: |x|

p

over R for p ≥ 1

  • Negative entropy: x ln x over (0, +∞)

Concave:

  • Affine: ax + b over R for any a, b ∈ R
  • Powers: x

p

over (0, +∞) for 0 ≤ p ≤ 1

  • Logarithm: ln x over (0, +∞)

Examples on R

n

  • Affine functions are both convex and concave
  • Norms ‖x‖, ‖x‖ 1 , ‖x‖ ∞

are convex

Second-Order Conditions for Convexity

Let f be twice differentiable and let dom(f ) be the domain of f

[In general, when differentiability is considered, it is required that dom(f )

is open]

The Hessian ∇

2

f (x) is a symmetric n × n matrix whose entries are the

second-order partial derivatives of f at x:

[

2

f (x)

]

ij

2

f (x)

∂x i ∂x j

for i, j = 1,... , n

2nd-order conditions:

  • f is convex if and only if dom(f ) is convex set and

2

f (x)  0 for all x ∈ dom(f )

  • f is strictly convex if dom(f ) is convex set

2

f (x)  0 for all x ∈ dom(f )

First-Order Condition for Convexity

Let f be differentiable and let dom(f ) be its domain. Then, the gradient

∇f (x) =

(

∂f (x)

∂x 1

∂f (x)

∂x 2

∂f (x)

∂x n

)

exists at each x ∈ dom(f )

  • 1st-order condition: f is convex if and only if dom(f ) is convex and

f (x) + ∇f (x)

T

(z − x) ≤ f (z) for all x, z ∈ dom(f )

  • Note: A first order approximation is a global underestimate of f
  • Very important property used in convex optimization for algorithm

designs and performance analysis

Operations Preserving Convexity

Let f and g be convex functions over R

n

  • Positive Scaling: λf is convex for λ > 0 ; (λf )(x) = λf (x) for all x
  • Sum: f + g is convex; (f + g)(x) = f (x) + g(x) for all x
  • Composition with affine function: for g affine [i.e., g(x) = Ax + b],

the composition f ◦ g is convex, where

(f ◦ g)(x) = f (Ax + b) for all x

  • Pointwise maximum: For convex functions f 1

,... , f m

, the pointwise-

max function

h(x) = max {f 1 (x),... , f m

(x)} is convex

  • Polyhedral function: f (x) = max i=1,...,m (a

T

i

x + b i

) is convex

  • Pointwise supremum: Let Y ⊆ R

m

and f : R

n

× R

m

→ R. Let

f (x, y) be convex in x for each y ∈ Y. Then, the supremum function

over the set Y

h(x) = sup y∈Y

f (x, y) is convex

Local Minimum

minimize f (x)

subject to x ∈ C

  • A vector ˆx is a local minimum for the problem if xˆ ∈ C and there is a

ball B(ˆx, r) such that

f (ˆx) ≤ f (x) for all x ∈ C with ‖x − xˆ‖ ≤ r

  • Every global minimum is also a local minimum
  • When the set C is convex and the function f is convex then a local

minimum is also global

First-Order Necessary Optimality Condition:

Unconstrained Problem

Let f be a differentiable function with dom(f ) = R

n

and let C = R

n

  • If ˆx is a local minimum of f over R

n

, then the following holds:

∇f (ˆx) = 0

  • The gradient relation can be equivalently given as:

(y − xˆ)

′

∇f (ˆx) ≥ 0 for all y ∈ R

n

This is a variational inequality V I(K, F ) with the set K and the

mapping F given by

K = R

n

, F (x) = ∇f (x)

  • Solving a minimization problem can be reduced to solving a correspond-

ing variational inequality

Equality and Inequality Constrained Problem

Consider the following problem

minimize f (x)

subject to h

1

(x) = 0,... , h p

(x) = 0

g 1

(x) ≤ 0 ,... , g m

(x) ≤ 0

where f , h

i

and g

j

are continuously differentiable over R

n

Def. For a feasible vector x, an active set of (inequality) constraints is

the set given by

A(x) = {j | g j (x) = 0}

If j 6 ∈ A(x), we say that the j-th constraint is inactive at x

Def. We say that a vector x is regular if the gradients

∇h 1

(x),... , ∇h p

(x), and ∇g

j

(x) for j ∈ A(x)

are linearly independent

NOTE: x is regular when there are no equality constraints, and all the

inequality constrains are inactive [p = 0 and A(x) = ∅]

Lagrangian Function

With the problem

minimize f (x)

subject to h

1 (x) = 0,... , h p (x) = 0

g 1

(x) ≤ 0 ,... , g m

(x) ≤ 0

we associate the Lagrangian function L(x, λ, μ) defined by

L(x, λ, μ) = f (x) +

p

∑

i=

λ i h i (x) +

m ∑

j=

μ j g j (x)

where λ

i

∈ R for all i, and μ

j

∈ R

for all j

Second-Order KKT Necessary Conditions

Th. Let ˆx be a local minimum of the equality/inequality constrained

problem (2). Also, assume that ˆx is regular and that f, h

i , g j

are twice

continuously differentiable. Then, there exist unique multipliers

λ and μˆ

such that

x

L(ˆx,

λ, μˆ) = 0

  • μˆ j

≥ 0 for all j

  • μˆ j

= 0 for all j 6 ∈ A(ˆx)

  • For any vector y such that ∇h i

(ˆx)

′

y = 0 for all i and ∇g

j

(ˆx)

′

y = 0

for all j ∈ A(ˆx), the following relation holds:

y

′

2

xx

L(ˆx,

λ, μˆ)y ≥ 0

Solution Procedures: Iterative Algorithms

For solving problems, we will consider iterative algorithms

  • Given an initial iterate x 0
  • We generate a new iterate

x k+

= G

k

(x k

where G

k

is a mapping that depends on the optimization problem

Objectives:

  • Provide necessary conditions on the mappings G k

that yield a sequence

{x k

} converging to a solution of the problem of interest

  • Study how fast the sequence {x k

} converges:

  • Global convergence rate (when far from optimal points)
  • Local convergence rate (when near an optimal point)

Newton’s Method

Consider twice continuously differentiable function f with Hessian ∇

2

f (x) >

0 for all x. We want to

minimize f (x) over x ∈ R

n

Newton’s method

x k+

= x k

− α k

2

f (x k

− 1

∇f (x k

Global Convergence Rate (when far from x

∗

  • f (x) decreases by at least γ at each iteration; therefore, there can be at

most (f (x

0

) − f

∗

)/γ iterations [under some additional conditions on f ]

  • Method converges in finite number of iterations

Local Convergence Rate (near x

∗

  • ‖∇f (x)‖ converges to zero quadratically:

‖∇f (x k

)‖ ≤ C q

2

k

for all large enough k

where C > 0 and q ∈ (0, 1)

Penalty Methods

For solving inequality constrained problems:

minimize f (x)

subject to g

j (x) ≤ 0 , j = 1,... , m

Penalty Approach: Remove the constraints but penalize their violation

P

c

: minimize F (x, c) = f (x)+cP (g

1 (x),... , g m

(x)) over x ∈ R

n

where c > 0 is a penalty parameter and P is some penalty function

Penalty methods operate in two stages for c and x, respectively

  • Choose initial value c 0

(1) Having c

k

, solve the problem P

c k

to obtain its optimal x

∗

(c k

(2) Using x

∗

(c k

), update c

k

to obtain c

k+

and go to step 1