|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectart.ga.Population
The population is composed by many Chromosome and represent the space of solutions evaluated at the current generation.
| Constructor Summary | |
Population(GaConfiguration configuration)
Constructor of the class. |
|
| Method Summary | |
void |
generatePopulation()
Initialize a population with Chromosomes |
double |
getAverageFitness()
Get the average fitness within the Population |
Chromosome |
getChromosome(int position)
Get a Chromosome of the population in the specific position of the LinkedList chromosomeList |
java.util.ArrayList |
getChromosomeList()
Get the list of all the Chromosomes in the population at the current generation. |
double |
getConvergence()
Compute convergence on a given population. |
Chromosome |
getDominantChromosome()
Compute the dominant chromosome of a given population using the convergence criterion. |
int |
getGenerationNumber()
Get current generation number. |
Chromosome |
getHigherFitted()
Get Chromosome with higher fitness in the Population at the current generation. |
Chromosome |
getLowerFitted()
Get Chromosome with lower fitness in the Population at the current generation. |
int |
getPopulationSize()
Get the number of Chromosome in the population. |
double |
getRescaledTotalFitness()
Get the total fitness rescaled for the roulette wheel selection. |
double |
getStdDev()
Get the standard deviation of the Chromosome's fitness at current generation. |
double |
getTotalFitness()
Get the sum of fitness of all Chromosome in the Population at current generation. |
boolean |
isConvergenceEvaluated()
Inform if convergence has been evaluated for all the chromosomes of the population in the current generation. |
void |
nextGeneration()
Technical operation to move from a generation to the next one. |
void |
print(boolean printChromosomeDetails,
boolean printGenomeDetails)
Print some Population's information to screen. |
void |
reciveAnIndividual()
Not implemented |
void |
sendAnIndividual()
Not implemented |
void |
setBody(Chromosome chromosome,
int position)
Set one of the Cromosomes from wich the Population is composed by. |
void |
setChromosomeList(java.util.ArrayList list)
Set all of the Cromosomes from wich the Population is composed by. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Population(GaConfiguration configuration)
configuration - Configuration from with get parameters| Method Detail |
public void generatePopulation()
public double getAverageFitness()
public Chromosome getChromosome(int position)
public java.util.ArrayList getChromosomeList()
public int getGenerationNumber()
public Chromosome getHigherFitted()
public Chromosome getLowerFitted()
public int getPopulationSize()
public double getStdDev()
public double getTotalFitness()
public void nextGeneration()
public void print(boolean printChromosomeDetails,
boolean printGenomeDetails)
printChromosomeDetails - Options defining if some Chromosome's info have to be printedprintGenomeDetails - Options defining if some Genome's info have to be printedpublic void reciveAnIndividual()
public void sendAnIndividual()
public void setBody(Chromosome chromosome,
int position)
chromosome - Inserted Chromosomeposition - Position of insertion.public void setChromosomeList(java.util.ArrayList list)
list - Chromosome LinkedListpublic double getRescaledTotalFitness()
public double getConvergence()
getDominantChromosome()). The restrictive nature of elitism could cause convergence to one of those local
minima, which is most likely a far from optimal solution.
Convergence is useful if the analyzed problem has not known maximum. The best solution is assumed when there is a high convergence. John Holland’s Schema Theorem [Holland, 1992] is widely accepted as mathematical proof that the genetic algorithm, due to its fitness-proportionate reproduction, converges to better solutions. The number of individuals in each group converges if the fitness of that group relative to the entire population is high, and vice versa.
getDominantChromosome()public Chromosome getDominantChromosome()
getConvergence()public boolean isConvergenceEvaluated()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||