cobyqa.problem.LinearConstraints#

class cobyqa.problem.LinearConstraints(a, b, is_equality, debug)[source]#

Linear constraints a @ x <= b or a @ x == b.

Attributes:
a

Left-hand side of the linear constraints.

b

Right-hand side of the linear constraints.

is_equality

Whether the linear constraints are equality constraints.

m

Number of linear constraints.

Methods

project(x)

Project a point onto the feasible set.

resid(x, *args)

Evaluate the constraint residuals.