Hello,
as part of an assignment I am trying to solve traveling salesman problems using or-tools. I am able to get solutions for all problem apart from the largest one, which has almost 34,000 nodes. The issue at the moment is that the solver doesn't give a solution even though I set time_limit.seconds = 60 (while it worked for smaller problems up to around 18,000 nodes). I attach the code and data the reproduce it.
I suspect the reason is that it is taking forever to compute the initial solution, since I had the same problem when I initially wrote my nearest neighbour heuristic. I overcame that by using a dedicated data structure instead of the full distance matrix (but the quality of the solution is not good enough...)
If that is the case, would it be possible to import the initial solution and use or-tools solver only for the local search part? Otherwise do you see any other problem in the code, and possible improvements?
Many thanks in advance for all possible insights that you would be able to provide.
Francesco