public class SPEA2DensityArchive extends Archive
solutionsList_
Constructor and Description |
---|
SPEA2DensityArchive(int maxSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Solution solution)
Adds a
Solution to the archive. |
best, clear, get, getCapacity, getMaxSize, getSolutionSet, indexBest, indexWorst, iterator, remove, replace, setCapacity, setSolutionSet, size, sort, union, worst, writeObjectivesToMatrix
public SPEA2DensityArchive(int maxSize)
maxSize
- The maximum size of the archive.public boolean add(Solution solution)
Solution
to the archive. If the Solution
is dominated by any member of the archive then it is discarded. If the
Solution
dominates some members of the archive, these are
removed. If the archive is full and the Solution
has to be
inserted, all the solutions are ordered by his strengthRawFitness value and
the one having the worst value is removed.add
in class SolutionSet
solution
- The Solution
Solution
has been inserted, false
otherwise.