cobyqa.models.Models.cub_curv#

Models.cub_curv(v, mask=None)[source]#

Evaluate the curvature of the quadratic models of the nonlinear inequality functions along a given direction.

Parameters:
vnumpy.ndarray, shape (n,)

Direction along which the curvature of the quadratic models of the nonlinear inequality functions is evaluated.

masknumpy.ndarray, shape (m_nonlinear_ub,), optional

Mask of the quadratic models to consider.

Returns:
numpy.ndarray

Curvature of the quadratic models of the nonlinear inequality functions along v.