dLife Home Page

dlife.ga
Interface IndividualFitnessFunction

All Superinterfaces:
FitnessFunction, Serializable
All Known Implementing Classes:
ConstantFitnessFunction

public interface IndividualFitnessFunction
extends FitnessFunction

Interface that is implemented to produce a FitnessFunction that is applied to each Individual in the Population in turn. The nextGeneration method of the Population will invoke the evaluate method on each Individual in the Population to determine the Individual's fitness and then use the returned value to set the Individual's fitness.

Version:
Jun 6, 2007
Author:
Grant Braught, Dickinson College

Method Summary
 double evaluate(Individual ind)
          Return the fitness of the provided Individual.
 

Method Detail

evaluate

double evaluate(Individual ind)
Return the fitness of the provided Individual. This method should not set the fitness of the Individual it should just evaluate the Individual and return its fitness.

Parameters:
ind - the Individual to be evaluated.
Returns:
the fitness of the Individual.

dLife Home Page