08-Jan-2022 08:59:24 praxis_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test praxis() beale_test() The Beale function. Initial point: 1: 0.1 2: 0.1 Function value = 12.991 Computed minimizer: 1: 3 2: 0.5 Function value = 3.71753e-26 box_test() The Box function. Initial point: 1: 0 2: 10 3: 20 Function value = 1031.15 Computed minimizer: 1: 1 2: 10 3: 1 Function value = 3.54505e-26 chebyquad_test(): The Chebyquad function. Initial point: 1: 0.111111 2: 0.222222 3: 0.333333 4: 0.444444 5: 0.555556 6: 0.666667 7: 0.777778 8: 0.888889 Function value = 0.196514 Computed minimizer: 1: 0.0431528 2: 0.193091 3: 0.266329 4: 0.5 5: 0.5 6: 0.733671 7: 0.806909 8: 0.956847 Function value = 0.0593032 CUBE_TEST The Cube function. Initial point: 1: -1.2 2: -1 Function value = 57.8384 Computed minimizer: 1: 1 2: 1 Function value = 5.6358e-25 HELIX_TEST The Fletcher-Powell Helix function. Initial point: 1: -1 2: 0 3: 0 Function value = 10000 Computed minimizer: 1: 1 2: -7.91937e-11 3: -1.25684e-10 Function value = 1.65737e-20 HILBERT_TEST The Hilbert function. Initial point: 1: 1 2: 1 3: 1 4: 1 5: 1 6: 1 7: 1 8: 1 9: 1 10: 1 Function value = 13.3754 Computed minimizer: 1: 0.000185956 2: -0.00837194 3: 0.0898214 4: -0.374324 5: 0.658553 6: -0.321733 7: -0.29317 8: 0.0973894 9: 0.369893 10: -0.218393 Function value = 1.89773e-09 POWELL3D_TEST The Powell 3D function. Initial point: 1: 0 2: 1 3: 2 Function value = 1.5 Computed minimizer: 1: 1 2: 1 3: 1 Function value = 0 ROSENBROCK_TEST The Rosenbrock function. Initial point: 1: -1.2 2: 1 Function value = 24.2 Computed minimizer: 1: 1 2: 1 Function value = 1.19238e-25 SINGULAR_TEST The Powell Singular function. Initial point: 1: 3 2: -1 3: 0 4: 1 Function value = 215 Computed minimizer: 1: -4.66769e-06 2: 4.66769e-07 3: 2.83677e-05 4: 2.8368e-05 Function value = 2.23957e-17 TRIDIAGONAL_TEST The Tridiagonal function. Initial point: 1: 0 2: 0 3: 0 4: 0 Function value = 0 Computed minimizer: 1: 4 2: 3 3: 2 4: 1 Function value = -4 WATSON_TEST The Watson function. Initial point: 1: 0 2: 0 3: 0 4: 0 5: 0 6: 0 Function value = 30 Computed minimizer: 1: -0.0157251 2: 1.01243 3: -0.232992 4: 1.26043 5: -1.51373 6: 0.992997 Function value = 0.00228767 WOOD_TEST The Wood function. Initial point: 1: -3 2: -1 3: -3 4: -1 Function value = 19192 Computed minimizer: 1: 1 2: 1 3: 1 4: 1 Function value = 6.53208e-22 MINFIT_TEST MINFIT computes part of the SVD of a matrix A. SVD: A = U * D * V' MINFIT is given A, and returns the diagonal D and the orthogonal matrix V. The matrix A: Col: 1 2 3 4 5 Row 1 : 2 -1 0 0 0 2 : -1 2 -1 0 0 3 : 0 -1 2 -1 0 4 : 0 0 -1 2 -1 5 : 0 0 0 -1 2 The vector V: Col: 1 2 3 4 5 Row 1 : -0.288675 0.5 -0.57735 0.5 -0.288675 2 : 0.5 -0.5 2.44073e-16 0.5 -0.5 3 : -0.57735 1.59595e-16 0.57735 -3.0807e-16 -0.57735 4 : 0.5 0.5 -6.39419e-17 -0.5 -0.5 5 : -0.288675 -0.5 -0.57735 -0.5 -0.288675 The singular values D: 1: 3.73205 2: 3 3: 2 4: 1 5: 0.267949 Because A is positive definite symmetric, we can reconstruct it as A = V * D * V' The product A2 = V * D * V' Col: 1 2 3 4 5 Row 1 : 2 -1 -4.30211e-16 -8.04912e-16 4.71845e-16 2 : -1 2 -1 4.57967e-16 -3.33067e-16 3 :-5.41234e-16 -1 2 -1 -2.84495e-16 4 :-8.04912e-16 3.46945e-16 -1 2 -1 5 : 4.71845e-16 -2.22045e-16 -2.84495e-16 -1 2 SVSORT_TEST SVSORT sorts a vector D, and the corresponding columns of a matrix V. First row = entries of D. Corresponding columns of V below. 0.337123 0.162182 0.794285 0.311215 0.528533 11 12 13 14 15 21 22 23 24 25 31 32 33 34 35 41 42 43 44 45 51 52 53 54 55 After sorting D and rearranging V: 0.794285 0.528533 0.337123 0.311215 0.162182 13 15 11 14 12 23 25 21 24 22 33 35 31 34 32 43 45 41 44 42 53 55 51 54 52 praxis_test(): Normal end of execution. 08-Jan-2022 08:59:25