Professional Documents
Culture Documents
Shirish Shevade
Let f : R → R
Unconstrained problem
min f (x)
x∈R
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.
min (x − 2)2
x∈R
f 0 (x) = 0 ⇒ 2(x − 2) = 0 ⇒ x∗ = 2.
g(x) ≡ f 0 (x) = 0.
Let φ : R → R
Consider the problem,
min φ(x)
x∈R
Definition
The function φ is said to be unimodal on [a, b] if for a ≤ x1 < x2 ≤ b,
Let f : R → R
Unconstrained problem
min f (x)
x∈R
Dichotomous search
Fibonacci search
Golden-section search
Require,
Interval of uncertainty, [a, b], which contains the minimum of f
f to be unimodal in [a, b].
k ak bk bk − ak
0 -4 0 4
1 -4 -1.98 2.02
2 -3.0001 -1.98 1.0201
3 -3.0001 -2.4849 .5152
.. .. .. ..
. . . .
10 -2.5669 -2.5626 .0043
.. .. .. ..
. . . .
20 -2.5652 -2.5652 4.65e-6
.. .. .. ..
. . . .
23 -2.5652 -2.5652 5.99e-7
We have I1 = I2 + I3 .
Generalizing further, we get
I1 = I2 + I3
I2 = I3 + I4
..
.
In = In+1 + In+2
Fk = Fk−1 + Fk−2 , k = 2, 3, . . .
F0 = 1, F1 = 1.
After n iterations,
I1
In =
Fn
I1
For example, after 10 iterations, In = 89
n should be known beforehand
Recall,
Ik = Fn−k+1 In .
Therefore,
Ik+2 = Fn−k−1 In
and
Ik+1 = Fn−k In .
This gives,
Fn−k−1
Ik+2 = Ik+1 .
Fn−k
k ak bk bk − ak
0 -4 0 4
1 -4 -1.52 2.48
2 -3.05 -1.52 1.53
3 -3.05 -2.11 0.94
4 -2.70 -2.11 0.59
5 -2.70 -2.34 0.36
6 -2.70 -2.47 0.23
7 -2.61 -2.47 0.14
This gives
√
2 1+ 5
r =r+1⇒ r = = 1.618034 (negative r is irrelevant)
2
Golden Ratio = 1.618034
InG r2
= √ ≈ 1.17
InF 5
If the number of iterations is same, InGS is larger than InF by about
17%
Let f : R → R
Unconstrained problem
min f (x)
x∈R
Bisection method
Assumes f ∈ C 1 .
Interval of uncertainty, [a, b], which contains the minimum of f
needs to be provided.
Assumes that f is unimodal in [a, b].
Newton method
Assumes f ∈ C 2 .
Based on using the quadratic approximation of f at every iteration
2 while k ≤ n
ak +bk
3 ck = 2
4 If 0 k
f (c ) = 0, stop with ck as an optimal solution.
5 If f 0 (ck ) > 0
ak+1 = ak and bk+1 = ck
else
ak+1 = ck and bk+1 = bk
endif
6 k:=k+1
7 endwhile
8 If k = n + 1, the solution is at the midpoint of [an , bn ].
Bisection method
requires initial interval of uncertainty
converges to a minimum point within any degree of desired
accuracy
20
15
f(x)
10
x*
0
xk+1 xk
−5
−5 −4 −3 −2 −1 0 1 2 3 4 5
x
25
20
15
10
g(x)
5
2
0
x
1
x
−5
−10
−15
−20
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
x
20
x3
0
x2 x4 x1
g(x)
−20
−40
−60
−80
−4 −3 −2 −1 0 1 2
x
0.8
0.6
0.4
0.2
1
x
g(x)
x2
−0.2
x0
−0.4
−0.6
−0.8
−1
−2 −1.5 −1 −0.5 0 0.5 1 1.5 2
0.8
0.6
0.4
0.2
x1 x2
g(x)
0
3 0
x x x
4
−0.2
−0.4
−0.6
−0.8
−1
−6 −4 −2 0 2 4 6
x