Skip to content

Commit

Permalink
Keep some core tests
Browse files Browse the repository at this point in the history
  • Loading branch information
braktar committed Feb 27, 2024
1 parent 9068f72 commit 9cd9b42
Show file tree
Hide file tree
Showing 45 changed files with 23 additions and 0 deletions.
Binary file added test/fixtures/geometry_polyline.dump
Binary file not shown.
1 change: 1 addition & 0 deletions test/fixtures/geometry_polyline.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"vrp":{"points":[{"id":"point_0","location":{"lat":48,"lon":5}},{"id":"point_1","location":{"lat":49,"lon":1}}],"vehicles":[{"id":"vehicle_0","start_point_id":"point_0","speed_multiplier":1}],"services":[{"id":"service_0","activity":{"point_id":"point_0"}},{"id":"service_1","activity":{"point_id":"point_1"}}],"configuration":{"preprocessing":{"cluster_threshold":5},"restitution":{"geometry":true,"geometry_polyline":false,"intermediate_solutions":false},"resolution":{"duration":10}}}}
Binary file added test/fixtures/geometry_polyline_encoded.dump
Binary file not shown.
1 change: 1 addition & 0 deletions test/fixtures/geometry_polyline_encoded.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"vrp":{"points":[{"id":"point_0","location":{"lat":48,"lon":5}},{"id":"point_1","location":{"lat":50,"lon":1}}],"vehicles":[{"id":"vehicle_0","start_point_id":"point_0","speed_multiplier":1}],"services":[{"id":"service_0","activity":{"point_id":"point_0"}},{"id":"service_1","activity":{"point_id":"point_1"}}],"configuration":{"preprocessing":{"cluster_threshold":5},"restitution":{"geometry":true,"geometry_polyline":true,"intermediate_solutions":false},"resolution":{"duration":10}}}}
Binary file added test/fixtures/geometry_route_single_activity.dump
Binary file not shown.
1 change: 1 addition & 0 deletions test/fixtures/geometry_route_single_activity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"vrp":{"points":[{"id":"point_0","location":{"lat":48,"lon":5}},{"id":"point_1","location":{"lat":49,"lon":1}}],"vehicles":[{"id":"vehicle_0","start_point_id":"point_0","speed_multiplier":1},{"id":"vehicle_1","start_point_id":"point_0","speed_multiplier":1}],"services":[{"id":"service_0","activity":{"point_id":"point_0"}},{"id":"service_1","activity":{"point_id":"point_1"}}],"configuration":{"preprocessing":{"cluster_threshold":5},"restitution":{"geometry":true,"geometry_polyline":false,"intermediate_solutions":false},"resolution":{"duration":10}}}}
Binary file added test/fixtures/geometry_with_rests.dump
Binary file not shown.
1 change: 1 addition & 0 deletions test/fixtures/geometry_with_rests.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"vrp":{"points":[{"id":"point0","location":{"lat":43.7,"lon":5.7}},{"id":"point1","location":{"lat":44.2,"lon":6.2}},{"id":"depot","location":{"lat":44.0,"lon":5.1}}],"rests":[{"id":"break1","duration":3600.0,"timewindows":[{"start":45000,"end":48600}]}],"vehicles":[{"id":"vehicle1","cost_fixed":0.0,"cost_time_multiplier":1.0,"cost_waiting_time_multiplier":1.0,"router_mode":"car","router_dimension":"time","speed_multiplier":1.0,"start_point_id":"depot","end_point_id":"depot","rest_ids":["break1"],"timewindow":{"start":28800,"end":61200}}],"services":[{"id":"point0","activity":{"duration":1200.0,"point_id":"point0","timewindows":[{"start":28800,"end":63000}]}},{"id":"point1","priority":2,"visits_number":1,"activity":{"duration":1800.0,"point_id":"point1","timewindows":[{"start":30600,"end":57600}]}}],"configuration":{"resolution":{"duration":100},"restitution":{"geometry":true,"geometry_polyline":true,"intermediate_solutions":false}}}}
Binary file not shown.
1 change: 1 addition & 0 deletions test/fixtures/ortools_global_six_routes_without_rest.json

Large diffs are not rendered by default.

