cobyqa.models.Quadratic.__call__#

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

Evaluate the quadratic model at a given point.

Parameters:
xnumpy.ndarray, shape (n,)

Point at which the quadratic model is evaluated.

interpolationcobyqa.models.Interpolation

Interpolation set.

Returns:
float

Value of the quadratic model at x.