net.sourceforge.jannealer
Interface ObjectiveFunction

All Known Implementing Classes:
InverseObjectiveFunction

public interface ObjectiveFunction

This interface must be implemented by all the classes that encapsulate a function that is to be minimized

Since:
October 29, 2001

Method Summary
 double distance(double[] params)
           
 int getNdim()
          Returns the number of dimensions for the objective function implemented
 

Method Detail

getNdim

public int getNdim()
Returns the number of dimensions for the objective function implemented
Returns:
The Ndim value

distance

public double distance(double[] params)
Parameters:
params - arguments to distance function
Returns:
Calculates distance. The tolerance/spread refers to the return value from this function.