public class StrengthRawFitnessArchive extends Archive
solutionsList_| Constructor and Description |
|---|
StrengthRawFitnessArchive(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, writeObjectivesToMatrixpublic StrengthRawFitnessArchive(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 SolutionSetsolution - The SolutionSolution has been inserted, false
otherwise.