πŸ“– Fundamentals of optimization#

⏱ | words

WARNING

This section of the lecture notes is still under construction. It will be ready before the lecture.

  • starting from univariate examples

  • maximizers and minimizers of a function

  • stationary points, FOCs

  • global vs local extrema

  • shape conditions, uniqueness

  • (skip necessary and sufficient SOCs)

  • examples of failure of existence of extrema Need general theory

  • switch multivariate functions and multidimensional spaces

  • bounded and unbounded sets

  • closed/open sets, compactness

  • switching to \(\mathbb{R}\) to talk about range of functions

  • suprema and infima in \(\mathbb{R}\)

  • boundedness of functions

  • Weierstrass boundedness theorem

  • Weierstrass extreme value theorem

  • sketch of proof

  • examples, examples, examples

_images/comingsoon.png

Bounded sets#

Definition

A set \(A \subset \mathbb{R}^N\) called bounded if

\[\exists \, M \in \mathbb{R} \; \mathrm{such\;that} \; \|x\| \leq M, \quad \forall \; x \in A\]
_images/bounded-set.png

Fig. 20 Bounded set in \(\mathbb{R}^2\)#

Example

Every finite subset \(A\) of \(\mathbb{R}\) is bounded

Indeed, set \(M := \max \{ |a| : a \in A \}\). Then \(A\) is bounded by definition

Example

The set \(\{(x,y)\in\mathbb{R}^2\colon xy \leqslant 1 \}\) is unbounded

Proof:

For any \(M \in \mathbb{R}\) consider the point whit coordinates \(x=1/M\) and \(y=M\). This point belongs to the set because it satisfies \(xy=1\), yet

\[\| (x,y) \| = \sqrt{x^2 + y^2} = \sqrt{\frac{1}{M^2} + M^2} > \sqrt{ M^2} = M\]

Therefore, for any candidate bound \(M\) we can find points in the set that are further away from the origin than \(M\).

Example

\((a, b)\) is bounded for any \(a, b \in \mathbb{R}\)

Proof:

Let \(M := \max\{ |a|, |b| \}\). We have to show that each \(x \in (a, b)\) satisfies \(|x| \leq M\)

\[x \in (a, b) \iff a < x < b\]

Cases:

  1. \(0 \le a \le b \implies x > 0, x = |x| < |b| = b = \max\{|a|,|b|\}\)

  2. \(a \le b \le 0 \implies a < x < 0, |x|= -x < -a = |a| = \max\{|a|,|b|\}\)

  3. \(a \le 0 \le b \implies\)

\[\begin{split}\begin{cases} |x|<|b|, x \ge 0\\ |x|<|a|, x < 0 \end{cases} \implies |x|< \max\{|a|,|b|\} \text{ from 1. and 2.} $$\end{split}\]

Fact

If \(A\) and \(B\) are bounded sets then so is \(A \cup B\)

Open and closed sets#

Definition

Let \(G \subset \mathbb{R}^N\). We call \(x \in G\) interior to \(G\) if \(\exists \; \epsilon > 0\) with \(B_\epsilon(x) \subset G\)

_images/interior.png

Fig. 21 Loosely speaking, interior means β€œnot on the boundary”#

Example

_images/peeled_tomato.png

Example

If \(G = (a, b)\) for some \(a < b\), then any \(x \in (a, b)\) is interior

_images/x_interior.png

Proof:

Fix any \(a < b\) and any \(x \in (a, b)\)

Let \(\epsilon := \min\{x - a, b - x\}\)

If \(y \in B_\epsilon(x)\) then \(y < b\) because

\[y = y + x - x \leq |y - x| + x < \epsilon + x \leq b - x + x = b\]

Exercise: Show \(y \in B_\epsilon(x) \implies y > a\)

Example

If \(G = [-1, 1]\), then \(1\) is not interior

_images/not_interior.png

Proof:

Intuitively, any \(\epsilon\)-ball centered on \(1\) will contain points \(> 1\)

More formally, pick any \(\epsilon > 0\) and consider \(B_\epsilon(1)\)

There exists a \(y \in B_\epsilon(1)\) such that \(y \notin [-1, 1]\)

For example, consider the point \(y := 1 + \epsilon/2\)

Exercise: Check this point: lies in \(B_\epsilon(1)\) but not in \([-1, 1]\)

Definition

A set \(G\subset \mathbb{R}^N\) is called open if all of its points are interior

Example

Open sets:

  • any open interval \((a,b) \subset \mathbb{R}\), since we showed all points are interior

  • any open ball \(B_\epsilon(a) = x \in \mathbb{R}^N : \|x - a \| < \epsilon\)

  • \(\mathbb{R}^N\) itself satisfies the defintion of open set

Sets that are not open

  • \((a,b]\) because \(b\) is not interior

  • \([a,b)\) because \(a\) is not interior

Closed Sets#

Definition

A set \(F \subset \mathbb{R}^N\) is called closed if every convergent sequence in \(F\) converges to a point in \(F\)

Rephrased: If \(\{x_n\} \subset F\) and \(x_n \to x\) for some \(x \in \mathbb{R}^N\), then \(x \in F\)

Example

All of \(\mathbb{R}^N\) is closed \(\Leftarrow\) every sequence converging to a point in \(\mathbb{R}^N\) converges to a point in \(\mathbb{R}^N\)!

Example

If \((-1, 1) \subset \mathbb{R}\) is not closed

Proof:

True because

  1. \(x_n := 1-1/n\) is a sequence in \((-1, 1)\) converging to \(1\),

  2. and yet \(1 \notin (-1, 1)\)

Example

If \(F = [a, b] \subset \mathbb{R}\) then \(F\) is closed in \(\mathbb{R}\)

Proof:

Take any sequence \(\{x_n\}\) such that

  • \(x_n \in F\) for all \(n\)

  • \(x_n \to x\) for some \(x \in \mathbb{R}\)

We claim that \(x \in F\)

Recall that (weak) inequalities are preserved under limits:

  • \(x_n \leq b\) for all \(n\) and \(x_n \to x\), so \(x \leq b\)

  • \(x_n \geq a\) for all \(n\) and \(x_n \to x\), so \(x \geq a\)

therefore \(x \in [a, b] =: F\)

Properties of Open and Closed Sets#

Fact

\(G \subset \mathbb{R}^N\) is open \(\iff \; G^c\) is closed

Fact

Any singleton \(\{ x \} \subset \mathbb{R}^N\) is closed

Fact

  1. Any finite union of open sets is open

  2. Any finite intersection of closed sets is closed

But be careful:

  • An infinite intersection of open sets is not necessarily open

  • An infinite union of closed sets is not necessarily closed

For example, if \(G_n := (-1/n, 1/n)\), then \(\cap_{n \in \mathbb{N}} G_n = \{0\} \)

Definition

Set \(X\) is called compact if it is both closed and bounded.

XXX

Weierstrass boundedness theorem#

Putting together all the above material to formulate a fundamental result which is essential for establishing the existence of maxima and minima of functions in the next section.

Definition

A function \(f\) is called bounded if its range is a bounded set.

Fact

Consider a continuous function \(f: X \subset \mathbb{R}^N \to \mathbb{R}\).

If \(X\) is compact, then \(f\) is bounded on \(X\).