R/computeTourLength.R
computeTourLength.Rd
Compute tour length given a TSP instance and a tour/permutation.
computeTourLength(x, tour, close.tour = TRUE, round = FALSE)
x | [ |
---|---|
tour | [ |
close.tour | [ |
round | [ |
[numeric(1)
]