A B C D E F G I M N P R S T W

A

addChromosomesToLog(int, int) - Method in class com.softtechdesign.ga.GA
Display chromosome information to System.out

B

bestFitnessChromIndex - Variable in class com.softtechdesign.ga.GA
index of fittest chromosome in current generation
binaryStrToInt(String) - Method in class com.softtechdesign.ga.GA
Take a binary string and convert it to the long integer.

C

ChromChars - class com.softtechdesign.ga.ChromChars.
Chromosome class where genes are stored as an array of chars
ChromChars(int) - Constructor for class com.softtechdesign.ga.ChromChars
Constructor creates new array of genes given the iGenesDim
chromDecPts - Variable in class com.softtechdesign.ga.GAString
you can store floating point numbers in strings.
ChromFloat - class com.softtechdesign.ga.ChromFloat.
Chromosome class where genes are stored as floating point numbers
ChromFloat(int) - Constructor for class com.softtechdesign.ga.ChromFloat
Creates an double array which stores the genes
chromNextGen - Variable in class com.softtechdesign.ga.GA
storage for temporary holding pool for next generation chromosomes
Chromosome - class com.softtechdesign.ga.Chromosome.
Chromosome is the abstract base class for all chromosomes.
Chromosome() - Constructor for class com.softtechdesign.ga.Chromosome
 
chromosomeDim - Variable in class com.softtechdesign.ga.GA
dimension of chromosome (number of genes)
chromosomes - Variable in class com.softtechdesign.ga.GA
storage for pool of chromosomes for current generation
ChromStrings - class com.softtechdesign.ga.ChromStrings.
Chromosome class where genes are stored as an array of strings
ChromStrings(int) - Constructor for class com.softtechdesign.ga.ChromStrings
Creates new string array of genes
chromStrToFloat(String, int) - Method in class com.softtechdesign.ga.GAString
Convert a chromosome string to it's double equivalent for example, if sChromosome = "01234" and iNumDecPts = 4, then return 0.1234
com.softtechdesign.ga - package com.softtechdesign.ga
 
computeFitnessRankings() - Method in class com.softtechdesign.ga.GA
Calculate rankings for all chromosomes.
computeStatistics - Variable in class com.softtechdesign.ga.GA
compute statistics for each generation during evolution?
copyChromGenes(Chromosome) - Method in class com.softtechdesign.ga.Chromosome
Copy the genes from the given chromosome over this chromosome's genes
copyChromGenes(Chromosome) - Method in class com.softtechdesign.ga.ChromFloat
Copy the genes from the given chromosome over the existing genes
copyChromGenes(Chromosome) - Method in class com.softtechdesign.ga.ChromStrings
Copy the genes from the given chromosome over the existing genes
copyChromGenes(Chromosome) - Method in class com.softtechdesign.ga.ChromChars
Copy the genes from the given chromosome over the existing genes
copyNextGenToThisGen() - Method in class com.softtechdesign.ga.GA
Copy the chromosomes previously created and stored in the "next" generation into the main chromsosome memory pool.
Crossover - interface com.softtechdesign.ga.Crossover.
The valid genetic mating crossover types
crossoverProb - Variable in class com.softtechdesign.ga.GA
probability that a crossover will occur during genetic mating
crossoverType - Variable in class com.softtechdesign.ga.GA
type of crossover to be employed during genetic mating
ctOnePoint - Static variable in interface com.softtechdesign.ga.Crossover
one point crossover
ctRoulette - Static variable in interface com.softtechdesign.ga.Crossover
roulette crossover (either one point, two point, or uniform)
ctTwoPoint - Static variable in interface com.softtechdesign.ga.Crossover
two point crossover
ctUniform - Static variable in interface com.softtechdesign.ga.Crossover
uniform crossover

D

