cobyqa.models.Models.fun_grad#

Models.fun_grad(x)[source]#

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

Parameters:
xnumpy.ndarray, shape (n,)

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

Returns:
numpy.ndarray, shape (n,)

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