Skip to content

Commit

Permalink
Remove some print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
GoncaloPascoal committed Jun 18, 2022
1 parent ab4ca7a commit 5f3666a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/algorithms/ant_colony.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ CvrpSolution antColonyOptimization(const CvrpInstance& instance, size_t maxItera

if (solution.length < bestSolution.length) {
bestSolution = solution;
cout << "[ITER. " << iter << "] New best solution: " << solution.length / 1000 << "km." << endl;
}

for (const auto& route : solution.routes) {
Expand Down
7 changes: 0 additions & 7 deletions src/algorithms/tabu_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,6 @@ CvrpSolution granularTabuSearch(const CvrpInstance& instance, size_t maxIteratio
tabuList[edge] = tenureDistribution(rng);
}

cout << "[ITER. " << iter << "] Evaluated " << movesEvaluated
<< " moves, best non-tabu route has length " << iterationBest->length / 1000
<< "km" << endl;

currentSolution = move(*iterationBest);

if (iter % PENALTY_UPDATE_ITERS == 0) {
Expand All @@ -451,8 +447,5 @@ CvrpSolution granularTabuSearch(const CvrpInstance& instance, size_t maxIteratio
}
}

cout << "Best solution found by algorithm has length " << bestSolution.length / 1000
<< "km" << endl;

return bestSolution.toStandardForm();
}

0 comments on commit 5f3666a

Please sign in to comment.