|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.algorithm.Algorithm net.sourceforge.cilib.algorithm.population.PopulationBasedAlgorithm net.sourceforge.cilib.algorithm.population.MultiPopulationBasedAlgorithm net.sourceforge.cilib.coevolution.CoevolutionAlgorithm
public class CoevolutionAlgorithm
This is the framework for a coevolution algorithm, either competitive or cooperative
Field Summary | |
---|---|
protected CoevolutionIterationStrategy |
coevolutionIterationStrategy
|
Fields inherited from class net.sourceforge.cilib.algorithm.population.MultiPopulationBasedAlgorithm |
---|
algorithmIterator, subPopulationsAlgorithms |
Fields inherited from class net.sourceforge.cilib.algorithm.Algorithm |
---|
optimisationProblem |
Constructor Summary | |
---|---|
CoevolutionAlgorithm()
|
|
CoevolutionAlgorithm(CoevolutionAlgorithm copy)
|
Method Summary | |
---|---|
void |
algorithmIteration()
The actual operations that the current Algorithm performs within a single iteration. |
DomainRegistry |
getBehaviouralDomain()
|
OptimisationSolution |
getBestSolution()
This doesnt really make sense since in co-evolution you have a best solution for each population |
CoevolutionAlgorithm |
getClone()
Create a cloned copy of the current object and return it. |
CoevolutionIterationStrategy |
getCoevolutionIterationStrategy()
|
CoevolutionOptimisationProblem |
getCoevolutionOptimisationProblem()
|
DataSetBuilder |
getDataSetBuilder()
|
double |
getDiameter()
|
DomainRegistry |
getDomain()
|
int |
getFitnessEvaluations()
|
int |
getPopulationSize()
|
double |
getRadius()
|
List<OptimisationSolution> |
getSolutions()
Can be useful to compare how the different populations are performing. |
Topology<? extends Entity> |
getTopology()
Get the current collection (population) of entities. |
void |
performInitialisation()
initialises every population. |
void |
setAlgorithm(PopulationBasedAlgorithm algorithm)
Add a subpopulation Algorithm |
void |
setCoevolutionIterationStrategy(CoevolutionIterationStrategy coevolutionIterationStrategy)
|
void |
setDataSetBuilder(DataSetBuilder dataSet)
|
void |
setOptimisationProblem(OptimisationProblem problem)
Set the optimisation problem to be solved. |
void |
setPopulationSize(int i)
|
void |
setTopology(Topology t)
|
Methods inherited from class net.sourceforge.cilib.algorithm.population.MultiPopulationBasedAlgorithm |
---|
accept, addPopulationBasedAlgorithm, getAlgorithmIterator, getInitialisationStrategy, getPopulations, iterator, removePopulationBasedalgorithm, reset, setAlgorithmIterator, setInitialisationStrategy, setPopulations |
Methods inherited from class net.sourceforge.cilib.algorithm.Algorithm |
---|
addAlgorithmListener, addStoppingCondition, get, getAlgorithmList, getIterations, getOptimisationProblem, getPercentageComplete, getStoppingConditions, initialise, isFinished, performIteration, performUninitialisation, removeAlgorithmListener, removeStoppingCondition, run, terminate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CoevolutionIterationStrategy coevolutionIterationStrategy
Constructor Detail |
---|
public CoevolutionAlgorithm()
public CoevolutionAlgorithm(CoevolutionAlgorithm copy)
Method Detail |
---|
public CoevolutionAlgorithm getClone()
getClone
in interface Cloneable
getClone
in class PopulationBasedAlgorithm
Object.clone()
public int getPopulationSize()
public void setAlgorithm(PopulationBasedAlgorithm algorithm)
algorithm
- public CoevolutionOptimisationProblem getCoevolutionOptimisationProblem()
public void performInitialisation()
performInitialisation
in class Algorithm
public OptimisationSolution getBestSolution()
getBestSolution
in class PopulationBasedAlgorithm
OptimisationSolution
representing the best solution.public List<OptimisationSolution> getSolutions()
getSolutions
in class PopulationBasedAlgorithm
public void algorithmIteration()
algorithmIteration
in class MultiPopulationBasedAlgorithm
public CoevolutionIterationStrategy getCoevolutionIterationStrategy()
public void setCoevolutionIterationStrategy(CoevolutionIterationStrategy coevolutionIterationStrategy)
public int getFitnessEvaluations()
public DomainRegistry getDomain()
public DomainRegistry getBehaviouralDomain()
public DataSetBuilder getDataSetBuilder()
public void setDataSetBuilder(DataSetBuilder dataSet)
public void setPopulationSize(int i)
public double getRadius()
public double getDiameter()
public void setTopology(Topology t)
public Topology<? extends Entity> getTopology()
PopulationBasedAlgorithm
getTopology
in class MultiPopulationBasedAlgorithm
public void setOptimisationProblem(OptimisationProblem problem)
null
.
That is, it is necessary to set the optimisation problem before calling Algorithm.initialise()
.
setOptimisationProblem
in class Algorithm
problem
- An implementation of the
OptimisationProblemAdapter
interface.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |