|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy<EC> net.sourceforge.cilib.ec.iterationstrategies.GeneticAlgorithmIterationStrategy
public class GeneticAlgorithmIterationStrategy
TODO: Complete this javadoc.
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy |
---|
boundaryConstraint, operatorPipeline |
Constructor Summary | |
---|---|
GeneticAlgorithmIterationStrategy()
Create an instance of the IterationStrategy. |
|
GeneticAlgorithmIterationStrategy(GeneticAlgorithmIterationStrategy copy)
Copy constructor. |
Method Summary | |
---|---|
GeneticAlgorithmIterationStrategy |
getClone()
Create a cloned copy of the current object and return it. |
CrossoverStrategy |
getCrossoverStrategy()
Get the currently specified CrossoverStrategy. |
MutationStrategy |
getMutationStrategy()
Get the currently specified MutationStrategy. |
void |
performIteration(EC ec)
Perform the iteration of the PopulationBasedAlgorithm. |
void |
setCrossoverStrategy(CrossoverStrategy crossoverStrategy)
Set the current CrossoverStrategy and reinitialise the operator pipeline. |
void |
setMutationStrategy(MutationStrategy mutationStrategy)
Set the current MutationStrategy and reinitialise the operator pipeline. |
Methods inherited from class net.sourceforge.cilib.algorithm.population.AbstractIterationStrategy |
---|
getBoundaryConstraint, getOperatorPipeline, setBoundaryConstraint, setOperatorPipeline |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeneticAlgorithmIterationStrategy()
public GeneticAlgorithmIterationStrategy(GeneticAlgorithmIterationStrategy copy)
copy
- the instance to copy.Method Detail |
---|
public GeneticAlgorithmIterationStrategy getClone()
getClone
in interface IterationStrategy<EC>
getClone
in interface Cloneable
getClone
in class AbstractIterationStrategy<EC>
Object.clone()
public void performIteration(EC ec)
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<EC>
performIteration
in class AbstractIterationStrategy<EC>
ec
- The EC algorithm to perform the iteration on.public CrossoverStrategy getCrossoverStrategy()
public void setCrossoverStrategy(CrossoverStrategy crossoverStrategy)
crossoverStrategy
- The CrossoverStrategy to use.public MutationStrategy getMutationStrategy()
public void setMutationStrategy(MutationStrategy mutationStrategy)
mutationStrategy
- The MutationStrategy to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |