Balance activities with fleet minimization

Problem

{
  "plan": {
    "jobs": [
      {
        "id": "job1",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5697304,
                  "lng": 13.3848221
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job2",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5060419,
                  "lng": 13.5152641
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job3",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5421315,
                  "lng": 13.5189513
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job4",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5243421,
                  "lng": 13.4619776
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job5",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4629002,
                  "lng": 13.4757055
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job6",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4960479,
                  "lng": 13.3915876
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job7",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5372914,
                  "lng": 13.3996298
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job8",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5429597,
                  "lng": 13.3989552
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job9",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5678751,
                  "lng": 13.4231417
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job10",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4945572,
                  "lng": 13.4698049
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job11",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4989511,
                  "lng": 13.4740528
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job12",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4658835,
                  "lng": 13.4461224
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job13",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5685168,
                  "lng": 13.3690720
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job14",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4742821,
                  "lng": 13.3628588
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job15",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5650163,
                  "lng": 13.3027992
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job16",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5496702,
                  "lng": 13.4286263
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job17",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5058684,
                  "lng": 13.4750990
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job18",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5473416,
                  "lng": 13.3327894
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job19",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5276784,
                  "lng": 13.5465640
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job20",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5192039,
                  "lng": 13.3044440
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job21",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5228904,
                  "lng": 13.4418623
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job22",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4828453,
                  "lng": 13.4363713
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job23",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5291335,
                  "lng": 13.3668934
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job24",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5261554,
                  "lng": 13.5062954
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job25",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5189653,
                  "lng": 13.3890068
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job26",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5090143,
                  "lng": 13.4368189
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job27",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4940454,
                  "lng": 13.3788834
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job28",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5065998,
                  "lng": 13.3689955
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job29",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5473490,
                  "lng": 13.3733163
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job30",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4695374,
                  "lng": 13.4914662
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job31",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4868236,
                  "lng": 13.3353656
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job32",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4661617,
                  "lng": 13.3226920
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job33",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4917198,
                  "lng": 13.5251532
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job34",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5431264,
                  "lng": 13.4416407
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job35",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5426716,
                  "lng": 13.5161692
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job36",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4708241,
                  "lng": 13.3598752
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job37",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4737341,
                  "lng": 13.3866700
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job38",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5404107,
                  "lng": 13.3914127
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job39",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5492619,
                  "lng": 13.3693560
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job40",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4827319,
                  "lng": 13.3157235
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job41",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4711004,
                  "lng": 13.3321906
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job42",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4871049,
                  "lng": 13.5423247
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job43",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5614441,
                  "lng": 13.4194712
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job44",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5414557,
                  "lng": 13.5276390
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job45",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5425207,
                  "lng": 13.4139155
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job46",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5632095,
                  "lng": 13.2940051
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job47",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5146285,
                  "lng": 13.2852959
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job48",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4855438,
                  "lng": 13.3832067
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job49",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.5279215,
                  "lng": 13.4995315
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      },
      {
        "id": "job50",
        "deliveries": [
          {
            "places": [
              {
                "location": {
                  "lat": 52.4959052,
                  "lng": 13.3539713
                },
                "duration": 180.0
              }
            ],
            "demand": [
              1
            ]
          }
        ]
      }
    ]
  },
  "fleet": {
    "vehicles": [
      {
        "typeId": "vehicle",
        "vehicleIds": [
          "vehicle_1",
          "vehicle_2",
          "vehicle_3",
          "vehicle_4",
          "vehicle_5"
        ],
        "profile": "car",
        "costs": {
          "fixed": 20.0,
          "distance": 0.0002,
          "time": 0.005
        },
        "shifts": [
          {
            "start": {
              "earliest": "1970-01-01T00:00:00Z",
              "location": {
                "lat": 52.4664257,
                "lng": 13.2812488
              }
            },
            "end": {
              "latest": "1970-01-01T23:59:00Z",
              "location": {
                "lat": 52.4664257,
                "lng": 13.2812488
              }
            }
          }
        ],
        "capacity": [
          20
        ]
      }
    ],
    "profiles": [
      {
        "name": "car",
        "type": "car"
      }
    ]
  },
  "objectives": {
    "primary": [
      {
        "type": "minimize-unassigned"
      },
      {
        "type": "minimize-tours"
      }
    ],
    "secondary": [
      {
        "type": "minimize-cost"
      },
      {
        "type": "balance-activities",
        "options": {
          "tolerance": 0.05,
          "threshold": 0.01
        }
      }
    ]
  }
}

