cobyqa.models.Models.cub#

Models.cub(x, mask=None)[source]#

Evaluate the quadratic models of the nonlinear inequality functions at a given point.

Parameters:
xnumpy.ndarray, shape (n,)

Point at which to evaluate the quadratic models of the nonlinear inequality functions.

masknumpy.ndarray, shape (m_nonlinear_ub,), optional

Mask of the quadratic models to consider.

Returns:
numpy.ndarray

Values of the quadratic model of the nonlinear inequality functions.