SLIDE 1
Optimization (Introduction) Optimization Goal: Find the minimizer - - PowerPoint PPT Presentation
Optimization (Introduction) Optimization Goal: Find the minimizer - - PowerPoint PPT Presentation
Optimization (Introduction) Optimization Goal: Find the minimizer that minimizes the objective (cost) function : " Unconstrained Optimization Optimization Goal: Find the minimizer that minimizes the
SLIDE 2
SLIDE 3
Goal: Find the minimizer πβthat minimizes the objective (cost) function π π : β" β β
Optimization
Constrained Optimization
SLIDE 4
Unconstrained Optimization
- What if we are looking for a maximizer πβ?
π πβ = max
π
π π
SLIDE 5
Calculus problem: maximize the rectangle area subject to perimeter constraint
max
π β β!
SLIDE 6
π$ π$ π% π% π΅π ππ = π$π% πππ ππππ’ππ = 2(π$ + π%)
SLIDE 7
SLIDE 8
Unconstrained Optimization 1D
SLIDE 9
What is the optimal solution? (1D)
(First-order) Necessary condition (Second-order) Sufficient condition
π π¦β = min
"
π π¦
SLIDE 10
Types of optimization problems
Gradient-free methods Gradient (first-derivative) methods
Evaluate π π¦ , πβ² π¦ , πβ²β² π¦
Second-derivative methods
π π¦β = min
"
π π¦
Evaluate π π¦ Evaluate π π¦ , πβ² π¦
π: nonlinear, continuous and smooth
SLIDE 11
Does the solution exists? Local or global solution?
SLIDE 12
Example (1D)
- 6
- 4
- 2
2 4 6
- 200
- 100
100
Consider the function π π = 7!
8 β 7" 9 β 11 π¦: + 40π¦. Find the stationary
point and check the sufficient condition
SLIDE 13
Optimization in 1D:
Golden Section Search
- Similar idea of bisection method for root finding
- Needs to bracket the minimum inside an interval
- Required the function to be unimodal
A function π: β β β is unimodal on an interval [π, π] ΓΌ There is a unique πβ β [π, π] such that π(πβ) is the minimum in [π, π] ΓΌ For any π¦;, π¦: β [π, π] with π¦; < π¦: Β§ π¦: < πβ βΉ π(π¦;) > π(π¦:) Β§ π¦; > πβ βΉ π(π¦;) < π(π¦:)
SLIDE 14
π π π π¦$ π¦% π¦& π¦' π
$
π
%
π
&
π
'
π π π π¦$ π¦% π¦& π¦' π
$
π
%
π
&
π
'
SLIDE 15
SLIDE 16
SLIDE 17
Golden Section Search
SLIDE 18
Golden Section Search
What happens with the length of the interval after one iteration? β! = π β" Or in general: β#$! = π β# Hence the interval gets reduced by π (for bisection method to solve nonlinear equations, π=0.5) For recursion: π β! = (1 β π) β" π π β" = (1 β π) β" π% = (1 β π) π = π. πππ
SLIDE 19
- Derivative free method!
- Slow convergence:
lim
?βA
|π?B;| π? = 0.618 π = 1 (ππππππ ππππ€ππ πππππ)
- Only one function evaluation per iteration
Golden Section Search
SLIDE 20
Example
SLIDE 21
Newtonβs Method
Using Taylor Expansion, we can approximate the function π with a quadratic function about π¦C π π¦ β π π¦C + πD π¦C (π¦ β π¦C) + ;
: πDβ² π¦C (π¦ β π¦C):
And we want to find the minimum of the quadratic function using the first-order necessary condition
SLIDE 22
Newtonβs Method
- Algorithm:
π¦0 = starting guess π¦123 = π¦1 β πβ² π¦1 /πβ²β² π¦1
- Convergence:
- Typical quadratic convergence
- Local convergence (start guess close to solution)
- May fail to converge, or converge to a maximum or
point of inflection
SLIDE 23
Newtonβs Method (Graphical Representation)
SLIDE 24