1D Methods
1D Methods
OPTIMIZATION
Since x* is the lowest point, then the function approaching x* should be falling towards x*, regardless of the approach dir.
the f value at a point near x* should be lower than that at a farther point
3
SINGLE-VARIABLE: GRADIENT-FREE METHODS
Would one intermediate point help? Would two intermediate points help?
a λ b a λ μ b
Can these function values help reduce Can these function values help reduce
I.o.U [a b] to either [a λ] or [λ b]? I.o.U [a b] to either [a λ] or [λ b]?
NO: since the function may be such that The answer isnt straight forward
optima may lie in either of the two segments …more deliberation is required
4
SINGLE-VARIABLE: GRADIENT-FREE METHODS
The Bracketing Concept: would two intermediate points help reduce I.o.U?
f(λ) < f(μ) f(λ) > f(μ)
a λ μ b a λ μ b
∙ under unimodality: function values ONLY ON ONE side ∙ under unimodality: function values ONLY ON ONE side
of μ can be smaller than f (μ) of λ can be smaller than f (λ)
f (μ) > f (λ) ⟹ [μ b] can be eliminated f (λ) > f (μ) ⟹ [a λ] can be eliminated
Interval from one of the bound points and an intermediate point with higher f-value can be eliminated
5
SINGLE-VARIABLE: GRADIENT-FREE METHODS
Interval Halving method: Dichotomous Search
μk
λk
ak mk bk
ak + bk
∙ For the current I.o.U given by [ak bk ], determine the midpoint as mk = ; λk = mk − ϵ; μk = mk + ϵ
2
∙ If f (μk ) > f (λk ) : eliminate [μk bk ]; shift the upper bound from bk to μk ⟹ bk+1 = μk
ak+1 bk+1
∙ This process is repeated until bcurrent − acurrent > l, where l is user defined threshold on I.O.U
∙ Key highlights:
∙ ≈ 50 % reduction in I.o.U, in each iteration
∙ Two function evaluations per iteration
SINGLE-VARIABLE: GRADIENT-FREE METHODS
Fibonacci Search Method
Say, somehow we have a way to determine λ1; μ1 … for now: located symmetrically w.r.t a and b, respectively
δ2
δ2
δ1 δ1
a1 λ1 μ1 b1 I1 = b1 − a1 = b1 − μ1 + μ1 − a1
I1 = (μ1 − a1) + (b1 − μ1)
a2 λ2 μ2 b2 I1 = I2 + (b1 − μ1)
f (μ1) > f (λ1)
I1 = I2 + (λ1 − a1) since | b1 − μ1 | = | λ1 − a1 |
a3 λ3μ3 b3 I1 = I2 + (μ2 − a2) = I2 + (b3 − a3)
f (μ2) > f (λ2)
I1 = I2 + I3
I3 I2 = I3 + I4
I2 ⋮
In = In+1 + In+2 ⟹ we have n equations in n+2 intervals
I1 As I1 is known, and we can let In+2 = 0 ⟹ n eqns; n unknowns
Of λ & μ with Intervals/Bounds ⟹ Let us observe two sets of patterns ⟹ Among Intervals
δ1 = | b1 − μ1 | = | λ1 − a1 | = I3 Intm . point can be expressed w . r . t . In+2 = 0 In+1 = 1 In
δ2 = | b1 − λ1 | = | μ1 − a1 | = I2 ∙ Neighbouring Bound Point In = 1 In
± next − to − next − Inter val
λ1 = b1 − I2 = a1 + I3 In−1 = In + In+1 ⟹ In−1 = 2 In
⟹ λk = bk − Ik+1 = ak + Ik+2 ∙ Farther Bound Point In−2 = In−1 + In ⟹ In−2 = 3 In
± next − Inter val
μ1 = a1 + I2 = b1 − I3 In−3 = In−2 + In−1 ⟹ In−3 = 5 In
⟹ μk = ak + Ik+1 = bk − Ik+2 + : IP > BP else−
SINGLE-VARIABLE: GRADIENT-FREE METHODS
Fibonacci Search Method
Linking Intervals to Fibonacci Numbers
An interval In+2 In+1 In In−1 In−2 In−3 In−4 In−5 In−6 In−7 In−8 In−9
as multiple of In
0 1 1 2 3 5 8 13 21 34 55 89
Fibonacci Series F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 …
In+1 = 1 In ⟹ In+1 = F0 In
In = 1 In ⟹ In = F1 In
In−1 = 2 In ⟹ In−1 = F2 In In+1 In In−1 I1
In−2 = 3 In ⟹ In−2 = F3 In In = = = ⋯=
F0 F1 F2 Fn
In−3 = 5 In ⟹ In−3 = F4 In
⋮ ⋮ Ij
All are equal as long as j + k = n + 1
⟹ I1 = Fn In Fk
Example Let I1 = [0 3] and let us say 6 iterations of Fibonacci Search Method are to be applied. Determine λ1 and μ1
λ1 = b1 − I2 = a1 + I3 ⟹ λk = bk − Ik+2 = ak + Ik+2
μ1 = a1 + I2 = b1 − I3 ⟹ μk = ak + Ik+1 = bk − Ik+2
I2 I1 F5 8 λ1 = b1 − I2 = 1.154
= ⟹ I2 = I1 ⋅ ⟹ I2 = 3 ⋅ = 1.846 ⟹
F5 F6 F6 13 μ1 = a1 + I2 = 1.846
SINGLE-VARIABLE: GRADIENT-FREE METHODS
Fibonacci Search Method: an example
0.75 −1
Minimize f (x) = 0.65 − − 0.65 x tan (x) in the interval [0 3] by Fibonacci Method using n = 6
1 + x2
Step-1(b): Re-define the I.o.U f (λ1) < f (μ1) ⟹ [μ1 b1] can be eliminated
f (λ2) = − 0.291364
λ2 − a2 = b2 − μ2 ⟹ λ2 = 0.692308 ⟹
f (μ2) = − 0.207270
Step-2(b): Re-define the I.o.U f (λ2) < f (μ2) ⟹ [μ2 b2] can be eliminated
⋮
Keep repeating it
∙ If you keep repeating it, you will arrive at a reduced Interval of Uncertainty (not just length, but also spatially)
I
∙ Else, without going through the above, you can just determine the length of the final interval: I6 = 1
F6
SINGLE-VARIABLE: GRADIENT-FREE METHODS
Golden Section Search Method
The major limitation of Fibonacci is that one needs to know apriori : n, even to compute λ1 and μ1
In−k I1 F5
= ⟹ I2 = I1 ⋅
Fk+1 Fn F6
Let us revisit
Fk+1
Intermittent ratio: 1 1.5 1.66 1.60 1.625 1.615 1.619 1.618 1.618 Ltk→∞ = 1.618
Fk
f′(mk)
μk
λk
ak mk bk ak mk bk
If f′(mk ) > 0 Reduce I.o.U to [ak mk ]
Else, reduce I.o.U to [mk bk ]
Bisection Method


SINGLE-VARIABLE: GRADIENT-BASED METHODS
Basically a root (where the function crosses the x-axis) finding method
∙ Start with an initial point xk
∙ Find the tangent to the function at xk and locate xk+1
as the point where this tangent hits the x-axis
∙ Repeat this process until f (xj) = 0
∙ To find xk+1 by minimizing the quadratic model : q′(xk+1) = 0 ⟹ f′(xk ) + (xk+1 − xk ) f′′(xk ) = 0
f′(xk )
xk+1 = xk − …repeat until | f′(xk ) | > ϵ
f′′(xk )
Works only if :
∙ f′′(xk ) is positive ⟹ positive curvature at every point
∙ If the initial point is sufficiently close to the root
















Thank You