/dports/math/py-or-tools/or-tools-9.2/ortools/constraint_solver/samples/ |
H A D | vrp_with_time_limit.py | 31 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 D | vrp.py | 119 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 D | vrp_global_span.py | 119 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 D | vrp_starts_ends.py | 114 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 D | vrp_initial_routes.py | 118 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 D | vrp_with_time_limit.cc | 38 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 D | tsp_cities_routes.cc | 57 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 D | vrp_capacity.py | 116 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 D | vrp_global_span.cc | 81 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 D | vrp_routes.cc | 77 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 D | vrp_pickup_delivery.py | 123 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 D | vrp_pickup_delivery_lifo.py | 123 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 D | vrp_pickup_delivery_fifo.py | 123 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 D | vrp_initial_routes.cc | 88 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 D | vrpgs.py | 78 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 D | vrp_starts_ends.cc | 94 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 D | vrp_drop_nodes.py | 125 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 D | SimpleRoutingProgram.cs | 77 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 D | simple_routing_program.py | 77 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 D | vrp_capacity.cc | 89 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 D | simple_routing_program.cc | 75 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 D | tsp_distance_matrix.py | 109 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 D | tsp_cities.py | 54 route_distance = 0 59 route_distance += routing.GetArcCostForVehicle(previous_index, index, 0) 62 plan_output += 'Route distance: {}miles\n'.format(route_distance)
|
H A D | vrp_pickup_delivery.cc | 102 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 D | tsp_sat.py | 108 route_distance = 0 115 route_distance += DISTANCE_MATRIX[current_node][i] 122 print('Travelled distance:', route_distance)
|