Documentation of 'org.jgap.impl.job.MaxFunction' Java class
MaxFunction
org.jgap.impl.job

Class MaxFunction

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, ICloneable


    public class MaxFunction
    extends FitnessFunction
    Fitness function for SimpleJobConsumer.
    Since:
    3.2
    See Also:
    Serialized Form
    • Constructor Detail

      • MaxFunction

        public MaxFunction()
    • Method Detail

      • evaluate

        public double evaluate(IChromosome a_subject)
        Description copied from class: FitnessFunction
        Determine the fitness of the given Chromosome instance. The higher the return value, the more fit the instance. This method should always return the same fitness value for two equivalent Chromosome instances.
        Parameters:
        a_subject - the Chromosome instance to evaluate
        Returns:
        positive double reflecting the fitness rating of the given Chromosome. Note that if a non-positive double is returned, a RuntimeException should be generated

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.