org.jgap
Class BulkFitnessFunction
java.lang.Object
org.jgap.BulkFitnessFunction
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ICloneable
- Direct Known Subclasses:
- BulkFitnessOffsetRemover, MultiObjectiveFitnessFunction
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 |
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BulkFitnessFunction
public BulkFitnessFunction()
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