cobyqa.models.Quadratic.grad#

Quadratic.grad(x, interpolation)[source]#

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

Parameters:
xnumpy.ndarray, shape (n,)

Point at which the gradient of the quadratic model is evaluated.

interpolationcobyqa.models.Interpolation

Interpolation set.

Returns:
numpy.ndarray, shape (n,)

Gradient of the quadratic model at x.