Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications...

27
Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control Theory Seminar, Fall 2007 Introduction to convex sets II: Convex Functions

Transcript of Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications...

Page 1: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Introduction to convex sets II: Convex Functions

September 12, 2007

A. Guevara

Control Theory Seminar, Fall 2007

Introduction to convex sets II: Convex Functions

Page 2: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

1 Basic conceptsExtended-valued functionsReal caseFirst and second order conditionsExamples

2 Applications

Introduction to convex sets II: Convex Functions

Page 3: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

References

Bertsekas, D.P., Nedic , A. and Ozdaglar, A. Convex analysisand optimization. Athena Scientific, Belmont, Massachusetts,2003.

Borwein, J.M. and Lewis, A.S. Convex analysis and nonlinearoptimization. Springer Verlag, N.Y., 2000.

Boyd, S. and Vanderberghe, L. Convex optimization.Cambridge Univ. Press, Cambridge, U.K., 2004.

Hiriart-Urruty, J-B. and Lemarechal, C. Fundamentals onconvex analysis. Springer, Berlin, 2001.

Rockafellar, R.T. Convex analysis. Princeton Univ. Press,Princeton, N.J., 1970.

Introduction to convex sets II: Convex Functions

Page 4: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Notation

We work in a n-dimensional real Euclidean space E .

Sets will be indicated with capital letters.

Points and vectors will be lower case.

For scalars we use greek characters.

Introduction to convex sets II: Convex Functions

Page 5: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Convex functions

Let C ⊂ E be a convex set. A function f : C → R is convex if

f (αx + (1− α)y) ≤ αf (x) + (1− α)f (y)

for all x , y ∈ C and 0 < α < 1.

Introduction to convex sets II: Convex Functions

Page 6: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Geometric interpretation

Let C ⊂ E be a convex set. A function f : C → R is convex if andonly if the set

epi f = {(x , r) | r ≥ f (x)}is convex as a subset of E × R.

Introduction to convex sets II: Convex Functions

Page 7: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Extended definition of convex function

Definition

A function f : E → [−∞,+∞] is convex if its epigraph is a convexset in E × R.

Why do we allow ±∞ as possible values?

Simpifies notation.

The supremum of a set of functions might take infinite values,even if all the functions in the set are finite.

Allows penalization and exclusion in optimization problems.

Introduction to convex sets II: Convex Functions

Page 8: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Extended definition of convex function

Definition

A function f : E → [−∞,+∞] is convex if its epigraph is a convexset in E × R.

Why do we allow ±∞ as possible values?

Simpifies notation.

The supremum of a set of functions might take infinite values,even if all the functions in the set are finite.

Allows penalization and exclusion in optimization problems.

Introduction to convex sets II: Convex Functions

Page 9: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Extended definition of convex function

Definition

A function f : E → [−∞,+∞] is convex if its epigraph is a convexset in E × R.

Why do we allow ±∞ as possible values?

Simpifies notation.

The supremum of a set of functions might take infinite values,even if all the functions in the set are finite.

Allows penalization and exclusion in optimization problems.

Introduction to convex sets II: Convex Functions

Page 10: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Extended definition of convex function

Definition

A function f : E → [−∞,+∞] is convex if its epigraph is a convexset in E × R.

Why do we allow ±∞ as possible values?

Simpifies notation.

The supremum of a set of functions might take infinite values,even if all the functions in the set are finite.

Allows penalization and exclusion in optimization problems.

Introduction to convex sets II: Convex Functions

Page 11: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Extended definition of convex function

Definition

A function f : E → [−∞,+∞] is convex if its epigraph is a convexset in E × R.

Why do we allow ±∞ as possible values?

Simpifies notation.

The supremum of a set of functions might take infinite values,even if all the functions in the set are finite.

Allows penalization and exclusion in optimization problems.

Introduction to convex sets II: Convex Functions

Page 12: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Properness

Definition

A extended-valued function f is called proper provided

f is not identically +∞f (x) > −∞, for all x.

Proper functions help us avoid undefined expressions such as+∞−∞.

Introduction to convex sets II: Convex Functions

Page 13: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Extension of a finite-valued convex function on C as aextended-valued convex function on E

f (x) =

