Class CrowdingArchive

All Implemented Interfaces:
Iterable<Individual>, Collection<Individual>, Set<Individual>
Direct Known Subclasses:
DefaultArchive

public class CrowdingArchive extends BoundedArchive
The CrowdingArchive is based on the Crowding distance of the Nsga2.
See Also:
  • Constructor Details

    • CrowdingArchive

      @Inject public CrowdingArchive(int capacity)
      Constructs a CrowdingArchive.
      Parameters:
      capacity - capacity of this archive (using namespace BoundedArchive)
  • 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