cobyqa.models.Models.fun#

Models.fun(x)[source]#

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

Parameters:
xnumpy.ndarray, shape (n,)

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

Returns:
float

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