SolverResultΒΆ

class SolverResultΒΆ

Bases: UserList

Methods

__init__

append

S.append(value) -- append value to the end of the sequence

clear

copy

count

extend

S.extend(iterable) -- extend sequence by appending elements from the iterable

index

Raises ValueError if the value is not present.

insert

S.insert(index, value) -- insert value before index

pop

Raise IndexError if list is empty or index is out of range.

remove

S.remove(value) -- remove first occurrence of value.

reverse

S.reverse() -- reverse IN PLACE

sort

Attributes

__add__(other)ΒΆ
classmethod __class_getitem__()ΒΆ

Represent a PEP 585 generic type

E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).

__contains__(item)ΒΆ
__copy__()ΒΆ
__delitem__(i)ΒΆ
__eq__(other)ΒΆ

Return self==value.

__ge__(other)ΒΆ

Return self>=value.

__getitem__(i)ΒΆ
__gt__(other)ΒΆ

Return self>value.

__iadd__(other)ΒΆ
__imul__(n)ΒΆ
__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.

__iter__()ΒΆ
__le__(other)ΒΆ

Return self<=value.

__len__()ΒΆ
__lt__(other)ΒΆ

Return self<value.

__mul__(n)ΒΆ
__radd__(other)ΒΆ
__repr__()ΒΆ

Return repr(self).

__reversed__()ΒΆ
__rmul__(n)ΒΆ
__setitem__(i, item)ΒΆ
classmethod __subclasshook__(C)ΒΆ

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

append(item)ΒΆ

S.append(value) – append value to the end of the sequence

clear() None -- remove all items from SΒΆ
copy()ΒΆ
count(value) integer -- return number of occurrences of valueΒΆ
extend(other)ΒΆ

S.extend(iterable) – extend sequence by appending elements from the iterable

index(value[, start[, stop]]) integer -- return first index of value.ΒΆ

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.

insert(i, item)ΒΆ

S.insert(index, value) – insert value before index

pop([index]) item -- remove and return item at index (default last).ΒΆ

Raise IndexError if list is empty or index is out of range.

remove(item)ΒΆ

S.remove(value) – remove first occurrence of value. Raise ValueError if the value is not present.

reverse()ΒΆ

S.reverse() – reverse IN PLACE

sort(*args, **kwds)ΒΆ
__abstractmethods__ = frozenset({})ΒΆ
__deprecated__ = 'SolverResult is deprecated since amplify v1.0.0 and will no longer support in the near future.\nPlease see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html'ΒΆ
__dict__ = mappingproxy({'__module__': 'amplify._backward', '__init__': <function SolverResult.__init__>, 'solutions': <property object>, '__doc__': None, '__abstractmethods__': frozenset(), '_abc_impl': <_abc._abc_data object>, '__new__': <staticmethod(<function object.__new__>)>, '__init_subclass__': <function SolverResult.__init_subclass__>, '__deprecated__': 'SolverResult is deprecated since amplify v1.0.0 and will no longer support in the near future.\nPlease see the migration guide for details: https://amplify.fixstars.com/docs/amplify/v1/migration.html', '__annotations__': {}})ΒΆ
__hash__ = NoneΒΆ
__slots__ = ()ΒΆ
__weakref__ΒΆ

list of weak references to the object

property solutions: list[SolverSolution]ΒΆ