BinaryQuadraticModelΒΆ

class BinaryQuadraticModelΒΆ

Bases: QuadraticModel

Methods

Attributes

__add__(arg: Constraint | ConstraintList)ΒΆ
__iadd__(arg: Constraint | ConstraintList)ΒΆ
__init__(arg0, arg1=None, *, method: QuadratizationMethod = QuadratizationMethod.IshikawaKZFD)ΒΆ
__init_subclass__()ΒΆ

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__radd__(arg: Constraint | ConstraintList)ΒΆ
check_constraints(values: Values) list[tuple[Constraint, bool]]ΒΆ
__abstractmethods__ = frozenset({})ΒΆ
__deprecated__ = 'BinaryQuadraticModel is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse Model instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html'ΒΆ
__dict__ = mappingproxy({'__module__': 'amplify._backward', '_intermediate_degrees': <classmethod(<function BinaryQuadraticModel._intermediate_degrees>)>, '__doc__': None, '__abstractmethods__': frozenset(), '_abc_impl': <_abc._abc_data object>, '__new__': <staticmethod(<function object.__new__>)>, '__init_subclass__': <function BinaryQuadraticModel.__init_subclass__>, '__deprecated__': 'BinaryQuadraticModel is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse Model instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html', '__annotations__': {'__intermediate_model': 'Model | None', '_intermediate_poly': 'Poly | None', '_intermediate_mapping': 'Result.ModelConversion.IntermediateMapping | None'}})ΒΆ
__slots__ = ()ΒΆ
__weakref__ΒΆ

list of weak references to the object (if defined)

property input_constraints: ConstraintListΒΆ
property input_matrix: Matrix | NoneΒΆ
property input_poly: Poly | NoneΒΆ
property logical_mapping: IntermediateMappingΒΆ
property logical_matrix: Matrix | NoneΒΆ
property logical_model_matrixΒΆ
property logical_model_poly: PolyΒΆ
property logical_poly: Poly | NoneΒΆ
property num_input_vars: intΒΆ
property num_logical_vars: intΒΆ
property substitution_multiplier: floatΒΆ