|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.moo.iterationstrategies.ArchivingIterationStrategy<E>
E
- The PopulationBasedAlgorithm
that will have it's entities' positions added to
the archive as potential solutions.public class ArchivingIterationStrategy<E extends PopulationBasedAlgorithm>
A generic multi-objective IterationStrategy
class that wraps another IterationStrategy
and is responsible for populating the Archive
of Pareto optimal solutions after the execution
of the inner IterationStrategy
class.
Constructor Summary | |
---|---|
ArchivingIterationStrategy()
|
|
ArchivingIterationStrategy(ArchivingIterationStrategy<E> copy)
|
Method Summary | |
---|---|
Archive |
getArchive()
|
ArchivingIterationStrategy<E> |
getClone()
Create a cloned copy of the current object and return it. |
IterationStrategy<PopulationBasedAlgorithm> |
getIterationStrategy()
|
void |
performIteration(E algorithm)
Perform the iteration of the PopulationBasedAlgorithm. |
void |
setArchive(Archive archive)
|
void |
setIterationStrategy(IterationStrategy<PopulationBasedAlgorithm> iterationStrategy)
|
protected void |
updateArchive(Topology<? extends Entity> population)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArchivingIterationStrategy()
public ArchivingIterationStrategy(ArchivingIterationStrategy<E> copy)
Method Detail |
---|
public ArchivingIterationStrategy<E> getClone()
IterationStrategy
getClone
in interface IterationStrategy<E extends PopulationBasedAlgorithm>
getClone
in interface Cloneable
Object.clone()
public void setIterationStrategy(IterationStrategy<PopulationBasedAlgorithm> iterationStrategy)
public IterationStrategy<PopulationBasedAlgorithm> getIterationStrategy()
protected void updateArchive(Topology<? extends Entity> population)
public void performIteration(E algorithm)
IterationStrategy
Due to the nature of the PopulationBasedAlgorithms, the actual manner in which the algorithm's iteration is performed is deferred to the specific iteration strategy being used.
This implies that the general structure of the iteration for a specific flavour of algorithm is constant with modifications on that algorithm being made. For example, within a Genetic Algorithm you would expect:
performIteration
in interface IterationStrategy<E extends PopulationBasedAlgorithm>
algorithm
- The algorithm to perform the iteration process on.public void setArchive(Archive archive)
public Archive getArchive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |