QHyper.constraint#
This module contains the Constraint class which is used to represent a, well, constraint. It is used in the QUBO formulation to define the left and right hand sides of the constraints, and the operator.
Main class
|
A class representing the constraint. |
Enum Classes
- class MethodsForInequalities(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Enum class with different methods for handling inequalities.
There are two available methods for handling inequalities: .. list-table:
* - SLACKS_LOG_2 - UNBALANCED_PENALIZATION * - the method uses slack variables in number of log2(n) - the method uses unbalanced penalization
Functions