Constraint¶
- class Constraint(quadratic_program, name, sense, rhs)[source]¶
Bases:
QuadraticProgramElement
Abstract Constraint Class.
Initializes the constraint.
- Parameters:
Attributes
- name¶
Returns the name of the constraint.
- Returns:
The name of the constraint.
- quadratic_program¶
Returns the parent QuadraticProgram.
- Returns:
The parent QuadraticProgram.
- rhs¶
Returns the right-hand-side of the constraint.
- Returns:
The right-hand-side of the constraint.
- sense¶
Returns the sense of the constraint.
- Returns:
The sense of the constraint.
Methods