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[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)
- __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:
- property type¶
type property
- 戻り値の型: