function H = wood_hessian(x1, x2, x3, x4)
- ##
- ## The Hessian of the Wood function. See wood.m for more
- ## information.
- ##
+ %
+ % The Hessian of the Wood function. See wood.m for more
+ % information.
+ %
H = zeros(4,4);
H(1,1) = 1200*x(1)^2 - 400*x(2) + 2;
H(1,2) = -400*x(1);