Skip to content

Commit 14791cb

Browse files
committed
routing: cleanup tsp_circuit_board
1 parent cf94c2d commit 14791cb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ortools/routing/samples/TspCircuitBoard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static void PrintSolution(in RoutingModel routing, in RoutingIndexManager manage
122122
routeDistance += routing.GetArcCostForVehicle(previousIndex, index, 0);
123123
}
124124
Console.WriteLine("{0}", manager.IndexToNode((int)index));
125-
Console.WriteLine("Route distance: {0}m", routeDistance);
125+
Console.WriteLine("Route distance: {0}mm", routeDistance);
126126
}
127127
// [END solution_printer]
128128

ortools/routing/samples/tsp_circuit_board.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void PrintSolution(const RoutingIndexManager& manager,
120120
distance += routing.GetArcCostForVehicle(previous_index, index, int64_t{0});
121121
}
122122
LOG(INFO) << route.str() << manager.IndexToNode(index).value();
123-
LOG(INFO) << "Route distance: " << distance << "miles";
123+
LOG(INFO) << "Route distance: " << distance << "mm";
124124
LOG(INFO) << "";
125125
LOG(INFO) << "Advanced usage:";
126126
LOG(INFO) << "Problem solved in " << routing.solver()->wall_time() << "ms";

ortools/routing/samples/tsp_circuit_board.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def print_solution(manager, routing, solution):
115115
index = solution.Value(routing.NextVar(index))
116116
route_distance += routing.GetArcCostForVehicle(previous_index, index, 0)
117117
plan_output += f" {manager.IndexToNode(index)}\n"
118-
plan_output += f"Route distance: {route_distance}m\n"
118+
plan_output += f"Route distance: {route_distance}mm\n"
119119
print(plan_output)
120120
# [END solution_printer]
121121

0 commit comments

Comments
 (0)