SolverResultΒΆ

class SolverResultΒΆ

Bases: list

Methods

__init__

append

Append object to the end of the list.

clear

Remove all items from list.

copy

Return a shallow copy of the list.

count

Return number of occurrences of value.

extend

Extend list by appending elements from the iterable.

index

Return first index of value.

insert

Insert object before index.

pop

Remove and return item at index (default last).

remove

Remove first occurrence of value.

reverse

Reverse IN PLACE.

sort

Sort the list in ascending order and return None.

Attributes

__add__(value, /)ΒΆ

Return self+value.

__class_getitem__()ΒΆ

See PEP 585

__contains__(key, /)ΒΆ

Return key in self.

__delitem__(key, /)ΒΆ

Delete self[key].

__eq__(value, /)ΒΆ

Return self==value.

__ge__(value, /)ΒΆ

Return self>=value.

__getattribute__(name, /)ΒΆ

Return getattr(self, name).

__getitem__()ΒΆ

x.__getitem__(y) <==> x[y]

__gt__(value, /)ΒΆ

Return self>value.

__iadd__(value, /)ΒΆ

Implement self+=value.

__imul__(value, /)ΒΆ

Implement self*=value.

__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__()ΒΆ

Implement iter(self).

__le__(value, /)ΒΆ

Return self<=value.

__len__()ΒΆ

Return len(self).

__lt__(value, /)ΒΆ

Return self<value.

__mul__(value, /)ΒΆ

Return self*value.

__ne__(value, /)ΒΆ

Return self!=value.

__repr__()ΒΆ

Return repr(self).

__reversed__()ΒΆ

Return a reverse iterator over the list.

__rmul__(value, /)ΒΆ

Return value*self.

__setitem__(key, value, /)ΒΆ

Set self[key] to value.

__sizeof__()ΒΆ

Return the size of the list in memory, in bytes.

append(object, /)ΒΆ

Append object to the end of the list.

clear()ΒΆ

Remove all items from list.

copy()ΒΆ

Return a shallow copy of the list.

count(value, /)ΒΆ

Return number of occurrences of value.

extend(iterable, /)ΒΆ

Extend list by appending elements from the iterable.

index(value, start=0, stop=9223372036854775807, /)ΒΆ

Return first index of value.

Raises ValueError if the value is not present.

insert(index, object, /)ΒΆ

Insert object before index.

pop(index=-1, /)ΒΆ

Remove and return item at index (default last).

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

remove(value, /)ΒΆ

Remove first occurrence of value.

Raises ValueError if the value is not present.

reverse()ΒΆ

Reverse IN PLACE.

sort(*, key=None, reverse=False)ΒΆ

Sort the list in ascending order and return None.

The sort is in-place (i.e. the list itself is modified) and stable (i.e. the order of two equal elements is maintained).

If a key function is given, apply it once to each list item and sort them, ascending or descending, according to their function values.

The reverse flag can be set to sort in descending order.

__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>, '__dict__': <attribute '__dict__' of 'SolverResult' objects>, '__weakref__': <attribute '__weakref__' of 'SolverResult' objects>, '__doc__': None, '__new__': <staticmethod(<function list.__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ΒΆ
__weakref__ΒΆ

list of weak references to the object (if defined)

property solutions: list[SolverSolution]ΒΆ