{f (x) if x ∈ C ,

+∞ otherwise.

Introduction to convex sets II: Convex Functions

Page 14: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Restriction of a extended-valued proper convex function onE to a finite-valued convex function

TakeC = dom f =

{x | f (x) < +∞

}and define

f : C → R, f = f|C

Introduction to convex sets II: Convex Functions

Page 15: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Jensen’s inequality

Let f : E → (−∞,+∞] be a function. Then f is convex if andonly if

f (m∑

i=1

λixi ) ≤m∑

i=1

λi f (xi )

whenever λi ≥ 0 , for all i ,∑m

i=1 λi = 1.

Introduction to convex sets II: Convex Functions

Page 16: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Convex functions on the real line

For g a real-valued function on an interval I .

Proposition

g is convex on I if and only if, for all x0 ∈ I , the slope-function

x 7→ f (x)− f (x0)

x − x0

is increasing in I \ {x0}.

Proposition

If g is convex on I , then g is continuous on the interior of I .

Introduction to convex sets II: Convex Functions

Page 17: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Convex functions on the real line

Proposition

If g is convex on I , then g admits finite left and right derivativesat each x0 in the interior of I .

Introduction to convex sets II: Convex Functions

Page 18: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

First order condition

Theorem

Let f : E → [−∞,+∞] be a differentiable function. Then f isconvex if and only if dom f is a convex set and

f (y) ≥ f (x) + 〈∇f (x), y − x〉

for every x , y ∈ dom f .

Introduction to convex sets II: Convex Functions

Page 19: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Necessary and sufficient condition for optimality

Corollary

Let f : E → [−∞,+∞] be a differentiable convex function. Thenx ∈ dom f is a global minimizer if and only if ∇f (x) = 0

Corollary

Let f : E → [−∞,+∞] be a differentiable convex function. Thenthe mapping ∇f is monotone, i.e.,

〈∇f (y)−∇f (x), y − x〉 ≥ 0, x , y ∈ dom f

Introduction to convex sets II: Convex Functions

Page 20: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Sketch of proof

(1) Show the result for g : R → [−∞,+∞].

(2) Use the fact that f : E → [−∞,+∞] is convex if and only ifthe real function g defined by

g(t) = f (ty + (1− t)x), ty + (1− t)x ∈ dom f

is convex.

Introduction to convex sets II: Convex Functions

Page 21: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Second order condition

Theorem

Let f be a twice continuously differentiable real-valued function onan open interval (α, β). Then f is convex if and only if its secondderivative is nonnegative throughout (α, β).

Theorem

Let f : E → [−∞,+∞] be a twice continuously differentiablefunction. Then f is convex if and only if dom f is a convex set andthe Hessian matrix ∇2f (x) � 0 for all x ∈ dom f .

Introduction to convex sets II: Convex Functions

Page 22: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Examples of convex functions in the real line

g(x) = exp(αx), x ∈ Rg(x) = xp, 1 ≤ p < ∞, x ≤ 0

g(x) = |x |p, 1 ≤ p < ∞g(x) = −xp, 0 ≤ p < 1, x ≤ 0

g(x) = xp,−∞ < p < 0, x > 0

g(x) =(α2 − x2

)−1/2, α > 0, |x | < α

g(x) = − log(x), x > 0

Negative entropy g(x) = x log(x), x > 0

Introduction to convex sets II: Convex Functions

Page 23: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Examples of convex functions in Rn

Any norm

f (x) = max {x1, x2, . . . , xn}Log-sum-exp f (x) = log(exp(x1) + exp(x2) + · · ·+ exp(xn))

Geometric mean f (x) = (∏n

i=1 xi )1/n

Indicator function of a convex set C , δ(· |C )

δ(x |C ) =

{0 if x ∈ C ,

+∞ otherwise.

We haveinfx∈C

f (x) = infx∈E

(f (x) + δ(x |C ))

Introduction to convex sets II: Convex Functions

Page 24: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Extended-valued functionsReal caseFirst and second order conditionsExamples

Operations that preserve convexity

Suppose f , f1, . . . , fm are convex functions on E

h(x) = λ1f1 + · · ·+ λmfm, λi are positive scalars.

h(x) = sup {f1(x), . . . , fn(x)}.h(x) = f (Ax),A linear transformation.

Inf-convolutionh(x) = (f1 ? f2)(x) = infy∈E {f1(x − y) + f2(y)}, f1, f2 proper

Introduction to convex sets II: Convex Functions

Page 25: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Applications to inequalities

Convexity of − log(x) ensures that, for 0 < θ < 1, a, b ≥ 0

aθb1−θ ≤ θa + (1− θ)b

A particular selection for a and b helps proving Holder’s inequality:for p > 1, 1

p + 1q = 1,

n∑i=1

|xiyi | ≤

(n∑

i=1

xpi

)1/p ( n∑i=1

yqi

)1/q

, where 1/p + 1/q = 1

Introduction to convex sets II: Convex Functions

Page 26: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

More results: Level sets

Proposition

For a convex function f on E, the level sets

{x | f (x) < α} and {x | f (x) ≤ α}

are convex for every α.

Note: reverse does not hold!

Corollary

For an arbitrary family {fi} of convex functions on E and realnumbers αi , i ∈ I , the set

{x | fi (x) ≤ αi , i ∈ I}

is convex.

Introduction to convex sets II: Convex Functions

Page 27: Introduction to convex sets II: Convex Functions · Table of contents Basic concepts Applications Introduction to convex sets II: Convex Functions September 12, 2007 A. Guevara Control

Table of contentsBasic concepts

Applications

Existence of global minimizers

Proposition

Let D ⊂ E be nonempty and closed, and that all the level sets ofthe continuous function f : D → R are bounded. Then f has aglobal minimizer.

Proposition

For a convex C ⊂ E , a convex function f : C → R has boundedlevel sets if and only if it satisfies the growth condition

lim inf||x ||→∞

f (x)

||x ||> 0

Introduction to convex sets II: Convex Functions