04-Oct-2022 09:18:59 compass_search_test(): MATLAB/Octave version 4.2.2. Test compass_search(). beale_test(): compass_search() applied to the Beale function. Initial point x0: 1 1 F(X0) = 14.2031 Estimated minimizer x1: 3.00013 0.50004 F(X1) = 3.14079e-09, number of steps = 10685 Initial point x0: 1 4 F(X0) = 4624.45 Estimated minimizer x1: -15.6686 1.0600 F(X1) = 0.547042, number of steps = 20000 Correct minimizer x*: 3.00000 0.50000 F(X*) = 0 bohach1_test(): compass_search() applied to the Bohachevsky function #1. Initial point x0: 0.50000 1.00000 F(X0) = 2.55 Estimated minimizer x1: -6.1035e-06 6.1035e-06 F(X1) = 1.78466e-09, number of steps = 48 Correct minimizer x*: 0 0 F(X*) = 0 bohach2_test(): compass_search() applied to the Bohachevsky function #2. Initial point x0: 0.60000 1.30000 F(X0) = 4.23635 Estimated minimizer x1: 0.0000e+00 6.1035e-06 F(X1) = 9.56917e-10, number of steps = 37 Correct minimizer x*: 0 0 F(X*) = 0 broyden_test(): compass_search() applied to the Broyden function. Initial point x0: -0.90000 -1.00000 F(X0) = 2.37332 Estimated minimizer x1: -0.51156 -0.39819 F(X1) = 0.0221649, number of steps = 32 Correct minimizer x*: -0.51155 -0.39816 F(X*) = 0.000144114 extended_rosenbrock_test(): compass_search() applied to the extended Rosenbrock function. Initial point x0: -1.2000 1.0000 -1.5000 1.2000 F(X0) = 140.7 Estimated minimizer x1: 0.99538 0.99077 0.99609 0.99219 F(X1) = 3.66233e-05, number of steps = 10154 Correct minimizer x*: 1 1 1 1 F(X*) = 0 goldstein_price_test(): compass_search() applied to the Goldstein-Price function. Initial point x0: -0.50000 0.25000 F(X0) = 2738.74 Estimated minimizer x1: -0.60003 -0.39997 F(X1) = 30, number of steps = 67 Initial point x0: -4 5 F(X0) = 3.44437e+07 Estimated minimizer x1: 1.19999 0.80000 F(X1) = 840, number of steps = 72 Correct minimizer x*: 0 -1 F(X*) = 3 himmelblau_test(): compass_search() applied to the Himmelblau function. Initial point x0: 1 1 F(X0) = 106 Estimated minimizer x1: 3.0000 2.0000 F(X1) = 1.2666e-09, number of steps = 39 Initial point x0: -1 1 F(X0) = 130 Estimated minimizer x1: -2.8051 3.1313 F(X1) = 2.65844e-09, number of steps = 41 Initial point x0: -1 -1 F(X0) = 170 Estimated minimizer x1: -3.7793 -3.2832 F(X1) = 3.91873e-09, number of steps = 48 Initial point x0: 1 -1 F(X0) = 146 Estimated minimizer x1: 3.5844 -1.8481 F(X1) = 1.05849e-09, number of steps = 44 Correct minimizer x1*: 3 2 F(X*) = 0 Correct minimizer x2*: 3.5844 -1.8481 F(X*) = 7.81168e-08 Correct minimizer x3*: -3.7793 -3.2832 F(X*) = 7.61596e-08 Correct minimizer x4*: -2.8051 3.1313 F(X*) = 3.04269e-08 local_test(): compass_search() applied to the Local function. Initial point x0: 1 1 F(X0) = 3.33077e+06 Estimated minimizer x1: 0.78981 0.25000 F(X1) = 6.88507, number of steps = 44 Correct local minimizer x*: 0.28581 0.27933 F(X*) = 5.92256 Initial point x0: -15 -35 F(X0) = 1.49636e+08 Estimated minimizer x1: -21.042 -36.736 F(X1) = 0.90452, number of steps = 13385 Correct global minimizer x*: -21.027 -36.760 F(X*) = 1.42426e-06 mckinnon_test(): compass_search() applied to the McKinnon function. Initial point x0: 0.84307 -0.59307 PHI = 10.000000, TAU = 1.000000, THETA = 15.000000 F(X0) = 12.4047 Estimated minimizer x1: 1.6132e-05 -5.0000e-01 F(X1) = -0.249758, number of steps = 35 Correct minimizer x*: 0.00000 -0.50000 F(X*) = -0.25 Initial point x0: 0.84307 -0.59307 PHI = 60.000000, TAU = 2.000000, THETA = 6.000000 F(X0) = 4.02327 Estimated minimizer x1: 1.6132e-05 -5.0000e-01 F(X1) = -0.25, number of steps = 35 Correct minimizer x*: 0.00000 -0.50000 F(X*) = -0.25 Initial point x0: 0.84307 -0.59307 PHI = 4000.000000, TAU = 3.000000, THETA = 6.000000 F(X0) = 3.35402 Estimated minimizer x1: 1.6132e-05 -5.0000e-01 F(X1) = -0.25, number of steps = 36 Correct minimizer x*: 0.00000 -0.50000 F(X*) = -0.25 powell_test(): compass_search() applied to the Powell function. Initial point x0: 3 -1 0 1 F(X0) = 55 Estimated minimizer x1: 1.6479e-04 -2.4414e-05 1.8311e-05 9.7656e-05 F(X1) = 2.08244e-08, number of steps = 289 Correct minimizer x*: 0 0 0 0 F(X*) = 0 rosenbrock_test(): compass_search() applied to the Rosenbrock function. Initial point x0: -1.2000 1.0000 F(X0) = 24.2 Estimated minimizer x1: 0.99538 0.99077 F(X1) = 2.13561e-05, number of steps = 4981 Correct minimizer x*: 1 1 F(X*) = 0 compass_search_test(): Normal end of execution. 04-Oct-2022 09:19:05