20 February 2012 10:17:07 PM TEST_OPTIMIZATION_PRB C++ version Test the TEST_OPTIMIZATION library. TEST01 For each problem, print the title. Problem Title 1 The sphere model. 2 The axis-parallel hyper-ellipsoid function. 3 The rotated hyper-ellipsoid function. 4 Rosenbrock's valley. 5 Rastrigin's function. 6 Schwefel's function. 7 Griewank's function. 8 The power sum function. 9 Ackley's function. 10 Michalewicz's function. 11 Drop wave function. 12 The deceptive function. TEST02 For each problem, using dimension M = 2 sample the function at N = 1000 points, and print the minimum and maximum. Problem Minimum Sample Minimum Sample Maximum 1 0 0.0516986 70.5413 2 0 0.00075732 74.2256 3 0 10.156 20408.6 4 0 0.0114314 26.2644 5 0 2.05509 78.7782 6 -837.966 -799.403 827.253 7 0 0.403142 174.86 8 0 0.00246137 1.86189 9 4.44089e-16 6.86253 22.2046 10 -1.71581 -2.38674e-50 11 -1 -0.930511 -3.27602e-10 12 -1 -0.838665 -0.000518637 TEST03 For each problem, using dimension M = 2 try compass search. Problem 1 DELTA_INIT = 0.804305 Initial: -2.81582 4.56318 27.2567 Final: 1 1 6.48706e-14 Steps = 47 Exact: 1 1 0 Problem 2 DELTA_INIT = 0.823608 Initial: -2.8834 4.67269 51.9821 Final: 5.11938e-07 6.30906e-07 1.05816e-12 Steps = 47 Exact: 0 0 0 Problem 3 DELTA_INIT = 10.5422 Initial: -36.9075 59.8105 1886.71 Final: 2.69175e-07 -7.21494e-07 2.77047e-13 Steps = 61 Exact: 0 0 0 Problem 4 DELTA_INIT = 0.329443 Initial: -1.15336 1.86908 14.5274 Final: 0.999999 1 7.56384e-13 Steps = 54 Exact: 1 1 0 Problem 5 DELTA_INIT = 0.823608 Initial: -2.8834 4.67269 47.3826 Final: -1.98991 2.98486 12.9344 Steps = 41 Exact: 0 0 0 Problem 6 DELTA_INIT = 80.4305 Initial: -281.582 456.318 -516.006 Final: -302.525 420.969 -719.527 Steps = 54 Exact: 420.969 420.969 -837.966 Problem 7 DELTA_INIT = 96.5166 Initial: -337.898 547.581 104.63 Final: 53.3804 -31.0691 0.954286 Steps = 66 Exact: 0 0 0 Problem 8 DELTA_INIT = 0.160861 Initial: -0.563163 0.912635 1.07729 Final: -2.0683e-07 1.23224e-07 4.27787e-14 Steps = 44 Exact: 0 0 0 Problem 9 DELTA_INIT = 5.27109 Initial: -18.4537 29.9052 20.3954 Final: -19.9821 29.9731 19.8777 Steps = 44 Exact: 0 0 4.44089e-16 Problem 10 DELTA_INIT = 0.462259 Initial: 0.686181 3.00436 -2.05666e-07 Final: 2.20291 2.71157 -1.21406 Steps = 42 Problem 11 DELTA_INIT = 0.823608 Initial: -2.8834 4.67269 -0.000210376 Final: -0.570516 4.67269 -0.15277 Steps = 32 Exact: 0 0 -1 Problem 12 DELTA_INIT = 0.147142 Initial: 0.218418 0.956318 -0.165526 Final: 0.333333 0.999999 -0.809997 Steps = 39 Exact: 0.333333 0.666667 -1 TEST_OPTIMIZATION_PRB Normal end of execution. 20 February 2012 10:17:07 PM