Constraint¶
- class Constraint(quadratic_program, name, sense, rhs)[source]¶
Bases:
QuadraticProgramElement
Abstract Constraint Class.
Initializes the constraint.
- Parameters:
Attributes
Returns the name of the constraint.
Returns the right-hand-side of the constraint.
Returns the sense of the constraint.
Methods
evaluate
(x)Evaluate left-hand-side of constraint for given values of variables.