We are excited to announce a new feature for the Optimization API. This feature allows you to balance the number activities over your drivers. To use it, just specify the following objective:
"objectives": [
{
"type": "min-max",
"value": "activities"
}
]
This minimizes the maximum number of activities over all vehicle routes.
This is a nice alternative to
"objectives": [
{
"type": "min-max",
"value": "completion_time"
}
]
which minimizes the maximum completion_time over all routes. However, sometimes, one cannot reduce completion_time by employing another driver, but still there are idle drivers which got paid and need to work. In these cases, one might be better off balancing activities.