public class CrowdingArchive extends BoundedArchive
CrowdingArchive
is based on the Crowding
distance.Crowding
capacity
individuals, listeners
Constructor and Description |
---|
CrowdingArchive(int capacity)
Constructs a
CrowdingArchive . |
Modifier and Type | Method and Description |
---|---|
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, getCapacity, setCapacity
update
add, addAll, addAll, addListener, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeListener, retainAll, size, toArray, toArray
@Inject public CrowdingArchive(int capacity)
CrowdingArchive
.capacity
- capacity of this archive (using namespace
BoundedArchive
)protected 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