org.jgap
Class BulkFitnessFunction
- java.lang.Object
-
- org.jgap.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
-
-
Constructor Summary
Constructors Constructor and Description BulkFitnessFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()Override in your implementation if necessary.abstract voidevaluate(Population a_chromosomes)Calculates and sets the fitness values on each of the given Chromosomes via their setFitnessValue() method.
-
-
-
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:
clonein interfaceICloneable- Overrides:
clonein classjava.lang.Object- Returns:
- deep clone of the current instance
- Since:
- 3.2
-
-
DMelt 3.0 © DataMelt by jWork.ORG