cobyqa.problem.NonlinearConstraints.maxcv#

NonlinearConstraints.maxcv(x, cub_val=None, ceq_val=None)[source]#

Evaluate the maximum constraint violation.

Parameters:
xarray_like, shape (n,)

Point at which the maximum constraint violation is evaluated.

cub_valarray_like, shape (m_nonlinear_ub,), optional

Values of the nonlinear inequality constraints. If not provided, the nonlinear inequality constraints are evaluated at x.

ceq_valarray_like, shape (m_nonlinear_eq,), optional

Values of the nonlinear equality constraints. If not provided, the nonlinear equality constraints are evaluated at x.

Returns:
float

Maximum constraint violation at x.