From 0ddd473477552cc1c696ada01c3318d95b5b3167 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Wed, 16 Dec 2015 19:41:06 +0100 Subject: [PATCH] Use ::min() instead of -::max() --- algorithms/trip_farthest_insertion.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algorithms/trip_farthest_insertion.hpp b/algorithms/trip_farthest_insertion.hpp index e1f18ee33..91f0aa417 100644 --- a/algorithms/trip_farthest_insertion.hpp +++ b/algorithms/trip_farthest_insertion.hpp @@ -125,7 +125,7 @@ std::vector FindRoute(const std::size_t &number_of_locations, for (std::size_t j = 2; j < component_size; ++j) { - auto farthest_distance = -std::numeric_limits::max(); + auto farthest_distance = std::numeric_limits::min(); auto next_node = -1; NodeIDIter next_insert_point;