|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.beans.AbleGeneticObject | +--com.ibm.able.examples.genetic.TstGeneticFunction1
This class maximizes the number of on bits (1) in a binary string
Fields inherited from class com.ibm.able.beans.AbleGeneticObject |
chromosome,
chromosomeLength,
chromosomeType,
crossoverRate,
evaluationAgent,
fitness,
fitnessComputed,
member,
mutationRate,
normalizedFitness,
searchAgent,
vocabulary |
Constructor Summary | |
TstGeneticFunction1()
|
Method Summary | |
double |
computeFitness()
just add up the number of ones in the chromosome |
double |
getFitness()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public TstGeneticFunction1()
Method Detail |
public double getFitness()
public double computeFitness()
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |