IsingPolyΒΆ
- class IsingPolyΒΆ
Bases:
Poly
alias of
Poly
Methods
__init__
as_dict
as_variable
alias of
as_dict()
decode
degree
evaluate
is_linear
is_number
is_quadratic
is_variable
substitute
Attributes
id property
lower_bound property
name property
type property
upper_bound property
variables property
- __add__(self, arg: Poly | float, /) Poly ΒΆ
- __add__(self, arg: ndarray[], /) PolyArray[Dim]
- __add__(self, arg: Constraint | ConstraintList, /) Model
__add__
Overload 1.
- Args:
arg (amplify.Poly | float)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
Overload 3.
- Args:
arg (amplify.Constraint | amplify.ConstraintList)
- Returns:
amplify.Model:
- __and__(self, arg: Poly | bool, /) Poly ΒΆ
- __and__(self, arg: ndarray[dtype=bool], /) PolyArray[Dim]
__and__
Overload 1.
- Args:
arg (amplify.Poly | bool)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- __init__(self) None ΒΆ
- __init__(self, arg: float, /) None
- __init__(self, arg: Variable, /) None
__init__
Overload 2.
- Args:
arg (float)
Overload 3.
- Args:
arg (amplify.Variable)
- __init_subclass__()ΒΆ
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- __mul__(self, arg: Poly | float, /) Poly ΒΆ
- __mul__(self, arg: ndarray[], /) PolyArray[Dim]
__mul__
Overload 1.
- Args:
arg (amplify.Poly | float)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- __or__(self, arg: Poly | bool, /) Poly ΒΆ
- __or__(self, arg: ndarray[dtype=bool], /) PolyArray[Dim]
__or__
Overload 1.
- Args:
arg (amplify.Poly | bool)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- __radd__(self, arg: float, /) Poly ΒΆ
- __radd__(self, arg: ndarray[], /) PolyArray[Dim]
- __radd__(self, arg: Constraint | ConstraintList, /) Model
__radd__
Overload 1.
- Args:
arg (float)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
Overload 3.
- Args:
arg (amplify.Constraint | amplify.ConstraintList)
- Returns:
amplify.Model:
- __rand__(self, arg: bool, /) Poly ΒΆ
- __rand__(self, arg: ndarray[dtype=bool], /) PolyArray[Dim]
__rand__
Overload 1.
- Args:
arg (bool)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- __rmul__(self, arg: float, /) Poly ΒΆ
- __rmul__(self, arg: ndarray[], /) PolyArray[Dim]
__rmul__
Overload 1.
- Args:
arg (float)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- __ror__(self, arg: bool, /) Poly ΒΆ
- __ror__(self, arg: ndarray[dtype=bool], /) PolyArray[Dim]
__ror__
Overload 1.
- Args:
arg (bool)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- __rsub__(self, arg: float, /) Poly ΒΆ
- __rsub__(self, arg: ndarray[], /) PolyArray[Dim]
__rsub__
Overload 1.
- Args:
arg (float)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- __rxor__(self, arg: bool, /) Poly ΒΆ
- __rxor__(self, arg: ndarray[dtype=bool], /) PolyArray[Dim]
__rxor__
Overload 1.
- Args:
arg (bool)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- __sub__(self, arg: Poly | float, /) Poly ΒΆ
- __sub__(self, arg: ndarray[], /) PolyArray[Dim]
__sub__
Overload 1.
- Args:
arg (amplify.Poly | float)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- __truediv__(self, arg: float, /) Poly ΒΆ
- __truediv__(self, arg: ndarray[], /) PolyArray[Dim]
__truediv__
Overload 1.
- Args:
arg (float)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- __xor__(self, arg: Poly | bool, /) Poly ΒΆ
- __xor__(self, arg: ndarray[dtype=bool], /) PolyArray[Dim]
__xor__
Overload 1.
- Args:
arg (amplify.Poly | bool)
- Returns:
amplify.Poly:
Overload 2.
- Args:
arg (ndarray)
- Returns:
amplify.PolyArray[Dim]:
- decode(self, values: Values) float ΒΆ
- decode(self, values: Values, default: float) float
- decode(self, values: Values, default: None) Poly
decode
Overload 1.
- Args:
values (amplify.Values)
- Returns:
float:
Overload 2.
- Args:
values (amplify.Values)
default (float)
- Returns:
float:
Overload 3.
- Args:
values (amplify.Values)
default (None)
- Returns:
amplify.Poly:
- evaluate(self, values: Values) float ΒΆ
- evaluate(self, values: Values, default: float) float
- evaluate(self, values: Values, default: None) Poly
evaluate
Overload 1.
- Args:
values (amplify.Values)
- Returns:
float:
Overload 2.
- Args:
values (amplify.Values)
default (float)
- Returns:
float:
Overload 3.
- Args:
values (amplify.Values)
default (None)
- Returns:
amplify.Poly:
- __deprecated__ = 'IsingPoly is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse Poly instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html'ΒΆ
- __dict__ = mappingproxy({'__module__': 'amplify._backward', '__doc__': 'alias of :class:`~amplify.Poly`', '__dict__': <attribute '__dict__' of 'IsingPoly' objects>, '__weakref__': <attribute '__weakref__' of 'IsingPoly' objects>, '__new__': <staticmethod(<function Poly.__new__>)>, '__init_subclass__': <function IsingPoly.__init_subclass__>, '__deprecated__': 'IsingPoly is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse Poly instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html', '__annotations__': {}})ΒΆ
- __weakref__ΒΆ
list of weak references to the object (if defined)
- property typeΒΆ
type property
- Return type: