public interface TSP
Modifier and Type | Interface and Description |
---|---|
static class |
TSP.TourFlag
Enumeration whose values indicate whether a tsp tour is open or closed, and if open, whether the tour have fixed start and/or end point.
|
Modifier and Type | Method and Description |
---|---|
void |
setNetworkAnalyst(NetworkAnalyst analyst)
This method allows caller to pass the network analyst object to this TSP algorithm implementation, so that the algorithm can call the analysis functions provided by the network analyst, or access the network explorer associated with the network analyst.
|
TspPath |
tspPath(PointOnNet[][] points, TSP.TourFlag tourFlag, LODNetworkConstraint pathConstraint, TspConstraint tspConstraint)
Returns the traveling salesman tour with the optimal or suboptimal cost.
|
void setNetworkAnalyst(NetworkAnalyst analyst)
TspPath tspPath(PointOnNet[][] points, TSP.TourFlag tourFlag, LODNetworkConstraint pathConstraint, TspConstraint tspConstraint) throws LODNetworkException
points
- points to visit on the TSP tour.tourFlag
- a flag indicating whether the tour should be open or closed, and if the tour is open, whether the tour should have fixed start or end point.pathConstraint
- network constrainttspConstraint
- tsp constraintLODNetworkException