DistributedEvolutionaryAlgorithmsFramework
Class Algorithm

java.lang.Object
  extended by DistributedEvolutionaryAlgorithmsFramework.Algorithm

public abstract class Algorithm
extends java.lang.Object

Abstract class for user-defined algorithm


Field Summary
protected  double bestFitness
          Fitness of bestIndividual
protected  Individual bestIndividual
          Inidivual with the best fitness, returned by generation()
protected  int dimensions
          Number of dimensions of given fitness function
protected  FitnessFunction function
          Optimized function
protected  int popSize
          Population size
protected  Population population
          Population of Individuals for use in algorithm
 
Constructor Summary
Algorithm()
           
 
Method Summary
abstract  Individual generation()
          Runs one generation/cycle of algorithm
abstract  Population getPopulation()
           
abstract  void newRound()
          newRound() is called at the end of each round (after emigration) and can be used to alter algorithm configuration or left blank if no alteration is not needed.
abstract  void setParameter(java.lang.String configName, float value)
          Sets externally defined algorithm specific parameters.
abstract  void setPopulation(Population population_)
          Sets main population to given Population
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dimensions

protected int dimensions
Number of dimensions of given fitness function


popSize

protected int popSize
Population size


function

protected FitnessFunction function
Optimized function


bestIndividual

protected Individual bestIndividual
Inidivual with the best fitness, returned by generation()


population

protected Population population
Population of Individuals for use in algorithm


bestFitness

protected double bestFitness
Fitness of bestIndividual

Constructor Detail

Algorithm

public Algorithm()
Method Detail

generation

public abstract Individual generation()
                               throws java.io.IOException
Runs one generation/cycle of algorithm

Returns:
Best Individual from the population
Throws:
java.io.IOException

getPopulation

public abstract Population getPopulation()
Returns:
population used in algorithm

setPopulation

public abstract void setPopulation(Population population_)
Sets main population to given Population

Parameters:
population_ -

newRound

public abstract void newRound()
newRound() is called at the end of each round (after emigration) and can be used to alter algorithm configuration or left blank if no alteration is not needed.


setParameter

public abstract void setParameter(java.lang.String configName,
                                  float value)
Sets externally defined algorithm specific parameters.

Parameters:
configName - Name of the parameter to set
value - Value of parameter