Optimize all services and shipments by one vehicle within vehicle's working hours

I would like to optimize all services and shipments for one vehicle as much as vehicle can take within earliest and latest without optimizing to other vehicles.
When I tried ‘in_same_route’ relation, it optimizes all by one vehicle, but some of the rest of services and shipments cannot finish by this vehicle are not assigned to any other vehicles.
How could I do that?

Could you try to use the minimize vehicle objective? See here

1 Like

Thanks @karussell
I already tried after I found the topic you suggested and now is optimizing all jobs to one vehicle as first priority and then, the rests are optimized to other vehicles. I used as following:

“objectives”: [
“type”: “min”,
“value”: “vehicles”

1 Like