cobyqa.problem.LinearConstraints#

class cobyqa.problem.LinearConstraints(constraints, n, debug)[source]#

Linear constraints a_ub @ x <= b_ub and a_eq @ x == b_eq.

Attributes:
a_eq

Left-hand side matrix of the linear equality constraints.

a_ub

Left-hand side matrix of the linear inequality constraints.

b_eq

Right-hand side vector of the linear equality constraints.

b_ub

Right-hand side vector of the linear inequality constraints.

m_eq

Number of linear equality constraints.

m_ub

Number of linear inequality constraints.

Methods

maxcv(x)

Evaluate the maximum constraint violation.