|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.coevolution.CoevolutionIterationStrategy net.sourceforge.cilib.coevolution.CompetitiveCoevolutionIterationStrategy
public class CompetitiveCoevolutionIterationStrategy
This iteration strategy defines methods to select opponents.
Field Summary | |
---|---|
protected FitnessSharingStrategy |
fitnessSharingStrategy
|
protected OpponentSelectionStrategy |
opponentSelectionStrategy
|
Constructor Summary | |
---|---|
CompetitiveCoevolutionIterationStrategy()
|
|
CompetitiveCoevolutionIterationStrategy(CompetitiveCoevolutionIterationStrategy copy)
|
Method Summary | |
---|---|
CompetitiveCoevolutionIterationStrategy |
getClone()
Create a cloned copy of the current object and return it. |
FitnessSharingStrategy |
getFitnessSharingStrategy()
|
OpponentSelectionStrategy |
getOpponentSelectionStrategy()
|
void |
performIteration(CoevolutionAlgorithm ca)
Perform the iteration of the PopulationBasedAlgorithm. |
CoevolutionCompetitorList |
selectOpponents(int populationID,
CoevolutionAlgorithm ca)
Select opponents based on the current OpponentSelectionStrategy |
void |
setFitnessSharingStrategy(FitnessSharingStrategy fitnessSharingStrategy)
|
void |
setOpponentSelectionStrategy(OpponentSelectionStrategy opponentSelectionStrategy)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OpponentSelectionStrategy opponentSelectionStrategy
protected FitnessSharingStrategy fitnessSharingStrategy
Constructor Detail |
---|
public CompetitiveCoevolutionIterationStrategy()
public CompetitiveCoevolutionIterationStrategy(CompetitiveCoevolutionIterationStrategy copy)
Method Detail |
---|
public CompetitiveCoevolutionIterationStrategy getClone()
CoevolutionIterationStrategy
getClone
in interface IterationStrategy<CoevolutionAlgorithm>
getClone
in interface Cloneable
getClone
in class CoevolutionIterationStrategy
Object.clone()
public void performIteration(CoevolutionAlgorithm ca)
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<CoevolutionAlgorithm>
performIteration
in class CoevolutionIterationStrategy
ca
- The algorithm to perform the iteration process on.public CoevolutionCompetitorList selectOpponents(int populationID, CoevolutionAlgorithm ca)
populationID
- the populationID of the Entity for whom opponents are being selectedca
- the Coevolution algorithm
public FitnessSharingStrategy getFitnessSharingStrategy()
public void setFitnessSharingStrategy(FitnessSharingStrategy fitnessSharingStrategy)
public OpponentSelectionStrategy getOpponentSelectionStrategy()
public void setOpponentSelectionStrategy(OpponentSelectionStrategy opponentSelectionStrategy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |