cobyqa.models.Models.fun_alt_grad#

Models.fun_alt_grad(x)[source]#

Evaluate the gradient of the alternative quadratic model of the objective function at a given point.

Parameters:
xnumpy.ndarray, shape (n,)

Point at which to evaluate the gradient of the alternative quadratic model of the objective function.

Returns:
numpy.ndarray, shape (n,)

Gradient of the alternative quadratic model of the objective function at x.

Raises:
numpy.linalg.LinAlgError

If the interpolation system is ill-defined.