public class TspPath
extends java.lang.Object
| Constructor and Description |
|---|
TspPath(LogicalSubPath[] paths,
int[] tspOrder)
Constructs a TspPath instance.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getCosts()
Returns the total cost of the TSP tour.
|
LogicalSubPath[] |
getPaths()
Returns the logical sub-path for the TSP tour.
|
int[] |
getTspOrder()
Returns the index of the points in visited order.
|
public TspPath(LogicalSubPath[] paths, int[] tspOrder)
paths - paths between two consecutive points on the tsp path.tspOrder - order of the points represented by the index of the points
in the original input array to the tsp analysis function.public LogicalSubPath[] getPaths()
public int[] getTspOrder()
public double[] getCosts()