|
||||||||||
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.cooperative.HybridCooperativeAlgorithm
public class HybridCooperativeAlgorithm
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.algorithm.population.MultiPopulationBasedAlgorithm |
---|
algorithmIterator, subPopulationsAlgorithms |
Fields inherited from class net.sourceforge.cilib.algorithm.Algorithm |
---|
optimisationProblem |
Constructor Summary | |
---|---|
HybridCooperativeAlgorithm()
Create a new instance of HybridCooperativeAlgorithm. |
|
HybridCooperativeAlgorithm(HybridCooperativeAlgorithm copy)
Copy constructor. |
Method Summary | |
---|---|
void |
algorithmIteration()
The actual operations that the current Algorithm performs within a single iteration. |
OptimisationSolution |
getBestSolution()
Get the best current solution. |
HybridCooperativeAlgorithm |
getClone()
Create a cloned copy of the current object and return it. |
Entity |
getContribution()
Returns contribution to the solution for the co-operative optimisation algorithm. |
Fitness |
getContributionFitness()
Returns the fitness of contribution to the solution. |
OptimisationProblem |
getOptimisationProblem()
Get the specified OptimisationProblem. |
List<OptimisationSolution> |
getSolutions()
Get the collection of best solutions. |
void |
setOptimisationProblem(OptimisationProblem problem)
Set the optimisation problem to be solved. |
void |
updateContributionFitness(Fitness fitness)
Updates the new fitness for the solution contribution. |
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, getPercentageComplete, getStoppingConditions, initialise, isFinished, performInitialisation, performIteration, performUninitialisation, removeAlgorithmListener, removeStoppingCondition, run, terminate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HybridCooperativeAlgorithm()
public HybridCooperativeAlgorithm(HybridCooperativeAlgorithm copy)
copy
- The instance to copy.Method Detail |
---|
public HybridCooperativeAlgorithm getClone()
getClone
in interface Cloneable
getClone
in class PopulationBasedAlgorithm
Object.clone()
public OptimisationSolution getBestSolution()
getBestSolution
in class PopulationBasedAlgorithm
OptimisationSolution
representing the best solution.public OptimisationProblem getOptimisationProblem()
getOptimisationProblem
in class Algorithm
public List<OptimisationSolution> getSolutions()
getSolutions
in class PopulationBasedAlgorithm
Collection<OptimisationSolution>
containing the solutions.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.public Entity getContribution()
getContribution
in interface ParticipatingAlgorithm
public Fitness getContributionFitness()
getContributionFitness
in interface ParticipatingAlgorithm
public void updateContributionFitness(Fitness fitness)
updateContributionFitness
in interface ParticipatingAlgorithm
fitness
- The new fitness of the contribution.public void algorithmIteration()
algorithmIteration
in class MultiPopulationBasedAlgorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |