Nimesh Madusanka
Nimesh Madusanka

Reputation: 17

How to use Capacity constraint and time window constraint as single solution with minimum cost for VRP?

This VRP has multiple locations, time windows for each location, multiple vehicles, and weight capacity for each vehicle.

VRP image

I started with Google's OR Tools.I need to get a vehicle routing result for each vehicle considering capcity and time windows of locations. I want to do Capacity constraint and time window constraint as single solution with minimum cost. How to achive this?

Upvotes: 0

Views: 958

Answers (1)

Laurent Perron
Laurent Perron

Reputation: 11014

Have you checked the sample directory for the routing library:

https://github.com/google/or-tools/tree/stable/ortools/constraint_solver/samples

and in particular the cvrp_tw example:

https://github.com/google/or-tools/blob/stable/ortools/constraint_solver/samples/cvrptw.py

Upvotes: 2

Related Questions