QuadraticProgram.get_quadratic_constraint¶
- QuadraticProgram.get_quadratic_constraint(i)[source]¶
Returns a quadratic constraint for a given name or index.
- Parameters:
- Return type:
- Returns:
The corresponding constraint.
- Raises:
IndexError – if the index is out of the list size
KeyError – if the name does not exist