Solution

{
  "statistic": {
    "cost": 189.47459999999995,
    "distance": 120698,
    "duration": 21067,
    "times": {
      "driving": 12067,
      "serving": 9000,
      "waiting": 0,
      "break": 0
    }
  },
  "tours": [
    {
      "vehicleId": "vehicle_1",
      "typeId": "vehicle",
      "shiftIndex": 0,
      "stops": [
        {
          "location": {
            "lat": 52.4664257,
            "lng": 13.2812488
          },
          "time": {
            "arrival": "1970-01-01T00:00:00Z",
            "departure": "1970-01-01T00:00:00Z"
          },
          "distance": 0,
          "load": [
            16
          ],
          "activities": [
            {
              "jobId": "departure",
              "type": "departure"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4827319,
            "lng": 13.3157235
          },
          "time": {
            "arrival": "1970-01-01T00:04:56Z",
            "departure": "1970-01-01T00:07:56Z"
          },
          "distance": 2960,
          "load": [
            15
          ],
          "activities": [
            {
              "jobId": "job40",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4868236,
            "lng": 13.3353656
          },
          "time": {
            "arrival": "1970-01-01T00:10:17Z",
            "departure": "1970-01-01T00:13:17Z"
          },
          "distance": 4367,
          "load": [
            14
          ],
          "activities": [
            {
              "jobId": "job31",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4959052,
            "lng": 13.3539713
          },
          "time": {
            "arrival": "1970-01-01T00:15:59Z",
            "departure": "1970-01-01T00:18:59Z"
          },
          "distance": 5983,
          "load": [
            13
          ],
          "activities": [
            {
              "jobId": "job50",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5065998,
            "lng": 13.3689955
          },
          "time": {
            "arrival": "1970-01-01T00:21:36Z",
            "departure": "1970-01-01T00:24:36Z"
          },
          "distance": 7549,
          "load": [
            12
          ],
          "activities": [
            {
              "jobId": "job28",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5291335,
            "lng": 13.3668934
          },
          "time": {
            "arrival": "1970-01-01T00:28:47Z",
            "departure": "1970-01-01T00:31:47Z"
          },
          "distance": 10061,
          "load": [
            11
          ],
          "activities": [
            {
              "jobId": "job23",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5404107,
            "lng": 13.3914127
          },
          "time": {
            "arrival": "1970-01-01T00:35:15Z",
            "departure": "1970-01-01T00:38:15Z"
          },
          "distance": 12142,
          "load": [
            10
          ],
          "activities": [
            {
              "jobId": "job38",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5429597,
            "lng": 13.3989552
          },
          "time": {
            "arrival": "1970-01-01T00:39:13Z",
            "departure": "1970-01-01T00:42:13Z"
          },
          "distance": 12726,
          "load": [
            9
          ],
          "activities": [
            {
              "jobId": "job8",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5425207,
            "lng": 13.4139155
          },
          "time": {
            "arrival": "1970-01-01T00:43:54Z",
            "departure": "1970-01-01T00:46:54Z"
          },
          "distance": 13740,
          "load": [
            8
          ],
          "activities": [
            {
              "jobId": "job45",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5372914,
            "lng": 13.3996298
          },
          "time": {
            "arrival": "1970-01-01T00:48:47Z",
            "departure": "1970-01-01T00:51:47Z"
          },
          "distance": 14869,
          "load": [
            7
          ],
          "activities": [
            {
              "jobId": "job7",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5189653,
            "lng": 13.3890068
          },
          "time": {
            "arrival": "1970-01-01T00:55:23Z",
            "departure": "1970-01-01T00:58:23Z"
          },
          "distance": 17032,
          "load": [
            6
          ],
          "activities": [
            {
              "jobId": "job25",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4940454,
            "lng": 13.3788834
          },
          "time": {
            "arrival": "1970-01-01T01:03:09Z",
            "departure": "1970-01-01T01:06:09Z"
          },
          "distance": 19890,
          "load": [
            5
          ],
          "activities": [
            {
              "jobId": "job27",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4855438,
            "lng": 13.3832067
          },
          "time": {
            "arrival": "1970-01-01T01:07:48Z",
            "departure": "1970-01-01T01:10:48Z"
          },
          "distance": 20881,
          "load": [
            4
          ],
          "activities": [
            {
              "jobId": "job48",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4742821,
            "lng": 13.3628588
          },
          "time": {
            "arrival": "1970-01-01T01:13:54Z",
            "departure": "1970-01-01T01:16:54Z"
          },
          "distance": 22745,
          "load": [
            3
          ],
          "activities": [
            {
              "jobId": "job14",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4708241,
            "lng": 13.3598752
          },
          "time": {
            "arrival": "1970-01-01T01:17:37Z",
            "departure": "1970-01-01T01:20:37Z"
          },
          "distance": 23180,
          "load": [
            2
          ],
          "activities": [
            {
              "jobId": "job36",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4711004,
            "lng": 13.3321906
          },
          "time": {
            "arrival": "1970-01-01T01:23:45Z",
            "departure": "1970-01-01T01:26:45Z"
          },
          "distance": 25058,
          "load": [
            1
          ],
          "activities": [
            {
              "jobId": "job41",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4661617,
            "lng": 13.322692
          },
          "time": {
            "arrival": "1970-01-01T01:28:10Z",
            "departure": "1970-01-01T01:31:10Z"
          },
          "distance": 25905,
          "load": [
            0
          ],
          "activities": [
            {
              "jobId": "job32",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4664257,
            "lng": 13.2812488
          },
          "time": {
            "arrival": "1970-01-01T01:35:51Z",
            "departure": "1970-01-01T01:35:51Z"
          },
          "distance": 28716,
          "load": [
            0
          ],
          "activities": [
            {
              "jobId": "arrival",
              "type": "arrival"
            }
          ]
        }
      ],
      "statistic": {
        "cost": 54.49819999999999,
        "distance": 28716,
        "duration": 5751,
        "times": {
          "driving": 2871,
          "serving": 2880,
          "waiting": 0,
          "break": 0
        }
      }
    },
    {
      "vehicleId": "vehicle_3",
      "typeId": "vehicle",
      "shiftIndex": 0,
      "stops": [
        {
          "location": {
            "lat": 52.4664257,
            "lng": 13.2812488
          },
          "time": {
            "arrival": "1970-01-01T00:00:00Z",
            "departure": "1970-01-01T00:00:00Z"
          },
          "distance": 0,
          "load": [
            17
          ],
          "activities": [
            {
              "jobId": "departure",
              "type": "departure"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4960479,
            "lng": 13.3915876
          },
          "time": {
            "arrival": "1970-01-01T00:13:38Z",
            "departure": "1970-01-01T00:16:38Z"
          },
          "distance": 8175,
          "load": [
            16
          ],
          "activities": [
            {
              "jobId": "job6",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5090143,
            "lng": 13.4368189
          },
          "time": {
            "arrival": "1970-01-01T00:22:17Z",
            "departure": "1970-01-01T00:25:17Z"
          },
          "distance": 11563,
          "load": [
            15
          ],
          "activities": [
            {
              "jobId": "job26",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5228904,
            "lng": 13.4418623
          },
          "time": {
            "arrival": "1970-01-01T00:27:55Z",
            "departure": "1970-01-01T00:30:55Z"
          },
          "distance": 13145,
          "load": [
            14
          ],
          "activities": [
            {
              "jobId": "job21",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5243421,
            "lng": 13.4619776
          },
          "time": {
            "arrival": "1970-01-01T00:33:12Z",
            "departure": "1970-01-01T00:36:12Z"
          },
          "distance": 14517,
          "load": [
            13
          ],
          "activities": [
            {
              "jobId": "job4",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5431264,
            "lng": 13.4416407
          },
          "time": {
            "arrival": "1970-01-01T00:40:22Z",
            "departure": "1970-01-01T00:43:22Z"
          },
          "distance": 17021,
          "load": [
            12
          ],
          "activities": [
            {
              "jobId": "job34",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5496702,
            "lng": 13.4286263
          },
          "time": {
            "arrival": "1970-01-01T00:45:16Z",
            "departure": "1970-01-01T00:48:16Z"
          },
          "distance": 18164,
          "load": [
            11
          ],
          "activities": [
            {
              "jobId": "job16",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5614441,
            "lng": 13.4194712
          },
          "time": {
            "arrival": "1970-01-01T00:50:41Z",
            "departure": "1970-01-01T00:53:41Z"
          },
          "distance": 19614,
          "load": [
            10
          ],
          "activities": [
            {
              "jobId": "job43",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5678751,
            "lng": 13.4231417
          },
          "time": {
            "arrival": "1970-01-01T00:54:57Z",
            "departure": "1970-01-01T00:57:57Z"
          },
          "distance": 20372,
          "load": [
            9
          ],
          "activities": [
            {
              "jobId": "job9",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5697304,
            "lng": 13.3848221
          },
          "time": {
            "arrival": "1970-01-01T01:02:17Z",
            "departure": "1970-01-01T01:05:17Z"
          },
          "distance": 22973,
          "load": [
            8
          ],
          "activities": [
            {
              "jobId": "job1",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5685168,
            "lng": 13.369072
          },
          "time": {
            "arrival": "1970-01-01T01:07:04Z",
            "departure": "1970-01-01T01:10:04Z"
          },
          "distance": 24047,
          "load": [
            7
          ],
          "activities": [
            {
              "jobId": "job13",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.547349,
            "lng": 13.3733163
          },
          "time": {
            "arrival": "1970-01-01T01:14:01Z",
            "departure": "1970-01-01T01:17:01Z"
          },
          "distance": 26421,
          "load": [
            6
          ],
          "activities": [
            {
              "jobId": "job29",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5492619,
            "lng": 13.369356
          },
          "time": {
            "arrival": "1970-01-01T01:17:35Z",
            "departure": "1970-01-01T01:20:35Z"
          },
          "distance": 26763,
          "load": [
            5
          ],
          "activities": [
            {
              "jobId": "job39",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5473416,
            "lng": 13.3327894
          },
          "time": {
            "arrival": "1970-01-01T01:24:43Z",
            "departure": "1970-01-01T01:27:43Z"
          },
          "distance": 29247,
          "load": [
            4
          ],
          "activities": [
            {
              "jobId": "job18",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5650163,
            "lng": 13.3027992
          },
          "time": {
            "arrival": "1970-01-01T01:32:26Z",
            "departure": "1970-01-01T01:35:26Z"
          },
          "distance": 32074,
          "load": [
            3
          ],
          "activities": [
            {
              "jobId": "job15",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5632095,
            "lng": 13.2940051
          },
          "time": {
            "arrival": "1970-01-01T01:36:29Z",
            "departure": "1970-01-01T01:39:29Z"
          },
          "distance": 32702,
          "load": [
            2
          ],
          "activities": [
            {
              "jobId": "job46",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5192039,
            "lng": 13.304444
          },
          "time": {
            "arrival": "1970-01-01T01:47:44Z",
            "departure": "1970-01-01T01:50:44Z"
          },
          "distance": 37651,
          "load": [
            1
          ],
          "activities": [
            {
              "jobId": "job20",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5146285,
            "lng": 13.2852959
          },
          "time": {
            "arrival": "1970-01-01T01:53:03Z",
            "departure": "1970-01-01T01:56:03Z"
          },
          "distance": 39045,
          "load": [
            0
          ],
          "activities": [
            {
              "jobId": "job47",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4664257,
            "lng": 13.2812488
          },
          "time": {
            "arrival": "1970-01-01T02:05:00Z",
            "departure": "1970-01-01T02:05:00Z"
          },
          "distance": 44418,
          "load": [
            0
          ],
          "activities": [
            {
              "jobId": "arrival",
              "type": "arrival"
            }
          ]
        }
      ],
      "statistic": {
        "cost": 66.38359999999999,
        "distance": 44418,
        "duration": 7500,
        "times": {
          "driving": 4440,
          "serving": 3060,
          "waiting": 0,
          "break": 0
        }
      }
    },
    {
      "vehicleId": "vehicle_2",
      "typeId": "vehicle",
      "shiftIndex": 0,
      "stops": [
        {
          "location": {
            "lat": 52.4664257,
            "lng": 13.2812488
          },
          "time": {
            "arrival": "1970-01-01T00:00:00Z",
            "departure": "1970-01-01T00:00:00Z"
          },
          "distance": 0,
          "load": [
            17
          ],
          "activities": [
            {
              "jobId": "departure",
              "type": "departure"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4737341,
            "lng": 13.38667
          },
          "time": {
            "arrival": "1970-01-01T00:12:00Z",
            "departure": "1970-01-01T00:15:00Z"
          },
          "distance": 7195,
          "load": [
            16
          ],
          "activities": [
            {
              "jobId": "job37",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4828453,
            "lng": 13.4363713
          },
          "time": {
            "arrival": "1970-01-01T00:20:52Z",
            "departure": "1970-01-01T00:23:52Z"
          },
          "distance": 10714,
          "load": [
            15
          ],
          "activities": [
            {
              "jobId": "job22",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4945572,
            "lng": 13.4698049
          },
          "time": {
            "arrival": "1970-01-01T00:28:13Z",
            "departure": "1970-01-01T00:31:13Z"
          },
          "distance": 13329,
          "load": [
            14
          ],
          "activities": [
            {
              "jobId": "job10",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4989511,
            "lng": 13.4740528
          },
          "time": {
            "arrival": "1970-01-01T00:32:10Z",
            "departure": "1970-01-01T00:35:10Z"
          },
          "distance": 13897,
          "load": [
            13
          ],
          "activities": [
            {
              "jobId": "job11",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5058684,
            "lng": 13.475099
          },
          "time": {
            "arrival": "1970-01-01T00:36:27Z",
            "departure": "1970-01-01T00:39:27Z"
          },
          "distance": 14670,
          "load": [
            12
          ],
          "activities": [
            {
              "jobId": "job17",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5279215,
            "lng": 13.4995315
          },
          "time": {
            "arrival": "1970-01-01T00:44:23Z",
            "departure": "1970-01-01T00:47:23Z"
          },
          "distance": 17631,
          "load": [
            11
          ],
          "activities": [
            {
              "jobId": "job49",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5261554,
            "lng": 13.5062954
          },
          "time": {
            "arrival": "1970-01-01T00:48:13Z",
            "departure": "1970-01-01T00:51:13Z"
          },
          "distance": 18129,
          "load": [
            10
          ],
          "activities": [
            {
              "jobId": "job24",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5426716,
            "lng": 13.5161692
          },
          "time": {
            "arrival": "1970-01-01T00:54:29Z",
            "departure": "1970-01-01T00:57:29Z"
          },
          "distance": 20085,
          "load": [
            9
          ],
          "activities": [
            {
              "jobId": "job35",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5421315,
            "lng": 13.5189513
          },
          "time": {
            "arrival": "1970-01-01T00:57:49Z",
            "departure": "1970-01-01T01:00:49Z"
          },
          "distance": 20283,
          "load": [
            8
          ],
          "activities": [
            {
              "jobId": "job3",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5414557,
            "lng": 13.527639
          },
          "time": {
            "arrival": "1970-01-01T01:01:48Z",
            "departure": "1970-01-01T01:04:48Z"
          },
          "distance": 20876,
          "load": [
            7
          ],
          "activities": [
            {
              "jobId": "job44",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5276784,
            "lng": 13.546564
          },
          "time": {
            "arrival": "1970-01-01T01:08:08Z",
            "departure": "1970-01-01T01:11:08Z"
          },
          "distance": 22875,
          "load": [
            6
          ],
          "activities": [
            {
              "jobId": "job19",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.5060419,
            "lng": 13.5152641
          },
          "time": {
            "arrival": "1970-01-01T01:16:29Z",
            "departure": "1970-01-01T01:19:29Z"
          },
          "distance": 26084,
          "load": [
            5
          ],
          "activities": [
            {
              "jobId": "job2",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4917198,
            "lng": 13.5251532
          },
          "time": {
            "arrival": "1970-01-01T01:22:22Z",
            "departure": "1970-01-01T01:25:22Z"
          },
          "distance": 27813,
          "load": [
            4
          ],
          "activities": [
            {
              "jobId": "job33",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4871049,
            "lng": 13.5423247
          },
          "time": {
            "arrival": "1970-01-01T01:27:29Z",
            "departure": "1970-01-01T01:30:29Z"
          },
          "distance": 29085,
          "load": [
            3
          ],
          "activities": [
            {
              "jobId": "job42",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4695374,
            "lng": 13.4914662
          },
          "time": {
            "arrival": "1970-01-01T01:37:05Z",
            "departure": "1970-01-01T01:40:05Z"
          },
          "distance": 33049,
          "load": [
            2
          ],
          "activities": [
            {
              "jobId": "job30",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4629002,
            "lng": 13.4757055
          },
          "time": {
            "arrival": "1970-01-01T01:42:15Z",
            "departure": "1970-01-01T01:45:15Z"
          },
          "distance": 34348,
          "load": [
            1
          ],
          "activities": [
            {
              "jobId": "job5",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4658835,
            "lng": 13.4461224
          },
          "time": {
            "arrival": "1970-01-01T01:48:38Z",
            "departure": "1970-01-01T01:51:38Z"
          },
          "distance": 36382,
          "load": [
            0
          ],
          "activities": [
            {
              "jobId": "job12",
              "type": "delivery"
            }
          ]
        },
        {
          "location": {
            "lat": 52.4664257,
            "lng": 13.2812488
          },
          "time": {
            "arrival": "1970-01-01T02:10:16Z",
            "departure": "1970-01-01T02:10:16Z"
          },
          "distance": 47564,
          "load": [
            0
          ],
          "activities": [
            {
              "jobId": "arrival",
              "type": "arrival"
            }
          ]
        }
      ],
      "statistic": {
        "cost": 68.59279999999998,
        "distance": 47564,
        "duration": 7816,
        "times": {
          "driving": 4756,
          "serving": 3060,
          "waiting": 0,
          "break": 0
        }
      }
    }
  ],
  "unassigned": []
}


This objective balances amount of activities and minimizes fleet usage at the same time:

  "objectives": {
    "primary": [
      {
        "type": "minimize-unassigned"
      },
      {
        "type": "minimize-tours"
      }
    ],
    "secondary": [
      {
        "type": "minimize-cost"
      },
      {
        "type": "balance-activities",
        "options": {
          "tolerance": 0.05,
          "threshold": 0.01
        }
      }
    ]
  }

Only three vehicles used approximately 16 jobs per vehicle. If you remove minimize-tours, results should be similar to results on previous page.