lt.ktu.tsp.TSP_tabu
Class TSPFunction

java.lang.Object
  |
  +--lt.ktu.tsp.TSP_tabu.TSPFunction
All Implemented Interfaces:
Function
Direct Known Subclasses:
ObjectiveFunction

public class TSPFunction
extends java.lang.Object
implements Function


Field Summary
protected  int[][] matrica
           
 
Constructor Summary
TSPFunction()
           
TSPFunction(java.awt.geom.Point2D[] points)
           
 
Method Summary
 Estimate f(Result arg)
          Paskaiciuoja funkcijos reiksme argumentui arg
 Estimate f(Result arg, int i, int j, Estimate cur_value)
           
 int getAt(int i_, int j_)
           
 int[][] getMatrix()
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

matrica

protected int[][] matrica
Constructor Detail

TSPFunction

public TSPFunction()

TSPFunction

public TSPFunction(java.awt.geom.Point2D[] points)
Method Detail

f

public Estimate f(Result arg)
Paskaiciuoja funkcijos reiksme argumentui arg

Specified by:
f in interface Function
Parameters:
arg - funkcijos argumentas
Returns:
Funkcijos ivertinimas

size

public int size()

f

public Estimate f(Result arg,
                  int i,
                  int j,
                  Estimate cur_value)

getAt

public int getAt(int i_,
                 int j_)

getMatrix

public int[][] getMatrix()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object