Class AbstractArchive

    • Constructor Detail

      • AbstractArchive

        public AbstractArchive()
    • Method Detail

      • update

        public boolean update​(java.util.Set<? extends Individual> individuals)
        Description copied from class: Archive
        Updates the archive with a set of individuals. Instead of the add /addAll methods, which are prohibited for the archive (throwing an UnsupportedOperationException), this method shall be used.
        Specified by:
        update in class Archive
        Parameters:
        individuals - the set of individuals that is used to update the archive
        Returns:
        returns true if the content of the archive changed
      • removeDominatedCandidates

        protected void removeDominatedCandidates​(java.util.List<Individual> candidates)
        Remove candidates, which are weakly dominated by another candidate. Thus, the list of candidates which need to be tested against the whole archive is reduced.
        Parameters:
        candidates - the list of candidates to sanitize
      • removeArchiveDominated

        protected void removeArchiveDominated​(java.util.List<Individual> candidates)
        Remove those individuals from the candidates which are weakly dominated by the archive. Remove those individuals from the archive which are dominated by the candidates. In case of equal objectives, this gives priority to the individuals in the archive and avoids unnecessary archive updates.
        Parameters:
        candidates - the list of candidates to sanitize
      • updateWithNondominated

        protected abstract boolean updateWithNondominated​(java.util.Collection<Individual> candidates)
        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.
        Parameters:
        candidates - the non-dominated individuals which can be added
        Returns:
        true if one or more candidates are added to the archive