Constraint#
- class Constraint(quadratic_program, name, sense, rhs)[fuente]#
Bases:
QuadraticProgramElement
Abstract Constraint Class.
Initializes the constraint.
- Parámetros:
Attributes
- name#
Returns the name of the constraint.
- Devuelve:
The name of the constraint.
- quadratic_program#
Returns the parent QuadraticProgram.
- Devuelve:
The parent QuadraticProgram.
- rhs#
Returns the right-hand-side of the constraint.
- Devuelve:
The right-hand-side of the constraint.
- sense#
Returns the sense of the constraint.
- Devuelve:
The sense of the constraint.
Methods