JGAP

examples.grid.fitnessDistributed
Class SampleFitnessFunction

java.lang.Object
  extended by org.jgap.FitnessFunction
      extended by examples.grid.fitnessDistributed.SampleFitnessFunction
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ICloneable

public class SampleFitnessFunction
extends FitnessFunction

Fitness function for our example.

Since:
3.01
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jgap.FitnessFunction
DELTA, NO_FITNESS_VALUE
 
Constructor Summary
SampleFitnessFunction()
           
 
Method Summary
 double evaluate(IChromosome a_subject)
          The fitness evaluation routine.
 double evaluateRemote(IChromosome a_subject)
           
 
Methods inherited from class org.jgap.FitnessFunction
clone, getFitnessValue, getLastComputedFitnessValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleFitnessFunction

public SampleFitnessFunction()
Method Detail

evaluate

public double evaluate(IChromosome a_subject)
The fitness evaluation routine.

Specified by:
evaluate in class FitnessFunction
Parameters:
a_subject - the Chromosome to be evaluated
Returns:
defect rate of our problem
Since:
3.01

evaluateRemote

public double evaluateRemote(IChromosome a_subject)

JGAP