decPtsPrecision - Variable in class com.softtechdesign.ga.GAFloat
the number of decimal points precision to use.
doGeneticMating() - Method in class com.softtechdesign.ga.GA
Create the next generation of chromosomes by genetically mating fitter individuals of the current generation.
doOnePtCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GA
do one point crossover between the two given chromosomes
doOnePtCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GAString
Genetically recombine the given chromosomes using a one point crossover technique.
doOnePtCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GAFloat
Genetically recombine the given chromosomes using a one point crossover technique.
doOnePtCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GAStringsSeq
Genetically recombine the given chromosomes using a one point crossover technique.
doOnePtCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GASequenceList
Perform one point crossover on the two given chromosomes
doRandomMutation(int) - Method in class com.softtechdesign.ga.GA
do a random mutation on given chromosome
doRandomMutation(int) - Method in class com.softtechdesign.ga.GAString
randomly swap two genes in the chromosome identified by the given index (iChromIndex)
doRandomMutation(int) - Method in class com.softtechdesign.ga.GAFloat
Randomly swap two genes in the chromosome identified by the given index (iChromIndex)
doRandomMutation(int) - Method in class com.softtechdesign.ga.GAStringsSeq
Randomly reassign a gene in the chromosome identified by the given index (iChromIndex) to one of the possible gene values
doTwoPtCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GA
do two point crossover between the two given chromosomes
doTwoPtCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GAString
Genetically recombine the given chromosomes using a two point crossover technique which combines two chromosomes at two random genes (loci), creating two new chromosomes.
doTwoPtCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GAFloat
Genetically recombine the given chromosomes using a two point crossover technique which combines two chromosomes at two random genes (loci), creating two new chromosomes.
doTwoPtCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GAStringsSeq
Genetically recombine the given chromosomes using a two point crossover technique which combines two chromosomes at two random genes (loci), creating two new chromosomes.
doTwoPtCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GASequenceList
Perform two point crossover on the two given chromosomes
doUniformCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GA
do uniform crossover between the two given chromosomes
doUniformCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GAString
Genetically recombine the given chromosomes using a uniform crossover technique.
doUniformCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GAFloat
Genetically recombine the given chromosomes using a uniform crossover technique.
doUniformCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GAStringsSeq
Genetically recombine the given chromosomes using a uniform crossover technique.
doUniformCrossover(Chromosome, Chromosome) - Method in class com.softtechdesign.ga.GASequenceList
Perform uniform crossover on the given two chromosomes

E

evolve() - Method in class com.softtechdesign.ga.GA
Main routine that runs the evolution simulation for this population of chromosomes.

F

fitness - Variable in class com.softtechdesign.ga.Chromosome
absolute (not relative) fitness value
fitnessRank - Variable in class com.softtechdesign.ga.Chromosome
0 = worst fit, PopDim = best fit

G

