datakind / dk-routing

Container-based Action Routing Tool (CART)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Zebreu opened this issue · comments

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).

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)