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
)
Function FindVrpRoutes (
distanceMatrix As Integer(,),
Optional depot As Integer = 0,
Optional numberOfVehicles As Nullable(Of Integer) = Nothing,
Optional maxCapacityPerVehicle As Nullable(Of Integer) = Nothing,
Optional maxDistancePerVehicle As Nullable(Of Integer) = Nothing
) As OrToolsServiceVrpResponse
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:
OrToolsServiceVrpResponseThe best routes obtained within the time limit allowed for calculation, or an error message.
See Also