Package oracle.spatial.network.lod
Class Tsp2Opt
- java.lang.Object
-
- oracle.spatial.network.lod.Tsp2Opt
-
- All Implemented Interfaces:
TspOptimizer
public class Tsp2Opt extends java.lang.Object implements TspOptimizer
- Since:
- release specific (what release of product did this appear in)
-
-
Constructor Summary
Constructors Constructor Description Tsp2Opt(double tolerance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getTolerance()
int[]
optimize(Matrix<double[]> pairwiseCosts, TSP.TourFlag tourFlag, TspConstraint constraint)
void
setTolerance(double tolerance)
-
-
-
Method Detail
-
setTolerance
public void setTolerance(double tolerance)
-
getTolerance
public double getTolerance()
-
optimize
public int[] optimize(Matrix<double[]> pairwiseCosts, TSP.TourFlag tourFlag, TspConstraint constraint) throws LODNetworkException
- Specified by:
optimize
in interfaceTspOptimizer
- Throws:
LODNetworkException
-
-