|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
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
Field Summary | |
---|---|
protected static long |
serialVersionUID
Serialized version identifier in form YYYYMMDDVerRelModxx |
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 |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
double |
getFitness()
return the fitness value for this member Note: use computeFitness() to do the computation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public TstGeneticFunction1()
Method Detail |
public double getFitness()
AbleGeneticObject
getFitness
in class AbleGeneticObject
public double computeFitness()
computeFitness
in class AbleGeneticObject
com.ibm.able.beans.AbleGeneticObject
public static java.lang.String Copyright()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |