Documentation of 'org.jgap.BulkFitnessFunction' Java class
BulkFitnessFunction
org.jgap

Class BulkFitnessFunction

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, ICloneable
    Direct Known Subclasses:
    BulkFitnessOffsetRemover


    public abstract class BulkFitnessFunction
    extends java.lang.Object
    implements java.io.Serializable, ICloneable
    Bulk fitness functions are used to determine how optimal a group of solutions are relative to each other. Bulk fitness functions can be useful (vs. normal fitness functions) when fitness of a particular solution cannot be easily computed in isolation, but instead is dependent upon the fitness of its fellow solutions that are also under consideration. This abstract class should be extended and the evaluateChromosomes() method implemented to evaluate each of the Chromosomes given in an array and set their fitness values prior to returning.
    Since:
    1.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object clone()
      Override in your implementation if necessary.
      abstract void evaluate(Population a_chromosomes)
      Calculates and sets the fitness values on each of the given Chromosomes via their setFitnessValue() method.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BulkFitnessFunction

        public BulkFitnessFunction()
    • Method Detail

      • evaluate

        public abstract void evaluate(Population a_chromosomes)
        Calculates and sets the fitness values on each of the given Chromosomes via their setFitnessValue() method.
        Parameters:
        a_chromosomes - list of Chromosomes for which the fitness values must be computed and set
        Since:
        2.2 (prior versions used other input type)
      • clone

        public java.lang.Object clone()
        Override in your implementation if necessary.
        Specified by:
        clone in interface ICloneable
        Overrides:
        clone in class java.lang.Object
        Returns:
        deep clone of the current instance
        Since:
        3.2

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.