JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.core
Class WeightedSumFitness

java.lang.Object
  extended bygov.nasa.javaGenes.core.FitnessFunction
      extended bygov.nasa.javaGenes.core.FitnessFunctionMultiObjective
          extended bygov.nasa.javaGenes.core.FitnessFunctionMultiObjectiveToOne
              extended bygov.nasa.javaGenes.core.WeightedSumFitness
All Implemented Interfaces:
java.io.Serializable

public class WeightedSumFitness
extends FitnessFunctionMultiObjectiveToOne

this fitness function is a weighted sum of fitness functions

See Also:
Serialized Form

Field Summary
protected  boolean normalizeByWeight
           
 
Fields inherited from class gov.nasa.javaGenes.core.FitnessFunctionMultiObjective
fitnessFunctions, weights
 
Fields inherited from class gov.nasa.javaGenes.core.FitnessFunction
name
 
Constructor Summary
WeightedSumFitness()
           
WeightedSumFitness(boolean normalizeByWeight)
           
 
Method Summary
 Fitness evaluateFitness(Evolvable evolvable)
           
 void setNormalizeByWeight(boolean value)
           
 
Methods inherited from class gov.nasa.javaGenes.core.FitnessFunctionMultiObjectiveToOne
getNameArray, numberOfObjectives
 
Methods inherited from class gov.nasa.javaGenes.core.FitnessFunctionMultiObjective
add, add, bestDouble, getFitnessFunction, getNewFitness, getWeight, makeFiles, toString, worstDouble
 
Methods inherited from class gov.nasa.javaGenes.core.FitnessFunction
getFunction, getName, isNewFunction, report, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

normalizeByWeight

protected boolean normalizeByWeight
Constructor Detail

WeightedSumFitness

public WeightedSumFitness()

WeightedSumFitness

public WeightedSumFitness(boolean normalizeByWeight)
Method Detail

evaluateFitness

public Fitness evaluateFitness(Evolvable evolvable)
Overrides:
evaluateFitness in class FitnessFunctionMultiObjective

setNormalizeByWeight

public void setNormalizeByWeight(boolean value)

JavaGenes, NASA Ames. Written largely by Al Globus