Package org.opt4j.common.archive
Class UnboundedArchive
java.lang.Object
org.opt4j.core.IndividualSet
org.opt4j.core.optimizer.Archive
org.opt4j.common.archive.AbstractArchive
org.opt4j.common.archive.UnboundedArchive
- All Implemented Interfaces:
Iterable<Individual>
,Collection<Individual>
,Set<Individual>
An
Archive
of unbounded size. All
non-dominated Individual
s received by one of the methods Archive.add(org.opt4j.core.Individual)
, Archive.addAll(Collection)
, or Archive.addAll(Individual...)
are stored.-
Field Summary
Fields inherited from class org.opt4j.core.IndividualSet
individuals, listeners
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
updateWithNondominated
(Collection<Individual> candidates) Adds newcandidates
which are already checked to be not Pareto-dominated by any other individual in thisArchive
.Methods inherited from class org.opt4j.common.archive.AbstractArchive
update
Methods inherited from class org.opt4j.core.optimizer.Archive
add, addAll, addAll, addCheckedIndividual, addCheckedIndividuals, update
Methods inherited from class org.opt4j.core.IndividualSet
addListener, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeListener, retainAll, size, toArray, toArray
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
Constructor Details
-
UnboundedArchive
public UnboundedArchive()Constructs a new archive of unbounded size.
-
-
Method Details
-
updateWithNondominated
Description copied from class:AbstractArchive
Adds newcandidates
which are already checked to be not Pareto-dominated by any other individual in thisArchive
. AllIndividual
s in theArchive
which were dominated by the candidates have already been removed.- Specified by:
updateWithNondominated
in classAbstractArchive
- Parameters:
candidates
- the non-dominated individuals which can be added- Returns:
- true if one or more candidates are added to the archive
-