|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectDistributedEvolutionaryAlgorithmsFramework.Algorithm
public abstract class Algorithm
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 |
|---|
protected int dimensions
protected int popSize
protected FitnessFunction function
protected Individual bestIndividual
protected Population population
protected double bestFitness
| Constructor Detail |
|---|
public Algorithm()
| Method Detail |
|---|
public abstract Individual generation()
throws java.io.IOException
java.io.IOExceptionpublic abstract Population getPopulation()
public abstract void setPopulation(Population population_)
population_ - public abstract void newRound()
public abstract void setParameter(java.lang.String configName,
float value)
configName - Name of the parameter to setvalue - Value of parameter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||