examples.multiobjective
Class MultiObjectiveFitnessFunction
java.lang.Object
org.jgap.BulkFitnessFunction
examples.multiobjective.MultiObjectiveFitnessFunction
- All Implemented Interfaces:
- java.io.Serializable
public class MultiObjectiveFitnessFunction
- extends BulkFitnessFunction
Sample fitness function for the multiobjective problem.
- Since:
- 2.6
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_BOUND
public static final int MAX_BOUND
- See Also:
- Constant Field Values
MIN_X
public static final double MIN_X
- See Also:
- Constant Field Values
MAX_X
public static final double MAX_X
- See Also:
- Constant Field Values
MultiObjectiveFitnessFunction
public MultiObjectiveFitnessFunction()
evaluate
public void evaluate(Population a_subject)
- Determine the fitness of the given Chromosome instance. The higher the
returned value, the fitter the instance. This method should always
return the same fitness value for two equivalent Chromosome instances.
- Specified by:
evaluate in class BulkFitnessFunction
- Parameters:
a_subject - the population of chromosomes to evaluate- Since:
- 2.6
getVector
public static java.util.Vector getVector(IChromosome a_chrom)