Total_Cost: To compute total cost of the routes

Description Usage Arguments Examples

Description

To compute total cost of the routes

Usage

1
Total_Cost(result, DMat)

Arguments

result

– List of routes

Examples

 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)

kavetinaveen/HeuristicsVRP documentation built on May 20, 2019, 7:53 a.m.