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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
matrica
protected int[][] matrica
TSPFunction
public TSPFunction()
TSPFunction
public TSPFunction(java.awt.geom.Point2D[] points)
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