| Forum | GitHub | Maps | Blog

Depot capacity for services


I want to add capacity constraint for depot in a multi depot vrp. Each depot has a predefined maximum capacity. The sum capacity of the services which belongs the the depot, cannot be higher than the depot max.

I constructed an updater and a hard constraint. I have the sum of the routes, but i don’t know how should i store the values for each depot.