org.jgap.impl.fitness
Class RosenbrocksBulkNegativeFunction
java.lang.Object
org.jgap.BulkFitnessFunction
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
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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