add parameter to choose algorithm for tsp calculation and remove redundant code

This commit is contained in:
Chau Nguyen
2015-07-10 12:25:35 -04:00
committed by Huyen Chau Nguyen
parent b15f8f68e4
commit 6191b6bee2
9 changed files with 39 additions and 655 deletions
-1
View File
@@ -79,7 +79,6 @@ void BruteForceTSP(std::vector<unsigned> & location,
InternalRouteResult & min_route,
std::vector<int> & min_loc_permutation) {
const auto number_of_location = phantom_node_vector.size();
const int component_size = location.size();
int min_route_dist = std::numeric_limits<int>::max();