cobyqa.problem.NonlinearConstraints.__call__#

NonlinearConstraints.__call__(x)[source]#

Calculates the residual (slack) for the constraints.

Parameters:
xarray_like, shape (n,)

Point at which the constraints are evaluated.

Returns:
numpy.ndarray, shape (m_nonlinear_ub,)

Nonlinear inequality constraint slack values.

numpy.ndarray, shape (m_nonlinear_eq,)

Nonlinear equality constraint slack values.