gov.nasa.javaGenes.core
Class ProductFitnessFunction
java.lang.Object
gov.nasa.javaGenes.core.FitnessFunction
gov.nasa.javaGenes.core.FitnessFunctionMultiObjective
gov.nasa.javaGenes.core.FitnessFunctionMultiObjectiveToOne
gov.nasa.javaGenes.core.ProductFitnessFunction
- All Implemented Interfaces:
- java.io.Serializable
- public class ProductFitnessFunction
- extends FitnessFunctionMultiObjectiveToOne
this fitness function is a product of fitness functions times their weights with one added to
the fitness. One is the minimum fitness (the objectives are assumed to have positive fitness).
Weights are generally expected be less than one, although that is not required. If the weighted
fitenss before adding one is smaller than one, then the weight will have a strong effect on
the total fitness. If the weighted fitness before adding one is large, then the scaling by
weight will have little effect.
One is added because the best fitness is assumed to be zero and multiplication changes
direction when below one.
This approach was recommended by Greg Hornby
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ProductFitnessFunction
public ProductFitnessFunction()
evaluateFitness
public Fitness evaluateFitness(Evolvable evolvable)
- Overrides:
evaluateFitness
in class FitnessFunctionMultiObjective