|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.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 |
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 AbleGeneticObjectpublic double computeFitness()
computeFitness in class AbleGeneticObject
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||