PolyΒΆ
- class 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
- __add__(self, arg: Constraint | ConstraintList, /) Model
__add__
- Overloading:
1. __add__(self, arg: Union[amplify.Poly, float], /) -> amplify.Poly
- Args:
arg (amplify.Poly | float):
- Returns:
amplify.Poly:
2. __add__(self, arg: numpy.ndarray, /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
3. __add__(self, arg: Union[amplify.Constraint, amplify.ConstraintList], /) -> amplify.Model
- Args:
arg (amplify.Constraint | amplify.ConstraintList):
- Returns:
amplify.Model:
- __and__(self, arg: Poly | bool, /) Poly ΒΆ
- __and__(self, arg: ndarray[Any, dtype[numpy.bool_]], /) PolyArray
__and__
- Overloading:
1. __and__(self, arg: Union[amplify.Poly, bool], /) -> amplify.Poly
- Args:
arg (amplify.Poly | bool):
- Returns:
amplify.Poly:
2. __and__(self, arg: numpy.ndarray[Any, numpy.dtype[numpy.bool_]], /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- __mul__(self, arg: Poly | float, /) Poly ΒΆ
- __mul__(self, arg: ndarray, /) PolyArray
__mul__
- Overloading:
1. __mul__(self, arg: Union[amplify.Poly, float], /) -> amplify.Poly
- Args:
arg (amplify.Poly | float):
- Returns:
amplify.Poly:
2. __mul__(self, arg: numpy.ndarray, /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- __or__(self, arg: Poly | bool, /) Poly ΒΆ
- __or__(self, arg: ndarray[Any, dtype[numpy.bool_]], /) PolyArray
__or__
- Overloading:
1. __or__(self, arg: Union[amplify.Poly, bool], /) -> amplify.Poly
- Args:
arg (amplify.Poly | bool):
- Returns:
amplify.Poly:
2. __or__(self, arg: numpy.ndarray[Any, numpy.dtype[numpy.bool_]], /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- __radd__(self, arg: float, /) Poly ΒΆ
- __radd__(self, arg: ndarray, /) PolyArray
- __radd__(self, arg: Constraint | ConstraintList, /) Model
__radd__
- Overloading:
1. __radd__(self, arg: float, /) -> amplify.Poly
- Args:
arg (float):
- Returns:
amplify.Poly:
2. __radd__(self, arg: numpy.ndarray, /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
3. __radd__(self, arg: Union[amplify.Constraint, amplify.ConstraintList], /) -> amplify.Model
- Args:
arg (amplify.Constraint | amplify.ConstraintList):
- Returns:
amplify.Model:
- __rand__(self, arg: bool, /) Poly ΒΆ
- __rand__(self, arg: ndarray[Any, dtype[numpy.bool_]], /) PolyArray
__rand__
- Overloading:
1. __rand__(self, arg: bool, /) -> amplify.Poly
- Args:
arg (bool):
- Returns:
amplify.Poly:
2. __rand__(self, arg: numpy.ndarray[Any, numpy.dtype[numpy.bool_]], /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- __rmul__(self, arg: float, /) Poly ΒΆ
- __rmul__(self, arg: ndarray, /) PolyArray
__rmul__
- Overloading:
1. __rmul__(self, arg: float, /) -> amplify.Poly
- Args:
arg (float):
- Returns:
amplify.Poly:
2. __rmul__(self, arg: numpy.ndarray, /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- __ror__(self, arg: bool, /) Poly ΒΆ
- __ror__(self, arg: ndarray[Any, dtype[numpy.bool_]], /) PolyArray
__ror__
- Overloading:
1. __ror__(self, arg: bool, /) -> amplify.Poly
- Args:
arg (bool):
- Returns:
amplify.Poly:
2. __ror__(self, arg: numpy.ndarray[Any, numpy.dtype[numpy.bool_]], /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- __rsub__(self, arg: float, /) Poly ΒΆ
- __rsub__(self, arg: ndarray, /) PolyArray
__rsub__
- Overloading:
1. __rsub__(self, arg: float, /) -> amplify.Poly
- Args:
arg (float):
- Returns:
amplify.Poly:
2. __rsub__(self, arg: numpy.ndarray, /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- __rxor__(self, arg: bool, /) Poly ΒΆ
- __rxor__(self, arg: ndarray[Any, dtype[numpy.bool_]], /) PolyArray
__rxor__
- Overloading:
1. __rxor__(self, arg: bool, /) -> amplify.Poly
- Args:
arg (bool):
- Returns:
amplify.Poly:
2. __rxor__(self, arg: numpy.ndarray[Any, numpy.dtype[numpy.bool_]], /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- __sub__(self, arg: Poly | float, /) Poly ΒΆ
- __sub__(self, arg: ndarray, /) PolyArray
__sub__
- Overloading:
1. __sub__(self, arg: Union[amplify.Poly, float], /) -> amplify.Poly
- Args:
arg (amplify.Poly | float):
- Returns:
amplify.Poly:
2. __sub__(self, arg: numpy.ndarray, /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- __truediv__(self, arg: float, /) Poly ΒΆ
- __truediv__(self, arg: ndarray, /) PolyArray
__truediv__
- Overloading:
1. __truediv__(self, arg: float, /) -> amplify.Poly
- Args:
arg (float):
- Returns:
amplify.Poly:
2. __truediv__(self, arg: numpy.ndarray, /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- __xor__(self, arg: Poly | bool, /) Poly ΒΆ
- __xor__(self, arg: ndarray[Any, dtype[numpy.bool_]], /) PolyArray
__xor__
- Overloading:
1. __xor__(self, arg: Union[amplify.Poly, bool], /) -> amplify.Poly
- Args:
arg (amplify.Poly | bool):
- Returns:
amplify.Poly:
2. __xor__(self, arg: numpy.ndarray[Any, numpy.dtype[numpy.bool_]], /) -> amplify.PolyArray
- Args:
arg (numpy.ndarray):
- Returns:
amplify.PolyArray:
- decode(self, values: Values) float ΒΆ
- decode(self, values: Values, default: float) float
- decode(self, values: Values, default: None | None) Poly
decode
- Overloading:
1. decode(self, values: amplify.Values) -> float
- Args:
values (amplify.Values):
- Returns:
float:
2. decode(self, values: amplify.Values, default: float) -> float
- Args:
values (amplify.Values):
default (float):
- Returns:
float:
3. decode(self, values: amplify.Values, default: Optional[None]) -> amplify.Poly
- Args:
values (amplify.Values):
default (None | None):
- Returns:
amplify.Poly:
- evaluate(self, values: Values) float ΒΆ
- evaluate(self, values: Values, default: float) float
- evaluate(self, values: Values, default: None | None) Poly
evaluate
- Overloading:
1. evaluate(self, values: amplify.Values) -> float
- Args:
values (amplify.Values):
- Returns:
float:
2. evaluate(self, values: amplify.Values, default: float) -> float
- Args:
values (amplify.Values):
default (float):
- Returns:
float:
3. evaluate(self, values: amplify.Values, default: Optional[None]) -> amplify.Poly
- Args:
values (amplify.Values):
default (None | None):
- Returns:
amplify.Poly:
- property typeΒΆ
type property
- Return type: