X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=blobdiff_plain;f=optimization%2Ftest_functions%2Frosenbrock.m;h=22b2730726846aaa8f3b5b99f8f433c0a1596a4b;hp=8073a0ae10adfe92ff703abc25abbed24567de97;hb=b12c6c2a4bf4cef29b2e08b743c92889505c7ed9;hpb=e1b71b4ca7cfa08ac76744a17a3778d4ccfaa7e2 diff --git a/optimization/test_functions/rosenbrock.m b/optimization/test_functions/rosenbrock.m index 8073a0a..22b2730 100644 --- a/optimization/test_functions/rosenbrock.m +++ b/optimization/test_functions/rosenbrock.m @@ -1,11 +1,11 @@ function f = rosenbrock(x1, x2) - ## - ## The Rosenbrock function. See Dennis & Schnabel, Appendix B, problem #1. - ## (The "regular" Rosenbrock function is simply the Extended Rosenbrock - ## with m=1). - ## - ## This function has a minimum at x=(1,1) with f(x) == 0. The - ## suggested starting point is x0=(-1.2, 1). - ## + % + % The Rosenbrock function. See Dennis & Schnabel, Appendix B, problem #1. + % (The "regular" Rosenbrock function is simply the Extended Rosenbrock + % with m=1). + % + % This function has a minimum at x=(1,1) with f(x) == 0. The + % suggested starting point is x0=(-1.2, 1). + % f = 100*(x2 - x1^2)^2 + (1 - x1)^2; end