Description Usage Arguments Examples
To compute total cost of the routes
1 | Total_Cost(result, DMat)
|
result |
– List of routes |
1 2 3 4 5 6 7 8 9 10 | data(An32k5locations)
locations <- An32k5locations
DMat <- DistMat(locations)
row.names(DMat) <- locations[, 1]
colnames(DMat) <- locations[, 1]
data(An32k5demand)
demand <- An32k5demand
Vehicle_Capacity <- 100
result <- CW_VRP(demand, DMat = DMat, Vehicle_Capacity = Vehicle_Capacity)
Total_Cost(result, DMat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.