cobyqa.problem.NonlinearConstraints#

class cobyqa.problem.NonlinearConstraints(fun, is_equality, verbose, store_hist, hist_size, debug, *args)[source]#

Nonlinear constraints fun(x) <= 0 or fun(x) == 0.

Attributes:
f_hist

History of function evaluations.

is_equality

Whether the nonlinear constraints are equality constraints.

m

Number of nonlinear constraints.

n_eval

Number of function evaluations.

name

Name of the function.

x_hist

History of variables.

Methods

__call__(x)

Evaluate the function.

apply_barrier([val])

Apply the barrier function to the function value.

project(x)

Project a point onto the feasible set.

resid(x, *args)

Evaluate the constraint residuals.