fr.inria.optimization.cmaes.fitness
Class AbstractObjectiveFunction

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

public abstract class AbstractObjectiveFunction
extends java.lang.Object
implements IObjectiveFunction, IObjectiveFunctionParallel

extending from this abstract class implements a generic isFeasible method and adds the IObjectiveFunctionParallel interface to a class that implements the interface IObjectiveFunction


Constructor Summary
AbstractObjectiveFunction()
           
 
Method Summary
 boolean isFeasible(double[] x)
           
abstract  double valueOf(double[] x)
           
 double[] valuesOf(double[][] pop)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractObjectiveFunction

public AbstractObjectiveFunction()
Method Detail

valueOf

public abstract double valueOf(double[] x)
Specified by:
valueOf in interface IObjectiveFunction
Parameters:
x - a point (candidate solution) in the pre-image of the objective function
Returns:
objective function value of the input search point

valuesOf

public double[] valuesOf(double[][] pop)
Specified by:
valuesOf in interface IObjectiveFunctionParallel
Parameters:
pop - is an array of search points to be evaluated, where pop[i] is the i-th point.
Returns:
array of objective function values. The i-th value is the objective function value of pop[i].

isFeasible

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