Class PopulationArchive

    • Constructor Detail

      • PopulationArchive

        public PopulationArchive()
    • Method Detail

      • update

        public boolean update​(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.
        Overrides:
        update in class AbstractArchive
        Parameters:
        individuals - the set of individuals that is used to update the archive
        Returns:
        returns true if the content of the archive changed
      • 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