X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=optimization%2Ftest_functions%2Fhimmelblau_hessian.m;h=b846a6ac17048323e4151df7115804960bef71af;hb=302a62bb7c0adf581916fcd1f93faa719e8d51e8;hp=5a8752fa93990305f5f6e2d57f20d392375b627e;hpb=4cf95f960c61165130795e7b5197cfe6e2829692;p=octave.git diff --git a/optimization/test_functions/himmelblau_hessian.m b/optimization/test_functions/himmelblau_hessian.m index 5a8752f..b846a6a 100644 --- a/optimization/test_functions/himmelblau_hessian.m +++ b/optimization/test_functions/himmelblau_hessian.m @@ -1,11 +1,11 @@ function H = himmelblau_hessian(x1, x2) - ## - ## The Hessian of the Himmelblau function. See himmelblau.m for more - ## information. - ## + % + % The Hessian of the Himmelblau function. See himmelblau.m for more + % information. + % H = zeros(2,2); H(1,1) = 12*x1^2 + 4*x2 - 42; H(1,2) = 4*x1 + 4*x2; - H(2,1) = 4*x1 + 4*x2; + H(2,1) = H(1,2); H(2,2) = 12*x2^2 + 4*x1 - 26; end