Class UnboundedArchive

All Implemented Interfaces:
Iterable<Individual>, Collection<Individual>, Set<Individual>

public class UnboundedArchive extends AbstractArchive
An Archive of unbounded size. All non-dominated Individuals received by one of the methods Archive.add(org.opt4j.core.Individual) , Archive.addAll(Collection), or Archive.addAll(Individual...) are stored.
  • Constructor Details

    • UnboundedArchive

      public UnboundedArchive()
      Constructs a new archive of unbounded size.
  • Method Details

    • updateWithNondominated

      protected boolean updateWithNondominated(Collection<Individual> candidates)
      Description copied from class: AbstractArchive
      Adds new candidates which are already checked to be not Pareto-dominated by any other individual in this Archive. All Individuals in the Archive which were dominated by the candidates have already been removed.
      Specified by:
      updateWithNondominated in class AbstractArchive
      Parameters:
      candidates - the non-dominated individuals which can be added
      Returns:
      true if one or more candidates are added to the archive