FlattenedSolution

class FlattenedSolution

Bases: NamedTuple

Represents the flattened solution set.

This class holds three types of flattened solution:

  • blackbox solution is the original solution for the black-box function.

  • surrogate solution is the solution for the surrogate model (subject to encoding for pre-encoding=True setting).

  • amplify solution is the solution for the Amplify model (subject to encoding regardless of pre-encoding setting).

blackbox

The solution for the black-box function.

Type:

npt.NDArray[np.float64]

surrogate

The solution for the surrogate model.

Type:

npt.NDArray[np.float64]

amplify

The solution for the Amplify model.

Type:

npt.NDArray[np.float64]

Methods

__init__

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

amplify

Alias for field number 2

blackbox

Alias for field number 0

surrogate

Alias for field number 1

__add__(value, /)

Return self+value.

__class_getitem__()

See PEP 585

__contains__(key, /)

Return key in self.

__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__getattribute__(name, /)

Return getattr(self, name).

__getitem__(key, /)

Return self[key].

__getnewargs__()

Return self as a plain tuple. Used by copy and pickle.

__gt__(value, /)

Return self>value.

__hash__()

Return hash(self).

__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 a nicely formatted representation string

__rmul__(value, /)

Return value*self.

count(value, /)

Return number of occurrences of value.

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

Return first index of value.

Raises ValueError if the value is not present.

__match_args__ = ('blackbox', 'surrogate', 'amplify')
__orig_bases__ = (<function NamedTuple>,)
__slots__ = ()
amplify: ndarray[tuple[int, ...], dtype[float64]]

Alias for field number 2

blackbox: ndarray[tuple[int, ...], dtype[float64]]

Alias for field number 0

surrogate: ndarray[tuple[int, ...], dtype[float64]]

Alias for field number 1