public class PopulationArchive extends AbstractArchive
PopulationArchive
keeps the non-dominated Individual
s
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, update
add, addAll, addAll, addListener, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeListener, retainAll, size, toArray, toArray
public boolean update(java.util.Set<? extends Individual> individuals)
Archive
add
/addAll
methods, which are prohibited for the archive (throwing
an UnsupportedOperationException
), this method shall be used.update
in class AbstractArchive
individuals
- 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)
AbstractArchive
candidates
which are already checked to be not
Pareto-dominated by any other individual in this Archive
. All
Individual
s in the Archive
which were dominated by the
candidates have already been removed.updateWithNondominated
in class AbstractArchive
candidates
- the non-dominated individuals which can be added