JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.permutation
Class PermutationPopulation

java.lang.Object
  extended bygov.nasa.javaGenes.core.Population
      extended bygov.nasa.javaGenes.permutation.PermutationPopulation
All Implemented Interfaces:
java.io.Serializable

public class PermutationPopulation
extends Population

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nasa.javaGenes.core.Population
generation, memory, population, time
 
Constructor Summary
protected PermutationPopulation(int size)
          create an empty population with int size members
  PermutationPopulation(int permutationLength, int populationSize, FitnessFunction fitness)
           
  PermutationPopulation(PermutationParameters parameters)
           
 
Method Summary
 Individual makeIndividual(Evolvable e, FitnessFunction f)
          Meant to be a general purpose method that creates individuals of whatever type are in this population.
 Population makePopulation(int size)
           
 
Methods inherited from class gov.nasa.javaGenes.core.Population
averageFitness, bestFitness, bestIndividual, bestIndividualIndex, countParts, evaluateFitness, fillEntropy, fillSamples, getEvolvable, getEvolvableHeader, getFitness, getGeneration, getIndex, getIndexRange, getIndividual, getLastIndex, getLogHeaderString, getLogString, getMemory, getParetoFront, getSize, getStandarPartOfLogHeaderString, getTime, getUniqueLogValue, getUniqueLogValueHeader, isDuplicate, isIndexLegal, makeIndividualArray, pick, pick, pick, report, retestStudents, setGeneration, setIndividual, setMemory, setTime, stateRestore, stateSave, totalEvolvableSize, worstFitness, worstFitness, worstIndividual, worstIndividual, worstIndividualIndex, worstIndividualIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermutationPopulation

public PermutationPopulation(PermutationParameters parameters)

PermutationPopulation

public PermutationPopulation(int permutationLength,
                             int populationSize,
                             FitnessFunction fitness)

PermutationPopulation

protected PermutationPopulation(int size)
create an empty population with int size members

Method Detail

makePopulation

public Population makePopulation(int size)
Overrides:
makePopulation in class Population
Returns:
a new empty population with int size members

makeIndividual

public Individual makeIndividual(Evolvable e,
                                 FitnessFunction f)
Description copied from class: Population
Meant to be a general purpose method that creates individuals of whatever type are in this population. Must be rewritten to actually do that.

Overrides:
makeIndividual in class Population
Returns:
a new Individual that has a evolvable. Normally replaced by subclass.

JavaGenes, NASA Ames. Written largely by Al Globus