fr.inria.optimization.cmaes.fitness
Class FunctionCollector
java.lang.Object
fr.inria.optimization.cmaes.fitness.AbstractObjectiveFunction
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FunctionCollector
public FunctionCollector(double function_number,
int flgRotate,
double axisratio)
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