I am studying a project in Python. It's a vehicle routing problem with time-window. In this study, depot is denoted by 1. And there are 14 customers which are fulfilled with 4 vehicles. Each vehicle has 50 tons capacity. Travel time between every pair of locations i
and j
is 10 min. Also, distance between each customer are given. And also, every customer's demands are given. In addition, a customer's demand can be met by more than one vehicle.
I solved vehicle routing part but I can't add time window.
What I used:
import numpy as np
import matplotlib.pyplot as plt
from docplex.mp.model import Model
How I can add time window constraints? If it is possible, I would like to solve with docplex.mp.model
.