IOrToolsFindTspRoutes Method |
Finds TSP (Traveling Salesman Problem) routes.
Namespace:
NetQuarry.Services.OrTools
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax OrToolsServiceTspResponse FindTspRoutes(
int[,] distanceMatrix,
int depot = 0
)
Function FindTspRoutes (
distanceMatrix As Integer(,),
Optional depot As Integer = 0
) As OrToolsServiceTspResponse
Parameters
- distanceMatrix
- Type: SystemInt32
The distance matrix to use when solving. - depot (Optional)
- Type: SystemInt32
The zero-based index, within the distance matrix, of the start location.
Return Value
Type:
OrToolsServiceTspResponseThe best route obtained within the time limit allowed for calculation, or an error message.
See Also