BinaryMatrixΒΆ

class BinaryMatrixΒΆ

Bases: 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__

Parameters:

arg (Constraint | ConstraintList)

Return type:

Model

__eq__(self, arg: object, /) boolΒΆ

__eq__

Parameters:

arg (object)

Return type:

bool

__init__(*args, **kwargs)ΒΆ
__init_subclass__()ΒΆ

This method is called when a class is subclassed.

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

__ne__(self, arg: object, /) boolΒΆ

__ne__

Parameters:

arg (object)

Return type:

bool

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

__radd__

Parameters:

arg (Constraint | ConstraintList)

Return type:

Model

__repr__(self) strΒΆ

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

evaluate(self, values: Values) floatΒΆ
evaluate(self, values: Values, default: float) float

evaluate

Overload 1.

Args:
  • values (amplify.Values)

Returns:

float:

Overload 2.

Args:
  • values (amplify.Values)

  • default (float)

Returns:

float:

to_poly(self) PolyΒΆ

to_poly

Return type:

Poly

__deprecated__ = 'BinaryMatrix is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse Matrix instead. Please see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html'ΒΆ
__dict__ = mappingproxy({'__module__': 'amplify._backward', '__dict__': <attribute '__dict__' of 'BinaryMatrix' objects>, '__weakref__': <attribute '__weakref__' of 'BinaryMatrix' objects>, '__doc__': None, '__new__': <staticmethod(<function Matrix.__new__>)>, '__init_subclass__': <function BinaryMatrix.__init_subclass__>, '__deprecated__': 'BinaryMatrix is deprecated since amplify v1.0.0 and will no longer support in the near future.\nUse Matrix 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 constantΒΆ

constant property

Return type:

float

property linearΒΆ

linear property

Return type:

ndarray

property quadraticΒΆ

quadratic property

Return type:

ndarray

property variable_arrayΒΆ

variable_array property

Return type:

PolyArray[Dim]