Click or drag to resize

IOrToolsFindVrpRoutes Method

Finds VRP (Vehicle Routing Problem) routes for vehicles.

Namespace:  NetQuarry.Services.OrTools
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
OrToolsServiceVrpResponse FindVrpRoutes(
	int[,] distanceMatrix,
	int depot = 0,
	Nullable<int> numberOfVehicles = null,
	Nullable<int> maxCapacityPerVehicle = null,
	Nullable<int> maxDistancePerVehicle = null
)

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.
numberOfVehicles (Optional)
Type: SystemNullableInt32
The number of vehicles available for routing.
maxCapacityPerVehicle (Optional)
Type: SystemNullableInt32
The maximum capacity (e.g. number of items that can be carried) for each vehicle.
maxDistancePerVehicle (Optional)
Type: SystemNullableInt32
The maximum distance allowed for each vehicle.

Return Value

Type: OrToolsServiceVrpResponse
The best routes obtained within the time limit allowed for calculation, or an error message.
See Also