X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=optimization%2Ftest_functions%2Frosenbrock_hessian.m;fp=optimization%2Ftest_functions%2Frosenbrock_hessian.m;h=cd2a2b502a62e4a625046d26119da19430ba8c06;hb=75563505172dce2cc78116f0884819ca32620dbe;hp=0000000000000000000000000000000000000000;hpb=1e0c72bb336872f0839305340eb9699a87a40319;p=octave.git diff --git a/optimization/test_functions/rosenbrock_hessian.m b/optimization/test_functions/rosenbrock_hessian.m new file mode 100644 index 0000000..cd2a2b5 --- /dev/null +++ b/optimization/test_functions/rosenbrock_hessian.m @@ -0,0 +1,11 @@ +function H = rosenbrock_hessian(x1, x2) + ## + ## The Hessian of the Rosenbrock function. See rosenbrock.m for more + ## information. + ## + H = zeros(2,2); + H(1,1) = 1200*x1^2 - 400*x2 + 2; + H(1,2) = -400*x1; + H(2,1) = -400*x1; + H(2,2) = 200; +end