GA - class com.softtechdesign.ga.GA.
Package ga -------------------------------------------------------------------------------------------- The GAFloat, GAString, and GASequenceList classes all extend the GA class and can be used to model different populations of candidate solutions.
GA(int, int, double, int, int, int, int, double, int, boolean) - Constructor for class com.softtechdesign.ga.GA
Initializes the GA using given parameters
GAException - exception com.softtechdesign.ga.GAException.
Custom GA exception class
GAException(String) - Constructor for class com.softtechdesign.ga.GAException
GAException constructor
GAFloat - class com.softtechdesign.ga.GAFloat.
GAFloat class models chromosomes as floating point numbers.
GAFloat(int, int, double, int, int, int, int, double, int, int, boolean, boolean) - Constructor for class com.softtechdesign.ga.GAFloat
Initializes the GAFloat chromosome
GASequenceList - class com.softtechdesign.ga.GASequenceList.
The GASequenceList class models chromosomes as strings and extends GAString while adding one main capability: the ability to prevent duplicate genes from appearing in a chromosome.
GASequenceList(int, int, double, int, int, int, int, double, int, String, int, boolean) - Constructor for class com.softtechdesign.ga.GASequenceList
Initialize the GASequenceList
GAString - class com.softtechdesign.ga.GAString.
GAString models chromosomes as strings of characters
GAString(int, int, double, int, int, int, int, double, int, String, int, boolean) - Constructor for class com.softtechdesign.ga.GAString
Initialize the GAString
GAStringsSeq - class com.softtechdesign.ga.GAStringsSeq.
GAStringsSeq models chromosomes as arrays of strings.
GAStringsSeq(int, int, double, int, int, int, int, double, int, String[], int, boolean) - Constructor for class com.softtechdesign.ga.GAStringsSeq
Initialize the GAStringSeq
genAvgDeviation - Variable in class com.softtechdesign.ga.GA
statistics--average deviation of current generation
genAvgFitness - Variable in class com.softtechdesign.ga.GA
statistics--average fitness of current generation
genes - Variable in class com.softtechdesign.ga.ChromFloat
array of genes that comprise the chromosome
genes - Variable in class com.softtechdesign.ga.ChromStrings
array of genes which comprise this Chromosome
genes - Variable in class com.softtechdesign.ga.ChromChars
array of genes that comprise this Chromosome
getAvgDeviation(int) - Method in class com.softtechdesign.ga.GA
Gets the average deviation of the given generation of chromosomes
getAvgDeviationAmongChroms() - Method in class com.softtechdesign.ga.GA
Get the average deviation from the current population of chromosomes.
getAvgFitness() - Method in class com.softtechdesign.ga.GA
Go through all chromosomes and calculate the average fitness (of this generation)
getAvgFitness(int) - Method in class com.softtechdesign.ga.GA
Gets the average fitness of the given generation of chromosomes
getChromosome(int) - Method in class com.softtechdesign.ga.GAString
returns the given chromosome casted as a ChromChars
getChromosome(int) - Method in class com.softtechdesign.ga.GAFloat
Returns the chromosome casted as a ChromFloat
getChromosome(int) - Method in class com.softtechdesign.ga.GAStringsSeq
Returns the chromosome given by index casted as a ChromStrings object
getChromosomeDim() - Method in class com.softtechdesign.ga.GA
Gets the dimension (size or number) of genes per chromosome
getChromValAsDouble(String) - Method in class com.softtechdesign.ga.GAString
convert a chromosome string to a double
getChromWithoutDuplicates(String) - Method in class com.softtechdesign.ga.GASequenceList
Take the given chromosome which may have duplicated genes and eliminate any duplicated genes by replacing duplicates with genes which were left out of the chromosome (that is they exist in the gene space but not in the given chromosome).
getComputeStatistics() - Method in class com.softtechdesign.ga.GA
Returns whether statistics will be computed for this evolution run
getCrossoverProb() - Method in class com.softtechdesign.ga.GA
Gets the crossover probability
getCrossoverType() - Method in class com.softtechdesign.ga.GA
Gets the crossover type (e.g.
getFitness(int) - Method in class com.softtechdesign.ga.GA
get the fitness value for the given chromosome
getFitnessRank(double) - Method in class com.softtechdesign.ga.GA
Calculate the ranking of the parameter "fitness" with respect to the current generation.
getFittestChromosome() - Method in class com.softtechdesign.ga.GA
Returns the fittest chromosome in the population
getFittestChromosomesFitness() - Method in class com.softtechdesign.ga.GA
Gets the fitness value of the fittest chromosome in the population
getGene(int) - Method in class com.softtechdesign.ga.ChromFloat
return the gene indexed by iGene as a double
getGene(int) - Method in class com.softtechdesign.ga.ChromStrings
return the gene indexed by iGene as a char
getGene(int) - Method in class com.softtechdesign.ga.ChromChars
return the gene indexed by iGene as a char
getGenes() - Method in class com.softtechdesign.ga.ChromFloat
Getter for the genes array
getGenes() - Method in class com.softtechdesign.ga.ChromStrings
Get a reference to the genes array
getGenes() - Method in class com.softtechdesign.ga.ChromChars
Getter for the genes array
getGenesAsStr() - Method in class com.softtechdesign.ga.Chromosome
Get the genes as a string
getGenesAsStr() - Method in class com.softtechdesign.ga.ChromFloat
return the array of genes as a string
getGenesAsStr() - Method in class com.softtechdesign.ga.ChromStrings
return the array of genes as a string
getGenesAsStr() - Method in class com.softtechdesign.ga.ChromChars
return the array of genes as a string
getGenesAsString() - Method in class com.softtechdesign.ga.ChromFloat
Return the array of genes as a string
getMaxGenerations() - Method in class com.softtechdesign.ga.GA
Gets the maximum number of generations this evolution will evolve
getMaxPrelimGenerations() - Method in class com.softtechdesign.ga.GA
Gets the maximum number of preliminary generations to evolve
getMutationProb() - Method in class com.softtechdesign.ga.GA
Returns the mutation probability
getNumGenesInCommon(Chromosome) - Method in class com.softtechdesign.ga.Chromosome
Get the number of genes in common between this chromosome and the given chromosome
getNumGenesInCommon(Chromosome) - Method in class com.softtechdesign.ga.ChromFloat
Get the number of genes in common
getNumGenesInCommon(Chromosome) - Method in class com.softtechdesign.ga.ChromStrings
Calculates how many genes are the same between this chromosome and the given chromosome
getNumGenesInCommon(Chromosome) - Method in class com.softtechdesign.ga.ChromChars
Determines how many genes are in common betwen this Chromosome and the given Chromosome
getNumPrelimRuns() - Method in class com.softtechdesign.ga.GA
Gets the number of preliminary runs that will be performed before the main evolution begins
getPopulationDim() - Method in class com.softtechdesign.ga.GA
Gets the dimension (size or number) of chromosomes in the population
getRandom(double) - Method in class com.softtechdesign.ga.GA
return a double random number between 0 and upperBound
getRandom(int) - Method in class com.softtechdesign.ga.GA
return a integer random number between 0 and upperBound
getRandomGeneFromPossGenes() - Method in class com.softtechdesign.ga.GAString
Randomly pick and return a possible gene value
getRandomGeneFromPossGenes() - Method in class com.softtechdesign.ga.GAStringsSeq
Randomly pick and return a gene value
getRandomSelectionChance() - Method in class com.softtechdesign.ga.GA
Gets the random selection probability

I

initPopulation() - Method in class com.softtechdesign.ga.GA
initialize the population (chromosomes) to random values
initPopulation() - Method in class com.softtechdesign.ga.GAString
create random chromosomes from the given gene space.
initPopulation() - Method in class com.softtechdesign.ga.GAFloat
Create random chromosomes from the given gene space (floating pt numbers).
initPopulation() - Method in class com.softtechdesign.ga.GAStringsSeq
Create random chromosomes from the given gene space.
initPopulation() - Method in class com.softtechdesign.ga.GASequenceList
Create random chromosomes from the given gene space.

M

maxGenerations - Variable in class com.softtechdesign.ga.GA
maximum generations to evolve
maxPrelimGenerations - Variable in class com.softtechdesign.ga.GA
prelim generations.
mutationProb - Variable in class com.softtechdesign.ga.GA
probability of a mutation occuring during genetic mating.

N

numPossGeneValues - Variable in class com.softtechdesign.ga.GAStringsSeq
the number of possible gene values
numPrelimRuns - Variable in class com.softtechdesign.ga.GA
number of prelim generations to evolve.

P

populationDim - Variable in class com.softtechdesign.ga.GA
number of chromosomes to evolve.
positiveNumOnly - Variable in class com.softtechdesign.ga.GAFloat
constrain chromsosomes to positive numbers only?
possGeneValues - Variable in class com.softtechdesign.ga.GAString
legal gene (char) values.
possGeneValues - Variable in class com.softtechdesign.ga.GAStringsSeq
the building material or pool "allowed" or "possible" gene values
prelimChrom - Variable in class com.softtechdesign.ga.GA
storage for pool of prelim generation chromosomes

R

randomSelectionChance - Variable in class com.softtechdesign.ga.GA
1-100 (e.g.
run() - Method in class com.softtechdesign.ga.GA
Runs the evolution by calling evolve() routine

S

selectTwoParents(int[]) - Method in class com.softtechdesign.ga.GA
Select two parents from population, giving highly fit individuals a greater chance of being selected.
sequence - Variable in class com.softtechdesign.ga.GASequenceList
sequence of genes
setGene(int, double) - Method in class com.softtechdesign.ga.ChromFloat
Set the gene indexed by iGene to the given double value
setGene(String, int) - Method in class com.softtechdesign.ga.ChromStrings
sets the gene value
setGenesFromStr(String) - Method in class com.softtechdesign.ga.ChromChars
Set this chromosomes genes (array) to the given chromosome string
setGeneValue(int, int, String) - Method in class com.softtechdesign.ga.GAStringsSeq
Sets the value of a gene for the given chromosome at the given geneIndex

T

toString() - Method in class com.softtechdesign.ga.ChromFloat
Return the genes as a string
toString() - Method in class com.softtechdesign.ga.ChromStrings
Returns the array of genes as a string
toString() - Method in class com.softtechdesign.ga.ChromChars
Returns the genes in this chromosome as a string

W

worstFitnessChromIndex - Variable in class com.softtechdesign.ga.GA
index of least fit chromosome in current generation

A B C D E F G I M N P R S T W