JGAP

org.jgap.impl.fitness
Class RosenbrocksBulkNegativeFunction

java.lang.Object
  extended by org.jgap.BulkFitnessFunction
      extended by org.jgap.impl.fitness.RosenbrocksBulkNegativeFunction
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ICloneable

public class RosenbrocksBulkNegativeFunction
extends BulkFitnessFunction

Rosenbrock's fitness function. Rosenbrock's function is a good test function in optimization. It has a unique minimum value at the point (1,1). Finding the minimum is a challenge for some algorithms since it has a shallow minimum inside a deeply curved valley.

Since:
3.6.2
See Also:
Serialized Form

Method Summary
 double evaluate(IChromosome ic)
           
 void evaluate(Population a_subject)
          Calculates and sets the fitness values on each of the given Chromosomes via their setFitnessValue() method.
 double getFunctionValue(double X, double Y)
           
 
Methods inherited from class org.jgap.BulkFitnessFunction
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

evaluate

public double evaluate(IChromosome ic)

getFunctionValue

public double getFunctionValue(double X,
                               double Y)

evaluate

public void evaluate(Population a_subject)
Description copied from class: BulkFitnessFunction
Calculates and sets the fitness values on each of the given Chromosomes via their setFitnessValue() method.

Specified by:
evaluate in class BulkFitnessFunction
Parameters:
a_subject - list of Chromosomes for which the fitness values must be computed and set

JGAP