|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjenes.GeneticAlgorithm<IntegerChromosome>
jenes.tutorials.problem3.TSPGA
public class TSPGA
Nested Class Summary |
---|
Nested classes/interfaces inherited from class jenes.GeneticAlgorithm |
---|
GeneticAlgorithm.ElitismStrategy, GeneticAlgorithm.ResizeStrategy, GeneticAlgorithm.Statistics |
Field Summary |
---|
Fields inherited from class jenes.GeneticAlgorithm |
---|
algorithmListeners, body, DEFAULT_GENERATION_LIMIT, DEFAULT_HISTORY_SIZE, elitism, elitismStrategy, generation, generationLimit, generationListeners, initialPopulation, MAX_HISTORY_SIZE, MIN_HISTORY_SIZE, random, randomization, resizeStrategy, statistics |
Constructor Summary | |
---|---|
TSPGA(double[][] matrix,
Population<IntegerChromosome> pop,
int genlimit)
|
Method Summary | |
---|---|
protected void |
evaluateIndividual(Individual<IntegerChromosome> individual)
Evaluates a single individual. |
protected void |
randomizeIndividual(Individual<IntegerChromosome> individual)
Performs an individual randomization. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TSPGA(double[][] matrix, Population<IntegerChromosome> pop, int genlimit)
Method Detail |
---|
protected void evaluateIndividual(Individual<IntegerChromosome> individual)
GeneticAlgorithm
evaluateIndividual
in class GeneticAlgorithm<IntegerChromosome>
individual
- the individual to be evaluatedprotected void randomizeIndividual(Individual<IntegerChromosome> individual)
GeneticAlgorithm
GeneticAlgorithm.randomizePopulation(Population)
. By default randomization is
delegated to the individual. In some problems, it would be useful to
control the randomization process of individual. This is especially the
case of when there are some constraints on genes in order to make the
individual valid.
randomizeIndividual
in class GeneticAlgorithm<IntegerChromosome>
individual
- the individual to be randomize
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |