|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.moo.archive.Archive net.sourceforge.cilib.moo.archive.constrained.ConstrainedArchive net.sourceforge.cilib.moo.archive.constrained.SetBasedConstrainedArchive
public class SetBasedConstrainedArchive
A constrained set-driven Archive
implementation. It makes use of
a Selection
to determine which solution from the archive
will be selected next for removal if the archive grows larger than the capacity.
Constructor Summary | |
---|---|
SetBasedConstrainedArchive()
|
Method Summary | ||
---|---|---|
void |
add(int index,
OptimisationSolution element)
|
|
boolean |
addAll(int index,
Collection<? extends OptimisationSolution> c)
|
|
boolean |
addToStructure(OptimisationSolution optimisationSolution)
Adds a non-dominated candidateSolution into the archive. |
|
void |
clear()
|
|
boolean |
contains(Object object)
|
|
boolean |
containsAll(Collection<?> objects)
|
|
Collection<OptimisationSolution> |
dominates(OptimisationSolution candidateSolution)
Checks the entire archive and accumulates the solutions that dominates candidateSolution . |
|
OptimisationSolution |
get(int index)
|
|
SelectionRecipe<OptimisationSolution> |
getPruningSelection()
|
|
int |
indexOf(Object o)
|
|
Collection<OptimisationSolution> |
isDominatedBy(OptimisationSolution candidateSolution)
Checks the archive and accumulates all solutions that is dominated by candidateSolution . |
|
boolean |
isEmpty()
|
|
Iterator<OptimisationSolution> |
iterator()
|
|
int |
lastIndexOf(Object o)
|
|
ListIterator<OptimisationSolution> |
listIterator()
|
|
ListIterator<OptimisationSolution> |
listIterator(int index)
|
|
protected void |
prune()
This method needs to be implemented by all subclasses to provide a way in which certain solutions will be removed if the archive grows too big. |
|
OptimisationSolution |
remove(int index)
|
|
boolean |
remove(Object object)
|
|
boolean |
removeAll(Collection<?> objects)
|
|
boolean |
retainAll(Collection<?> objects)
|
|
OptimisationSolution |
set(int index,
OptimisationSolution element)
|
|
void |
setPruningSelection(SelectionRecipe<OptimisationSolution> pruningSelection)
|
|
int |
size()
|
|
List<OptimisationSolution> |
subList(int fromIndex,
int toIndex)
|
|
Object[] |
toArray()
|
|
|
toArray(T[] a)
|
Methods inherited from class net.sourceforge.cilib.moo.archive.constrained.ConstrainedArchive |
---|
add, addAll, addNonDominatedSolution, getCapacity, setCapacity |
Methods inherited from class net.sourceforge.cilib.moo.archive.Archive |
---|
get, set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
equals, hashCode |
Constructor Detail |
---|
public SetBasedConstrainedArchive()
Method Detail |
---|
public void setPruningSelection(SelectionRecipe<OptimisationSolution> pruningSelection)
public SelectionRecipe<OptimisationSolution> getPruningSelection()
public Collection<OptimisationSolution> dominates(OptimisationSolution candidateSolution)
Archive
candidateSolution
.
dominates
in class Archive
candidateSolution
- The solution to compare against all of the solutions in the archive.
candidateSolution
.public Collection<OptimisationSolution> isDominatedBy(OptimisationSolution candidateSolution)
Archive
candidateSolution
.
isDominatedBy
in class Archive
candidateSolution
- The solution to compare against all of the solutions in the archive.
candidateSolution
.protected void prune()
ConstrainedArchive
prune
in class ConstrainedArchive
public boolean addToStructure(OptimisationSolution optimisationSolution)
ConstrainedArchive
candidateSolution
into the archive.
addToStructure
in class ConstrainedArchive
optimisationSolution
- The non-dominated solution to add to the archive.public void clear()
public boolean contains(Object object)
public boolean containsAll(Collection<?> objects)
public boolean isEmpty()
public Iterator<OptimisationSolution> iterator()
public boolean remove(Object object)
public boolean removeAll(Collection<?> objects)
public boolean retainAll(Collection<?> objects)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean addAll(int index, Collection<? extends OptimisationSolution> c)
public OptimisationSolution get(int index)
public OptimisationSolution set(int index, OptimisationSolution element)
public void add(int index, OptimisationSolution element)
public OptimisationSolution remove(int index)
public int indexOf(Object o)
public int lastIndexOf(Object o)
public ListIterator<OptimisationSolution> listIterator()
public ListIterator<OptimisationSolution> listIterator(int index)
public List<OptimisationSolution> subList(int fromIndex, int toIndex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |