fr.inria.optimization.cmaes.fitness
Class FunctionCollector

java.lang.Object
  extended by fr.inria.optimization.cmaes.fitness.AbstractObjectiveFunction
      extended by fr.inria.optimization.cmaes.fitness.FunctionCollector
All Implemented Interfaces:
IObjectiveFunction, IObjectiveFunctionParallel

public class FunctionCollector
extends AbstractObjectiveFunction

one can access the desired fitness function by giving its number in the constructor method. Refer to the source code for the numbers. This class is a stub (and hack) so far.


Constructor Summary
FunctionCollector(double function_number, int flgRotate, double axisratio)
           
 
Method Summary
 boolean isFeasible(double[] x)
           
 double valueOf(double[] x)
          implements the fitness function evaluation according to interface IObjectiveFunction
 
Methods inherited from class fr.inria.optimization.cmaes.fitness.AbstractObjectiveFunction
valuesOf
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionCollector

public FunctionCollector(double function_number,
                         int flgRotate,
                         double axisratio)
Method Detail

valueOf

public double valueOf(double[] x)
implements the fitness function evaluation according to interface IObjectiveFunction

Specified by:
valueOf in interface IObjectiveFunction
Specified by:
valueOf in class AbstractObjectiveFunction
Parameters:
x - a point (candidate solution) in the pre-image of the objective function
Returns:
objective function value of the input search point

isFeasible

public boolean isFeasible(double[] x)
Specified by:
isFeasible in interface IObjectiveFunction
Overrides:
isFeasible in class AbstractObjectiveFunction