ABLE, Version 1.1b

com.ibm.able.examples.genetic
Class TstGeneticFunction1

java.lang.Object
  |
  +--com.ibm.able.beans.AbleGeneticObject
        |
        +--com.ibm.able.examples.genetic.TstGeneticFunction1

public class TstGeneticFunction1
extends AbleGeneticObject

This class maximizes the number of on bits (1) in a binary string

See Also:
Serialized Form

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 com.ibm.able.beans.AbleGeneticObject
binaryToInteger, generateRandomChromosome, getBean, getChromosome, getChromosomeLength, getChromosomeType, getCrossoverRate, getMutationRate, getNormalizedFitness, getOperatorFitness, getRandomChromosome, getVocabulary, initBean, initEvaluationAgent, mutate, mutateChromosome, onePointCrossover, onePointCrossoverAndMutate, registerOperators, removeBean, setChromosome, setCrossoverRate, setEvaluationAgent, setMutationRate, setNormalizedFitness, toString, twoPointCrossover, uniformCrossover
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TstGeneticFunction1

public TstGeneticFunction1()
Method Detail

getFitness

public double getFitness()
Overrides:
getFitness in class AbleGeneticObject

computeFitness

public double computeFitness()
just add up the number of ones in the chromosome
Overrides:
computeFitness in class AbleGeneticObject

ABLE, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'