Beruflich Dokumente
Kultur Dokumente
Unimodal Function
A function of one variable is said to be unimodal if, given that two values of
the variable are on the same side of the optimum, the one nearer to the
optimum gives the better functional value (i.e., smaller value in case of
minimization problem). Mathematically, a function f ( x ) is unimodal if ( i )
x1 < x2 < x implies that f ( x2 ) < f ( x1 ) and ( ii ) x2 > x1 > x implies that
f ( x2 ) > f ( x1 ) , where x is the minimum point.
Bracketing Methods
Exhaustive Search Method
The optimum of a function is bracketed by calculating the function values at
a number of equally spaced points. The search begins from lower bound on
the variable and three consecutive function values are compared at a time
based on the assumption of unimodality. Based on the outcome of the
comparison the search either terminated or continued by replacing one of the
three points by a new point. The search continues until the minimum is
bracketed.
a x1 x2 x3
Algorithm:
Step 1: Set x1 = a , x = ( b a ) / n ( n is the number of intermediate points),
x2 = x1 + x , x3 = x2 + x .
Step 2: If f ( x1 ) f ( x2 ) f ( x3 ) , the minimum point lies in
( x1, x3 ) ,
Terminate.
Else,
Problem:
Minimize f ( x ) = x 2 + 54 / x in the interval ( 0, 5 ) .
Solution:
Number of intermediate points n = 10 , a = 0, b = 5 .
Step1: Set x1 = a = 0 ,
x = ( b a ) / n = ( 5 0 ) /10 = 0.5 ,
x2 = x1 + x = 0 + 0.5 = 0.5 ,
( 2.9995,
3.0005 ) .
Algorithm:
Step 1: Choose an initial guess x( ) and an increment . Set k = 0 .
0
Step 2: If f x ( )
0
f x(
( ) ) f ( x( ) + ) , then is positive;
f x(
Else,
If f x ( )
0
( ) ) f ( x( ) + ) , then is negative;
0
Else,
GOTO Step 1.
Exponential search strategy
Step 3: Set x(
k +1)
Step 4: If f x (
= x ( ) + 2k .
k +1)
< f x(
Else,
k 1)
, x(
k +1)
) and Terminate.
Region-Elimination Methods
The fundamental rule for region-elimination methods is as follows:
Let us consider two points x1 and x2 which lie in the interval ( a, b ) and
satisfy x1 < x2 . For unimodal functions for minimization, it can be concluded
that:
If f ( x1 ) > f ( x2 ) then the minimum does not lie in ( a, x1 ) .
If f ( x1 ) < f ( x2 ) then the minimum does not lie in ( x2 , b ) .
If f ( x1 ) = f ( x2 ) then the minimum does not lie in ( a, x1 ) and ( x2 , b ) .
f ( x)
x1
x2
f ( x)
x1
xm
x2
Algorithm:
Step 1: Choose lower bound a and upper bound b . Choose also a small
number . Let xm = ( a + b ) / 2, L0 = L = b a . Compute f ( xm ) .
Interval is divided into four equal segments
( 0.5)
reduces to about
( 0.5) ( b a ) =
n