X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=blobdiff_plain;f=optimization%2Ftest_functions%2Fextended_rosenbrock1.m;fp=optimization%2Ftest_functions%2Fextended_rosenbrock1.m;h=8d0b4f841761ddbc63c0a730ed3735ba8c93f69b;hp=1f545207a0ff0eee5c71a0b820979fff41601382;hb=b12c6c2a4bf4cef29b2e08b743c92889505c7ed9;hpb=e1b71b4ca7cfa08ac76744a17a3778d4ccfaa7e2 diff --git a/optimization/test_functions/extended_rosenbrock1.m b/optimization/test_functions/extended_rosenbrock1.m index 1f54520..8d0b4f8 100644 --- a/optimization/test_functions/extended_rosenbrock1.m +++ b/optimization/test_functions/extended_rosenbrock1.m @@ -1,17 +1,17 @@ function f = extended_rosenbrock1(x) - ## - ## The extended Rosenbrock function. See Dennis & Schnabel, Appendix - ## B, problem #1. - ## - ## This function has a minimum at x=(1,1,...,1) with f(x) == 0. The - ## suggested starting point is x0=(-1.2, 1,-1.2, 1,...,-1.2, 1). - ## Since the number of arguments is variable, we take a vector - ## instead of its individual components. - ## + % + % The extended Rosenbrock function. See Dennis & Schnabel, Appendix + % B, problem #1. + % + % This function has a minimum at x=(1,1,...,1) with f(x) == 0. The + % suggested starting point is x0=(-1.2, 1,-1.2, 1,...,-1.2, 1). + % Since the number of arguments is variable, we take a vector + % instead of its individual components. + % n = length(x); if (odd(n)) - ## 'm' below must be an integer. + % 'm' below must be an integer. f = NA; return; end