Home
last modified time | relevance | path

Searched refs:route_distance (Results 1 – 25 of 63) sorted by relevance

123

/dports/math/py-or-tools/or-tools-9.2/ortools/constraint_solver/samples/
H A Dvrp_with_time_limit.py31 route_distance = 0
36 route_distance += routing.GetArcCostForVehicle(
39 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
41 max_route_distance = max(route_distance, max_route_distance)
H A Dvrp.py119 route_distance = 0
124 route_distance += routing.GetArcCostForVehicle(
127 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
129 total_distance += route_distance
H A Dvrp_global_span.py119 route_distance = 0
124 route_distance += routing.GetArcCostForVehicle(
127 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
129 max_route_distance = max(route_distance, max_route_distance)
H A Dvrp_starts_ends.py114 route_distance = 0
119 route_distance += routing.GetArcCostForVehicle(
122 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
124 max_route_distance = max(route_distance, max_route_distance)
H A Dvrp_initial_routes.py118 route_distance = 0
123 route_distance += routing.GetArcCostForVehicle(
126 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
128 max_route_distance = max(route_distance, max_route_distance)
H A Dvrp_with_time_limit.cc38 int64_t route_distance{0}; in PrintSolution() local
44 route_distance += const_cast<RoutingModel&>(routing).GetArcCostForVehicle( in PrintSolution()
48 LOG(INFO) << "Distance of the route: " << route_distance << "m"; in PrintSolution()
49 max_route_distance = std::max(route_distance, max_route_distance); in PrintSolution()
H A Dtsp_cities_routes.cc57 int64_t route_distance{0};
63 route_distance +=
67 LOG(INFO) << "Distance of the route: " << route_distance << "m";
68 total_distance += route_distance;
H A Dvrp_capacity.py116 route_distance = 0
124 route_distance += routing.GetArcCostForVehicle(
128 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
131 total_distance += route_distance
H A Dvrp_global_span.cc81 int64_t route_distance{0}; in PrintSolution() local
87 route_distance += routing.GetArcCostForVehicle(previous_index, index, in PrintSolution()
91 LOG(INFO) << "Distance of the route: " << route_distance << "m"; in PrintSolution()
92 max_route_distance = std::max(route_distance, max_route_distance); in PrintSolution()
H A Dvrp_routes.cc77 int64_t route_distance{0}; in PrintSolution() local
83 route_distance += in PrintSolution()
87 LOG(INFO) << "Distance of the route: " << route_distance << "m"; in PrintSolution()
88 total_distance += route_distance; in PrintSolution()
H A Dvrp_pickup_delivery.py123 route_distance = 0
128 route_distance += routing.GetArcCostForVehicle(
131 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
133 total_distance += route_distance
H A Dvrp_pickup_delivery_lifo.py123 route_distance = 0
128 route_distance += routing.GetArcCostForVehicle(
131 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
133 total_distance += route_distance
H A Dvrp_pickup_delivery_fifo.py123 route_distance = 0
128 route_distance += routing.GetArcCostForVehicle(
131 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
133 total_distance += route_distance
H A Dvrp_initial_routes.cc88 int64_t route_distance{0}; in PrintSolution() local
94 route_distance += routing.GetArcCostForVehicle(previous_index, index, in PrintSolution()
98 LOG(INFO) << "Distance of the route: " << route_distance << "m"; in PrintSolution()
99 max_route_distance = std::max(route_distance, max_route_distance); in PrintSolution()
H A Dvrpgs.py78 route_distance = 0
83 route_distance += routing.GetArcCostForVehicle(
86 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
88 total_distance += route_distance
H A Dvrp_starts_ends.cc94 int64_t route_distance{0}; in PrintSolution() local
100 route_distance += routing.GetArcCostForVehicle(previous_index, index, in PrintSolution()
104 LOG(INFO) << "Distance of the route: " << route_distance << "m"; in PrintSolution()
105 max_route_distance = std::max(route_distance, max_route_distance); in PrintSolution()
H A Dvrp_drop_nodes.py125 route_distance = 0
133 route_distance += routing.GetArcCostForVehicle(
137 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
140 total_distance += route_distance
H A DSimpleRoutingProgram.cs77 long route_distance = 0;
83 route_distance += routing.GetArcCostForVehicle(previousIndex, index, 0);
86 Console.WriteLine("Distance of the route: {0}m", route_distance);
H A Dsimple_routing_program.py77 route_distance = 0
82 route_distance += routing.GetArcCostForVehicle(previous_index, index, 0)
84 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
H A Dvrp_capacity.cc89 int64_t route_distance{0}; in PrintSolution() local
98 route_distance += routing.GetArcCostForVehicle(previous_index, index, in PrintSolution()
102 LOG(INFO) << "Distance of the route: " << route_distance << "m"; in PrintSolution()
104 total_distance += route_distance; in PrintSolution()
H A Dsimple_routing_program.cc75 int64_t route_distance{0}; in SimpleRoutingProgram() local
81 route_distance += in SimpleRoutingProgram()
85 LOG(INFO) << "Distance of the route: " << route_distance << "m"; in SimpleRoutingProgram()
H A Dtsp_distance_matrix.py109 route_distance = 0
114 route_distance += routing.GetArcCostForVehicle(previous_index, index, 0)
116 plan_output += 'Distance of the route: {}m\n'.format(route_distance)
H A Dtsp_cities.py54 route_distance = 0
59 route_distance += routing.GetArcCostForVehicle(previous_index, index, 0)
62 plan_output += 'Route distance: {}miles\n'.format(route_distance)
H A Dvrp_pickup_delivery.cc102 int64_t route_distance{0}; in PrintSolution() local
108 route_distance += routing.GetArcCostForVehicle(previous_index, index, in PrintSolution()
112 LOG(INFO) << "Distance of the route: " << route_distance << "m"; in PrintSolution()
113 total_distance += route_distance; in PrintSolution()
/dports/math/py-or-tools/or-tools-9.2/examples/python/
H A Dtsp_sat.py108 route_distance = 0
115 route_distance += DISTANCE_MATRIX[current_node][i]
122 print('Travelled distance:', route_distance)

123