Matrix¶

class Matrix¶

Methods

__init__

evaluate

evaluate

to_poly

to_poly

Attributes

constant

constant property

linear

linear property

quadratic

quadratic property

variable_array

variable_array property

__add__(self, arg: Constraint | ConstraintList, /) Model¶

__add__

パラメータ:

arg (Constraint | ConstraintList) --

戻り値の型:

Model

__eq__(self, arg: Matrix, /) bool¶

__eq__

パラメータ:

arg (Matrix) --

戻り値の型:

bool

__init__(*args, **kwargs)¶
__ne__(self, arg: Matrix, /) bool¶

__ne__

パラメータ:

arg (Matrix) --

戻り値の型:

bool

__radd__(self, arg: Constraint | ConstraintList, /) Model¶

__radd__

パラメータ:

arg (Constraint | ConstraintList) --

戻り値の型:

Model

__repr__(self) str¶

__repr__

戻り値の型:

str

__str__(self) str¶

__str__

戻り値の型:

str

evaluate(self, values: Values) float¶
evaluate(self, values: Values, default: float) float

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:

to_poly(self) Poly¶

to_poly

戻り値の型:

Poly

property constant¶

constant property

戻り値の型:

float

property linear¶

linear property

戻り値の型:

ndarray

property quadratic¶

quadratic property

戻り値の型:

ndarray

property variable_array¶

variable_array property

戻り値の型:

PolyArray