Fixed cost
This commit is contained in:
@@ -64,6 +64,7 @@ void PrintSolution(std::vector<Vertex*> solution) {
|
||||
cost += j.weight;
|
||||
}
|
||||
}
|
||||
lastVertex = i;
|
||||
}
|
||||
std::cout << std::endl;
|
||||
std::cout << "Cost: " << cost << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user