Click or drag to resize

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
)

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: OrToolsServiceTspResponse
The best route obtained within the time limit allowed for calculation, or an error message.
See Also