ribs.archives.Elite

namedtuple ribs.archives.Elite(sol: numpy.ndarray, obj: float, beh: numpy.ndarray, idx: Union[int, Tuple[int]], meta: object)[source]

Represents a single elite in an archive.

Note that since this class is a namedtuple, its fields may be accessed either by name or by integer indices.

Fields
  1. sol (ndarray) – Parameters of the elite’s solution.

  2. obj (float) – Objective value evaluation.

  3. beh (ndarray) – Behavior values.

  4. idx (Union[int, Tuple[int]]) – Index of the elite’s behavior values in the archive (see ArchiveBase.get_index()).

  5. meta (object) – Metadata object for the elite.

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.