datakind / dk-routing

Container-based Action Routing Tool (CART)
MIT License
6 stars 11 forks source link

Have a load time per location determined by the number of containers #40

Open Zebreu opened 9 months ago

Zebreu commented 9 months ago

We currently have a load time set per location, for example:

"optimized_region": ["West"],
      "Start_Point": ["waste_basket"],
      "End_Point": ["West-UNLOAD"],
      "load_time": 2.5,
      "trips_vehicle_profile": [["3wheeler", 50]],
      "enable_unload": false,
      "unload_vehicles": [],
      "hours_allowed": 5

We would like to support multiplying this value by the number of containers present at every location. This should be enabled by an extra config option per zone (as seen above).

Zebreu commented 9 months ago

Rereading the code, we support a version of this already, we need to expose the option properly. We'll create a service time array per location and read that in as opposed to using a constant (def get_optimal_route in optimization.py to change, for example)