constraint_solver: sync with google3

This commit is contained in:
Corentin Le Molgat
2023-05-31 14:27:08 +02:00
parent cb6d120b2d
commit f25897b566
28 changed files with 732 additions and 826 deletions

View File

@@ -100,7 +100,7 @@ void PrintSolution(const DataModel& data, const RoutingIndexManager& manager,
for (int vehicle_id = 0; vehicle_id < data.num_vehicles; ++vehicle_id) {
int64_t index = routing.Start(vehicle_id);
LOG(INFO) << "Route for Vehicle " << vehicle_id << ":";
int64_t route_distance =0;
int64_t route_distance = 0;
std::stringstream route;
while (!routing.IsEnd(index)) {
route << manager.IndexToNode(index).value() << " -> ";

View File

@@ -13,7 +13,6 @@
// [START program]
// [START import]
#include <algorithm>
#include <cstdint>
#include <functional>
#include <sstream>