public class Tsp2Opt extends java.lang.Object implements TspOptimizer
Constructor and Description |
---|
Tsp2Opt(double tolerance) |
Modifier and Type | Method and Description |
---|---|
double |
getTolerance() |
int[] |
optimize(Matrix<double[]> pairwiseCosts, TSP.TourFlag tourFlag, TspConstraint constraint) |
void |
setTolerance(double tolerance) |
public void setTolerance(double tolerance)
public double getTolerance()
public int[] optimize(Matrix<double[]> pairwiseCosts, TSP.TourFlag tourFlag, TspConstraint constraint) throws LODNetworkException
optimize
in interface TspOptimizer
LODNetworkException