#8 Univariate - Pattern - Search
#8 Univariate - Pattern - Search
x1 x0
x1
(-0.46,0) (0,0)
Univariate and Pattern search
s2
x6
x 4 (-0.67,0.78)
x2
(-0.72, 0.78) x5 s1
x 2 (-0.46,0.64)
(-0.67,0.64) x3
x1 x0
x1
(-0.46,0) (0,0)
Univariate and Pattern search
Minimize
f ( x1 , x2 ) = 5.5 x1 − 2 x2 + 6 x12 + 3x22 + 4 x1 x2
x T
0 = 0 0
f ( − , 0 ) = 6 2 − 5.5
− −0.4583
df x1 = =
= 12 − 5.5 = 0 0
0
d
5.5
= = −0.4583
12
Univariate search
x1 x0
x1
(-0.46,0) (0,0)
Univariate and Pattern search
Vary the value of x2 along the vertical direction
ε=0.01
xT2 = x1 x2
x2
f + (xT2 ) = f −0.4583 = −1.2984
f − (xT2 ) = f −0.4583 − = −1.2218
Direction f + (xT2 ) f − (xT2 )
of minimum
+ε
(-0.4583,0)
𝐱0
𝐱1 x1 Univariate search
-ε
−0.4583 0 −0.4583
x 2 = x1 + s = + 1 =
0
f + (x3+ ) = −2.4965
f − (x3− ) = −2.4731
x1 x0
x1
(-0.46,0) (0,0)
Pattern search
Consider the following equation
Due to a univariate search in the horizontal and vertical directions for searching the
minimum, the coordinates have moved from (-0.15,-0.65) to (-0.0517, -0.6550).
Determine the direction of pattern search and the next coordinate that can be reached
from the pattern search in search of minimum value.
−0.15 −0.0517
x0 = ; x =
2 −0.6550
−0.65
The direction of the vector joining the above points is given by
−0.0517 −0.15 0.0983
s = x2 − x0 = − =
−0.6550 −0.65 −0.0050
The normalized direction is given by
1 0.0983 0.9987
s= =
0.0984 −0.0050 −0.0508
−0.0517 0.9987
x3 = x 2 + s = + −0.0508
−0.6550
−0.0517 + 0.9987
=
−0.6550 − 0.0508
The given objective function can be written as follows
f ( x1 + s1 , x2 + s2 ) = 20 + 3 ( x1 + s1 )
+7 ( x2 + s2 ) + 10 ( x1 + s1 )
2
+ 5 ( x2 + s2 ) + 3 ( x1 + s1 )( x2 + s2 )
2
df ( x1 + s1 , x2 + s2 )
= 3s1 + 7 s2 + 20s1 ( x1 + s1 )
d
+10 s2 ( x2 + s2 ) + 3s2 ( x1 + s1 ) + 3s1 ( x2 + s2 ) = 0
−3s1 − 7 s2 − 20 x1s1 − 10 x2 s2 − 3 x1s2 − 3x2 s1
=
20 s12 + 10 s22 + 6 s1s2
x1 = −0.0517
x2 = −0.6550
s1 = 0.9987
s2 = −0.0508
−3 0.9987 − 7 −0.0508 − 20 −0.0517 0.9987
−10 −0.6550 −0.0508 − 3 −0.0517 −0.0508
−3 −0.6550 0.9987
=
20 0.9987 2 + 10 ( −0.0508 ) + 6 0.9987 −0.0508
2
= 7.1083 10−4
−0.0517 0.9987
x3 = x 2 + s = +
−0.6550 −0.0508
−0.0517 + 0.9987 −0.0517 + 0.9987 7.1083 10 −4
= = −4
−0.6550 − 0.0508 −0.6550 − 0.0508 7.1083 10
−0.0510
=
−0.6550
Conclusion