Package org.opt4j.core.common.archive
Class UnboundedArchive
- java.lang.Object
-
- org.opt4j.core.IndividualSet
-
- org.opt4j.core.optimizer.Archive
-
- org.opt4j.core.common.archive.AbstractArchive
-
- org.opt4j.core.common.archive.UnboundedArchive
-
- All Implemented Interfaces:
java.lang.Iterable<Individual>
,java.util.Collection<Individual>
,java.util.Set<Individual>
public class UnboundedArchive extends AbstractArchive
TheUnboundedArchive
is anArchive
with unbounded size.
-
-
Field Summary
-
Fields inherited from class org.opt4j.core.IndividualSet
individuals, listeners
-
-
Constructor Summary
Constructors Constructor Description UnboundedArchive()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
updateWithNondominated(java.util.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.core.common.archive.AbstractArchive
removeArchiveDominated, removeDominatedCandidates, update
-
Methods inherited from class org.opt4j.core.optimizer.Archive
addCheckedIndividual, addCheckedIndividuals, update
-
Methods inherited from class org.opt4j.core.IndividualSet
add, addAll, addAll, addListener, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, removeListener, retainAll, size, toArray, toArray
-
-
-
-
Method Detail
-
updateWithNondominated
protected boolean updateWithNondominated(java.util.Collection<Individual> candidates)
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
-
-