net.sourceforge.jannealer.test
Class InverseObjectiveFunction

java.lang.Object
  |
  +--net.sourceforge.jannealer.test.InverseObjectiveFunction
All Implemented Interfaces:
ObjectiveFunction

public final class InverseObjectiveFunction
extends java.lang.Object
implements ObjectiveFunction

Normally this would just be an anonymous class, but we're using it from two classes.


Field Summary
(package private) static double A
           
(package private) static double B
           
(package private)  int count
           
 
Constructor Summary
(package private) InverseObjectiveFunction()
           
 
Method Summary
 double distance(double[] arg)
           
 int getNdim()
          Returns the number of dimensions for the objective function implemented
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

int count

A

static final double A

B

static final double B
Constructor Detail

InverseObjectiveFunction

InverseObjectiveFunction()
Method Detail

getNdim

public int getNdim()
Description copied from interface: ObjectiveFunction
Returns the number of dimensions for the objective function implemented
Specified by:
getNdim in interface ObjectiveFunction
Following copied from interface: net.sourceforge.jannealer.ObjectiveFunction
Returns:
The Ndim value

distance

public double distance(double[] arg)
Specified by:
distance in interface ObjectiveFunction
Following copied from interface: net.sourceforge.jannealer.ObjectiveFunction
Parameters:
params - arguments to distance function
Returns:
Calculates distance. The tolerance/spread refers to the return value from this function.