optiprofiler.FeaturedProblem.hess

optiprofiler.FeaturedProblem.hess#

FeaturedProblem.hess(x)[source]#

Evaluate the Hessian of the objective function.

Parameters:
xarray_like, shape (n,)

Point at which to evaluate the Hessian of the objective function.

Returns:
numpy.ndarray, shape (n, n)

Hessian of the objective function at x.

Raises:
ValueError

If the argument x has an invalid shape or if the return value of the argument hess has an invalid shape.