Beruflich Dokumente
Kultur Dokumente
f ( x , y ) =( x 2+ y11 ) + ( x + y 27 )
Function
Plot :
The same procedure is followed for 2c and 3c for solving the respective
functions with the fminunc matlab function.
Contour
1749
1093
218.6
1093
43.75
2.215
0.2473
21.89
2.215 43.75
109.3
2.215
0.2473
43.75
-2
21.89
2.215
0.2473
21.89
-4
437.2
1093
-6
-6
-4
-2
0
x
1093
2
Fig. Contour plot with (6,6) as initial point and (3,2) as local minima
1749
1093
218.6
1093
43.75
2.215
0.2473
21.89
2.215 43.75
109.3
2.215
0.2473
43.75
-2
21.89
2.215
0.2473
21.89
-4
437.2
1093
-6
-6
-4
-2
0
x
1093
2
1749
1093
218.6
1093
43.75
2.215
0.2473
21.89
2.215 43.75
109.3
2.215
0.2473
43.75
-2
21.89
2.215
0.2473
21.89
-4
437.2
1093
-6
-6
-4
-2
1093
0
x
Fig. Contour plot with ( 6,-6) as starting point and ( 3.5844, -1.8481)
as local minima
1749
1093
218.6
1093
43.75
2.215
0.2473
21.89
2.215 43.75
109.3
2.215
0.2473
43.75
-2
21.89
2.215
0.2473
21.89
-4
437.2
1093
-6
-6
-4
-2
0
x
1093
2
TOOL BOX
RESULTS
x=
3
1.4181678397053073E-7
y=
fmin =
Prob 2
2a) Six Hump Camel Back Function : The significance of new
optimization algorithms depends on the effectiveness of solving practical
problems. Six Hump camel back function is used to test the performance and
reliability of optimization algorithms. Six Hump Back Camel Function :
1
f ( x , y ) = 42.1 x 2 + x 4 x 2 + xy + (4 +4 y 2 ) y 2
3
Where
(3 x 3,2 y 2)
It is known that the function has six local minima, as the name of the
function suggests and has one global minimum value at two points. Because
of this, many algorithms can only find the local minima but miss the global
optimization solution.
2b) Plot Contours
code
Function
Plot
0.09
y=
-0.713
fmin= -1.0316284494150305
Prob. 3
3a) Branin rcos function : It is a global optimization test function. The
function has three global optima.
Function definition :
2
5.1 2 5
1
(
)
f x , y =1 y 2 x + x6 + 10 1
cos x+ 10
8
4
) (
Plot
y= 2.275 Fmin=0.39788642863474166
Reference
[1] http://www.mathworks.com/discovery/genetic-algorithm.html