|
||||||||||
| 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
net.sourceforge.cilib.algorithm.population.SinglePopulationBasedAlgorithm
public abstract class SinglePopulationBasedAlgorithm
Base class for algorithms that focus on a single populations of entities. These types of algoruthms typically include PSO , EC, ACO etc.
| Field Summary | |
|---|---|
protected PopulationInitialisationStrategy |
initialisationStrategy
|
| Fields inherited from class net.sourceforge.cilib.algorithm.Algorithm |
|---|
optimisationProblem |
| Constructor Summary | |
|---|---|
protected |
SinglePopulationBasedAlgorithm()
Create an empty PopulationBasedAlgorithm. |
protected |
SinglePopulationBasedAlgorithm(SinglePopulationBasedAlgorithm copy)
Create a copy of the provided instance. |
| Method Summary | |
|---|---|
Object |
accept(TopologyVisitor visitor)
General method to accept a visitor to perform a calculation on the current algorithm. |
protected abstract void |
algorithmIteration()
Perform the iteration within the algorithm. |
abstract SinglePopulationBasedAlgorithm |
getClone()
Create a cloned copy of the current object and return it. |
PopulationInitialisationStrategy |
getInitialisationStrategy()
Get the currently set PopulationInitialisationStrategy. |
abstract Topology<? extends Entity> |
getTopology()
Get the current collection (population) of entities. |
void |
setInitialisationStrategy(PopulationInitialisationStrategy initialisationStrategy)
Set the PopulationInitialisationStrategy to be used. |
abstract void |
setTopology(Topology<? extends Entity> topology)
Set the Topology for the population-based algorithm. |
| Methods inherited from class net.sourceforge.cilib.algorithm.population.PopulationBasedAlgorithm |
|---|
getBestSolution, getSolutions |
| 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 |
| Field Detail |
|---|
protected PopulationInitialisationStrategy initialisationStrategy
| Constructor Detail |
|---|
protected SinglePopulationBasedAlgorithm()
protected SinglePopulationBasedAlgorithm(SinglePopulationBasedAlgorithm copy)
copy - The PopulationBasedAlgorithm to copy.| Method Detail |
|---|
public abstract SinglePopulationBasedAlgorithm getClone()
getClone in interface CloneablegetClone in class PopulationBasedAlgorithmObject.clone()protected abstract void algorithmIteration()
algorithmIteration in class PopulationBasedAlgorithmpublic abstract Topology<? extends Entity> getTopology()
getTopology in class PopulationBasedAlgorithmpublic abstract void setTopology(Topology<? extends Entity> topology)
topology - The Topology to be set.public PopulationInitialisationStrategy getInitialisationStrategy()
getInitialisationStrategy in class PopulationBasedAlgorithmpublic void setInitialisationStrategy(PopulationInitialisationStrategy initialisationStrategy)
setInitialisationStrategy in class PopulationBasedAlgorithminitialisationStrategy - The PopulationInitialisationStrategy to use.public Object accept(TopologyVisitor visitor)
accept in class PopulationBasedAlgorithmvisitor - The Visitor to be applied to the algorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||