lt.ktu.tsp.TSP_tabu.aopents
Class ObjectiveFunction

java.lang.Object
  |
  +--lt.ktu.tsp.TSP_tabu.TSPFunction
        |
        +--lt.ktu.tsp.TSP_tabu.aopents.ObjectiveFunction
All Implemented Interfaces:
Function, org.coinor.opents.ObjectiveFunction, java.io.Serializable

public class ObjectiveFunction
extends TSPFunction
implements org.coinor.opents.ObjectiveFunction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class lt.ktu.tsp.TSP_tabu.TSPFunction
matrica
 
Constructor Summary
ObjectiveFunction(java.awt.geom.Point2D[] points)
          Creates a new instance of ObjectiveFunction
ObjectiveFunction(TSPFunction f)
           
 
Method Summary
 double[] evaluate(org.coinor.opents.Solution solution, org.coinor.opents.Move move)
           
 
Methods inherited from class lt.ktu.tsp.TSP_tabu.TSPFunction
f, f, getAt, getMatrix, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectiveFunction

public ObjectiveFunction(java.awt.geom.Point2D[] points)
Creates a new instance of ObjectiveFunction


ObjectiveFunction

public ObjectiveFunction(TSPFunction f)
Method Detail

evaluate

public double[] evaluate(org.coinor.opents.Solution solution,
                         org.coinor.opents.Move move)
Specified by:
evaluate in interface org.coinor.opents.ObjectiveFunction