Binary file not shown.
1 change: 1 addition & 0 deletions test/fixtures/ortools_global_ten_routes_without_rest.json

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file added test/fixtures/ortools_multimodal_route.dump
Binary file not shown.
1 change: 1 addition & 0 deletions test/fixtures/ortools_multimodal_route.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"vrp":{"units":[{"id":"u4573"}],"points":[{"id":"p0","location":{"lat":44.831371,"lon":-0.561741}},{"id":"p1","location":{"lat":44.831783,"lon":-0.561455}},{"id":"p2","location":{"lat":44.830193,"lon":-0.556834}},{"id":"p3","location":{"lat":44.82949,"lon":-0.557655}},{"id":"p4","location":{"lat":44.828404,"lon":-0.553123}},{"id":"p5","location":{"lat":44.825806,"lon":-0.554512}},{"id":"p6","location":{"lat":44.825806,"lon":-0.554512}},{"id":"p7","location":{"lat":44.825806,"lon":-0.554512}},{"id":"p8","location":{"lat":44.824695,"lon":-0.552069}},{"id":"p9","location":{"lat":44.826907,"lon":-0.556719}},{"id":"p10","location":{"lat":44.827397,"lon":-0.557112}},{"id":"p11","location":{"lat":44.828743,"lon":-0.557821}},{"id":"p12","location":{"lat":44.828743,"lon":-0.557821}},{"id":"p13","location":{"lat":44.82944,"lon":-0.558981}},{"id":"p14","location":{"lat":44.826019,"lon":-0.560502}},{"id":"p15","location":{"lat":44.827305,"lon":-0.559858}},{"id":"p16","location":{"lat":44.826655,"lon":-0.557744}},{"id":"p17","location":{"lat":44.826684,"lon":-0.557777}},{"id":"p18","location":{"lat":44.826607,"lon":-0.561841}},{"id":"p19","location":{"lat":44.826436,"lon":-0.561952}},{"id":"p20","location":{"lat":44.826436,"lon":-0.561952}},{"id":"p21","location":{"lat":44.826255,"lon":-0.562071}},{"id":"p22","location":{"lat":44.825245,"lon":-0.56264}},{"id":"p23","location":{"lat":44.841264,"lon":-0.553608}},{"id":"p24","location":{"lat":44.841264,"lon":-0.553608}},{"id":"Park_eugene_leroy","location":{"lat":44.827387,"lon":-0.560877}},{"id":"Park_thiers","location":{"lat":44.850955,"lon":-0.542128}}],"rests":[],"vehicles":[{"id":"v231648","router_mode":"car","router_dimension":"time","speed_multiplier":0.8,"area":[],"speed_multiplier_area":[],"timewindow":{"start":28800,"end":54000},"duration":null,"distance":null,"start_point_id":"p23","end_point_id":"p24","cost_fixed":0.0,"cost_distance_multiplier":0.0,"cost_time_multiplier":1.0,"cost_waiting_time_multiplier":null,"cost_late_multiplier":0.3,"force_start":false,"rest_ids":[],"capacities":[],"skills":[],"toll":null,"approach":null,"motorway":null,"max_walk_distance":750}],"services":[{"id":"s41713052","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p0","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713053","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p1","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713054","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p2","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713055","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p3","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713056","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p4","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713057","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p5","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713058","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p6","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713059","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p7","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713060","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p8","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713061","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p9","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713062","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p10","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713063","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p11","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713064","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p12","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713065","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p13","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713066","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p14","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713067","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p15","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713068","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p16","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713069","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p17","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713070","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p18","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713071","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p19","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713072","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p20","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713073","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p21","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713074","sticky_vehicle_ids":["v231648"],"activity":{"point_id":"p22","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]}],"relations":[],"subtours":[{"id":"sub_test","time_bounds":360,"router_mode":"pedestrian","transmodal_stop_ids":["Park_eugene_leroy","Park_thiers"],"capacities":[{"unit_id":"u4573","limit":5}]}],"configuration":{"preprocessing":{"max_split_size":500,"prefer_short_segment":true},"resolution":{"duration":60000,"iterations_without_improvment":100,"initial_time_out":5000,"time_out_multiplier":2},"restitution":{"intermediate_solutions":false}}}}
Binary file added test/fixtures/ortools_multimodal_route2.dump
Binary file not shown.
1 change: 1 addition & 0 deletions test/fixtures/ortools_multimodal_route2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"vrp":{"units":[{"id":"u4573"}],"points":[{"id":"p23","location":{"lat":44.834516,"lon":-0.545501}},{"id":"p24","location":{"lat":44.834079,"lon":-0.549537}},{"id":"p25","location":{"lat":44.864336,"lon":-0.53798}},{"id":"p26","location":{"lat":44.864336,"lon":-0.53798}},{"id":"p27","location":{"lat":44.853503,"lon":-0.541143}},{"id":"p28","location":{"lat":44.85229,"lon":-0.543592}},{"id":"p29","location":{"lat":44.849427,"lon":-0.540192}},{"id":"p30","location":{"lat":44.850637,"lon":-0.541595}},{"id":"p31","location":{"lat":44.851261,"lon":-0.541523}},{"id":"p32","location":{"lat":44.851261,"lon":-0.541523}},{"id":"p33","location":{"lat":44.852824,"lon":-0.539685}},{"id":"p34","location":{"lat":44.851222,"lon":-0.542351}},{"id":"p35","location":{"lat":44.851169,"lon":-0.54596}},{"id":"p36","location":{"lat":44.84297,"lon":-0.546192}},{"id":"p37","location":{"lat":44.843088,"lon":-0.54325}},{"id":"p38","location":{"lat":44.844549,"lon":-0.543906}},{"id":"p39","location":{"lat":44.844345,"lon":-0.540554}},{"id":"p40","location":{"lat":44.848419,"lon":-0.544047}},{"id":"p41","location":{"lat":44.847383,"lon":-0.545689}},{"id":"p42","location":{"lat":44.846778,"lon":-0.54884}},{"id":"p43","location":{"lat":44.844741,"lon":-0.549029}},{"id":"p44","location":{"lat":44.843484,"lon":-0.547868}},{"id":"p45","location":{"lat":44.842034,"lon":-0.548004}},{"id":"p46","location":{"lat":44.841264,"lon":-0.553608}},{"id":"p47","location":{"lat":44.841264,"lon":-0.553608}},{"id":"p48","location":{"lat":44.841264,"lon":-0.553608}},{"id":"p49","location":{"lat":44.841264,"lon":-0.553608}},{"id":"Park_eugene_leroy","location":{"lat":44.827387,"lon":-0.560877}},{"id":"Park_thiers","location":{"lat":44.850955,"lon":-0.542128}}],"rests":[],"vehicles":[{"id":"v231648","router_mode":"car","router_dimension":"time","speed_multiplier":0.8,"area":[],"speed_multiplier_area":[],"timewindow":{"start":28800,"end":54000},"duration":null,"distance":null,"start_point_id":"p46","end_point_id":"p47","cost_fixed":0.0,"cost_distance_multiplier":0.0,"cost_time_multiplier":1.0,"cost_waiting_time_multiplier":null,"cost_late_multiplier":0.3,"force_start":false,"rest_ids":[],"capacities":[],"skills":[],"toll":null,"approach":null,"motorway":null,"max_walk_distance":750},{"id":"v231649","router_mode":"car","router_dimension":"time","speed_multiplier":0.8,"area":[],"speed_multiplier_area":[],"timewindow":{"start":28800,"end":61200},"duration":null,"distance":null,"start_point_id":"p48","end_point_id":"p49","cost_fixed":0.0,"cost_distance_multiplier":0.0,"cost_time_multiplier":1.0,"cost_waiting_time_multiplier":null,"cost_late_multiplier":0.3,"force_start":false,"rest_ids":[],"capacities":[],"skills":[],"toll":null,"approach":null,"motorway":null,"max_walk_distance":750}],"services":[{"id":"s41713075","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p23","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713076","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p24","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713077","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p25","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713078","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p26","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713079","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p27","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713080","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p28","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713081","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p29","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713082","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p30","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713083","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p31","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713084","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p32","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713085","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p33","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713086","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p34","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713087","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p35","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713088","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p36","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713089","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p37","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713090","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p38","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713091","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p39","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713092","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p40","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713093","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p41","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713094","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p42","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713095","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p43","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713096","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p44","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]},{"id":"s41713097","sticky_vehicle_ids":["v231649"],"activity":{"point_id":"p45","timewindows":[],"duration":120,"late_multiplier":0.3},"quantities":[{"unit_id":"u4573","value":1.0}]}],"relations":[],"subtours":[{"id":"sub_test","time_bounds":360,"router_mode":"pedestrian","transmodal_stop_ids":["Park_eugene_leroy","Park_thiers"],"capacities":[{"unit_id":"u4573","limit":5}]}],"configuration":{"preprocessing":{"max_split_size":500,"prefer_short_segment":true},"resolution":{"duration":60000,"iterations_without_improvment":100,"initial_time_out":5000,"time_out_multiplier":2},"restitution":{"intermediate_solutions":false}}}}
Binary file added test/fixtures/ortools_one_route_many_stops.dump
Binary file not shown.
1 change: 1 addition & 0 deletions test/fixtures/ortools_one_route_many_stops.json

Large diffs are not rendered by default.

Binary file added test/fixtures/ortools_one_route_with_rest.dump
Binary file not shown.
Loading

0 comments on commit 9cd9b42

Please sign in to comment.