|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cilib.algorithm.Algorithm
net.sourceforge.cilib.algorithm.population.PopulationBasedAlgorithm
public abstract class PopulationBasedAlgorithm
Base class for all algorithms that manage a collection of entities in some manner.
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.cilib.algorithm.Algorithm |
|---|
optimisationProblem |
| Constructor Summary | |
|---|---|
protected |
PopulationBasedAlgorithm()
|
protected |
PopulationBasedAlgorithm(PopulationBasedAlgorithm copy)
|
| Method Summary | |
|---|---|
abstract Object |
accept(TopologyVisitor visitor)
General method to accept a visitor to perform a calculation on the current algorithm. |
protected abstract void |
algorithmIteration()
The actual operations that the current Algorithm performs within a single iteration. |
abstract OptimisationSolution |
getBestSolution()
Get the best current solution. |
abstract PopulationBasedAlgorithm |
getClone()
Create a cloned copy of the current object and return it. |
abstract PopulationInitialisationStrategy |
getInitialisationStrategy()
Get the current PopulationInitialisationStrategy. |
abstract List<OptimisationSolution> |
getSolutions()
Get the collection of best solutions. |
abstract Topology<? extends Entity> |
getTopology()
Get the current collection (population) of entities. |
abstract void |
setInitialisationStrategy(PopulationInitialisationStrategy initialisationStrategy)
Set the initialisation strategy to use for the initialisation of the population. |
| Methods inherited from class net.sourceforge.cilib.algorithm.Algorithm |
|---|
addAlgorithmListener, addStoppingCondition, get, getAlgorithmList, getIterations, getOptimisationProblem, getPercentageComplete, getStoppingConditions, initialise, isFinished, performInitialisation, performIteration, performUninitialisation, removeAlgorithmListener, removeStoppingCondition, reset, run, setOptimisationProblem, terminate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PopulationBasedAlgorithm()
protected PopulationBasedAlgorithm(PopulationBasedAlgorithm copy)
| Method Detail |
|---|
public abstract PopulationBasedAlgorithm getClone()
getClone in interface CloneablegetClone in class AlgorithmObject.clone()protected abstract void algorithmIteration()
algorithmIteration in class Algorithmpublic abstract OptimisationSolution getBestSolution()
getBestSolution in class AlgorithmOptimisationSolution representing the best solution.public abstract List<OptimisationSolution> getSolutions()
getSolutions in class AlgorithmCollection<OptimisationSolution> containing the solutions.public abstract Topology<? extends Entity> getTopology()
public abstract Object accept(TopologyVisitor visitor)
visitor - The Visitor to be applied to the algorithm
public abstract void setInitialisationStrategy(PopulationInitialisationStrategy initialisationStrategy)
initialisationStrategy - The population initialisation strategy to set.public abstract PopulationInitialisationStrategy getInitialisationStrategy()
PopulationInitialisationStrategy.
PopulationInitialisationStrategy.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||