Hello, i tried again to run the code but this time i changed the waiting time and i set it as 999.
Now it works but i dont understand why he drops the request [11,8], could you tell me why??The time windows are not contradictory i think!
This are the input data:
data['distance_matrix']= [
[0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],
[1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1] ,
[1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1] ,
[1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1] ,
[1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1] ,
[1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1] ,
[1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1] ,
[1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1] ,
[1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1] ,
[1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1] ,
[0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],
[0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],
[0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],
[0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],
[0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],
[0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],
[0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],
[0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],
[0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0],
]
data['time_matrix'] = [
[0,8,9,11,8,11,8,14,9,9,31,31,5,17,12,16,16,16,16],
[6,0,3,3,3,5,5,6,4,6,28,28,7,22,11,21,21,20,20],
[10,5,0,5,2,2,3,5,2,3,27,27,6,18,10,26,26,19,19],
[7,3,5,0,4,7,7,7,5,10,30,30,8,21,12,20,20,21,21],
[15,8,1,5,0,3,4,4,1,4,27,27,12,17,11,23,23,25,25],
[10,14,7,10,6,0,9,8,5,6,28,28,6,21,10,26,26,19,19],
[8,16,6,12,9,6,0,16,10,6,26,26,5,25,8,24,24,17,17],
[17,14,12,4,8,12,14,0,3,12,28,28,17,19,14,23,23,27,27],
[18,11,5,7,3,7,9,4,0,7,29,29,17,19,14,24,24,27,27],
[10,5,1,6,3,3,3,5,3,0,28,28,6,19,10,25,25,19,19],
[31,31,26,31,31,29,25,27,27,26,0,0,25,33,19,39,39,38,38],
[31,31,26,31,31,29,25,27,27,26,0,0,25,33,19,39,39,38,38],
[7,7,5,9,10,9,4,18,8,4,25,25,0,20,7,20,20,14,14],
[18,30,18,21,25,19,21,17,17,22,33,33,20,0,18,28,28,28,28],
[12,14,9,16,13,15,8,13,15,9,19,19,8,18,0,26,26,20,20],
[16,23,24,24,24,27,23,23,24,24,39,39,20,29,27,0,0,28,28],
[16,23,24,24,24,27,23,23,24,24,39,39,20,29,27,0,0,28,28],
[16,22,18,25,21,24,16,24,22,17,38,38,14,27,20,27,27,0,0],
[16,22,18,25,21,24,16,24,22,17,38,38,14,27,20,27,27,0,0],
]
data['pickups_deliveries'] = [
[10,7],
[11,8],
[12,3],
[13,5],
[14,4],
[15,6],
[16,9],
[17,1],
[18,2],
]
data['time_windows'] = [
(0, 1000), # depot
(420,480), # 1
(60, 120), # 2
(360, 480), # 3
(180, 300), # 4
(300, 360), # 5
(360, 480), # 6
(120, 180), # 7
(240, 360), # 8
(120, 240), # 9
(0, 10000), # 10
(0, 10000), # 11
(0, 10000), # 12
(0, 10000), # 13
(0, 10000), # 14
(0, 10000), # 15
(0, 10000), # 16
(0, 10000), # 17
(0, 10000), # 18
]