public class PopulationArchive extends AbstractArchive
PopulationArchive keeps the non-dominated Individuals
from the Population. It is assumed that the update(Set)
method is called with the current Population in each iteration.individuals, listeners| Constructor and Description |
|---|
PopulationArchive() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
update(java.util.Set<? extends Individual> individuals)
Updates the archive with a set of individuals.
|
protected 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. |
addCheckedIndividual, addCheckedIndividuals, updateadd, addAll, addAll, addListener, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeListener, retainAll, size, toArray, toArraypublic boolean update(java.util.Set<? extends Individual> individuals)
Archiveadd
/addAll methods, which are prohibited for the archive (throwing
an UnsupportedOperationException), this method shall be used.update in class AbstractArchiveindividuals - the set of individuals that is used to update the archivetrue if the content of the archive changedprotected boolean updateWithNondominated(java.util.Collection<Individual> candidates)
AbstractArchivecandidates 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.updateWithNondominated in class AbstractArchivecandidates - the non-dominated individuals which can be added