Professional Documents
Culture Documents
Class 20220823
Class 20220823
Class 20220823
Unconstrained Optimization
Shirish Shevade
Let X ⊆ Rn and f : X → R
Consider the problem,
Constrained optimization problem
min f (x)
x
s.t. x ∈ X
Definition
x ∗ ∈ X is is said to be a global minimum of f over X if
f (x ∗ ) ≤ f (x) ∀ x ∈ X .
16
12
f(x)
0
−2 −1 0 1 2 3 4 5 6
X = R, f : X → R defined as f (x) = x 3 .
8000
6000
4000
2000
f(x)
0
−2000
−4000
−6000
−8000
−20 −15 −10 −5 0 5 10 15 20
Note: X is closed, but not bounded; that is, X is not a compact set
Note:
X is bounded, but not closed; that is, X is not a compact set
f does attain infimum at a and supremum at b
Note:
X is closed and bounded; X is compact
f is not continuous on X
Shirish Shevade (IISc) Unconstrained Optimization 6 / 148
Weierstrass’ Theorem
Theorem
Let X ⊂ Rn be a nonempty compact set and f : X → R be a
continuous function on X . Then, f attains a maximum and a minimum
on X ; that is, there exist x 1 and x 2 in X such that
f (x 1 ) ≥ f (x) ≥ f (x 2 ) ∀x ∈ X .
X = [a, b], f : X → R
20
16
12
f(x)
0
−2 −1 0 1 2 3 4 5 6
20
16
12
f(x)
0
−2 −1 0 1 2 3 4 5 6
Let X ⊆ Rn and f : X → R
Consider the problem,
Constrained optimization problem
min f (x)
x
s.t. x ∈ X
Definition
x ∗ ∈ X is is said to be a global minimum of f over X if
f (x ∗ ) ≤ f (x) ∀ x ∈ X .
Let X ⊆ Rn and f : X → R
Consider the problem,
Constrained optimization problem
min f (x)
x
s.t. x ∈ X
Definition
x ∗ ∈ X is is said to be a local minimum of f if there is a δ > 0 such that
f (x ∗ ) ≤ f (x) ∀ x ∈ X ∩ B(x ∗ , δ).
Definition
x ∗ ∈ X is is said to be a strict local minimum of f if
f (x ∗ ) < f (x) ∀ x ∈ X ∩ B(x ∗ , δ), x 6= x ∗ .
min f (x)
x
s.t. x ∈ X
min f (x)
x∈Rn
Now, consider f : R → R
Unconstrained one-dimensional optimization problem:
min f (x)
x∈R
Let f : R → R
Unconstrained problem
min f (x)
x∈R
Choosing x ∈ (x ∗ − δ, x ∗ ) we get,
16
−2
−4
12
−6
f(x)
f(x)
−8
8
−10
−12
4
−14
0 −16
−2 −1 0 1 2 3 4 5 6 −4 −3 −2 −1 0 1 2 3 4
x x
6000
16
4000
2000
12
f(x)
f(x)
0
8
−2000
−4000
4
−6000
0 −8000
−2 −1 0 1 2 3 4 5 6 −20 −15 −10 −5 0 5 10 15 20
x x
Let f : R → R, f ∈ C 1 .
Consider the problem, minx∈R f (x).
Definition
x ∗ is called a stationary point if f 0 (x ∗ ) = 0.
20 2
16
−2
−4
12
−6
f(x)
f(x)
−8
8
−10
−12
4
−14
0 −16
−2 −1 0 1 2 3 4 5 6 −4 −3 −2 −1 0 1 2 3 4
x x
1
f (x) = f (x ∗ ) + f 0 (x ∗ )(x − x ∗ ) + f 00 (x̄)(x − x ∗ )2 where x̄ ∈ (x ∗ , x).
2
Using f 0 (x ∗ ) = 0 and f 00 (x̄) < 0 ∀ x ∈ D, we get,
8000
6000
4000
2000
f(x)
−2000
−4000
−6000
−8000
−20 −15 −10 −5 0 5 10 15 20
f (x) = x 3
f 0 (0) = f 00 (0) = 0
1
f (x) = f (x ∗ ) + f 0 (x ∗ )(x − x ∗ ) + f 00 (x̄)(x − x ∗ )2 where x̄ ∈ (x ∗ , x).
2
Let f : R → R, f ∈ C ∞ .
Let us assume that f is not a constant function.
Let the k -th derivative of f at x be denoted by f (k ) (x).
Consider the problem, minx∈R f (x).
Result
x ∗ is a local minimum if and only if the first non-zero element of the
sequence {f (k ) (x ∗ )} is positive and occurs at even positive k .
Result
Consider the problem, maxx∈R f (x). x ∗ is a local maximum if and only
if the first non-zero element of the sequence {f (k ) (x ∗ )} is negative and
occurs at even positive k .