net.sourceforge.cilib.pso.niching
Class Niche
java.lang.Object
net.sourceforge.cilib.algorithm.Algorithm
net.sourceforge.cilib.algorithm.population.PopulationBasedAlgorithm
net.sourceforge.cilib.algorithm.population.MultiPopulationBasedAlgorithm
net.sourceforge.cilib.pso.niching.Niche
- All Implemented Interfaces:
- Serializable, Iterable<PopulationBasedAlgorithm>, Runnable, Cloneable
public class Niche
- extends MultiPopulationBasedAlgorithm
- Author:
- gpampara
- See Also:
- Serialized Form
Constructor Summary |
Niche()
|
Methods inherited from class net.sourceforge.cilib.algorithm.population.MultiPopulationBasedAlgorithm |
accept, addPopulationBasedAlgorithm, getAlgorithmIterator, getInitialisationStrategy, getPopulations, getTopology, 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, setOptimisationProblem, terminate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Niche
public Niche()
performInitialisation
public void performInitialisation()
- Description copied from class:
Algorithm
- Perform the needed initialisation required before the execution of the algorithm
starts.
- Overrides:
performInitialisation
in class Algorithm
algorithmIteration
protected void algorithmIteration()
- Description copied from class:
MultiPopulationBasedAlgorithm
- The actual operations that the current Algorithm performs within a single
iteration.
- Specified by:
algorithmIteration
in class MultiPopulationBasedAlgorithm
getClone
public PopulationBasedAlgorithm getClone()
- Description copied from class:
PopulationBasedAlgorithm
- Create a cloned copy of the current object and return it. In general
the created copy will be a deep copy of the provided instance. As
a result this operation an be quite expensive if used incorrectly.
- Specified by:
getClone
in interface Cloneable
- Specified by:
getClone
in class PopulationBasedAlgorithm
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
getBestSolution
public OptimisationSolution getBestSolution()
- Description copied from class:
PopulationBasedAlgorithm
- Get the best current solution. This best solution is determined from the personal bests of the
particles.
- Specified by:
getBestSolution
in class PopulationBasedAlgorithm
- Returns:
- The
OptimisationSolution
representing the best solution.
getSolutions
public List<OptimisationSolution> getSolutions()
- Description copied from class:
PopulationBasedAlgorithm
- Get the collection of best solutions. This result does not actually make sense in the normal
PSO algorithm, but rather in a MultiObjective optimization.
- Specified by:
getSolutions
in class PopulationBasedAlgorithm
- Returns:
- The
Collection<OptimisationSolution>
containing the solutions.
getMainSwarm
public PopulationBasedAlgorithm getMainSwarm()
Copyright © 2009 CIRG. All Rights Reserved.