I'm using Google's ortools.constraint_solver to find solutions to the Traveling Salesman Problem. As seen here. Everything works as expected when I run the program on one set of points.
Now that I got that working, I'm attempting to solve the TSP for multiple sets of points, by looping over all the sets and calling the the constraint solver on each set.
I have the below code re-defining the gflag tsp_size
depending on the size of a particular problem (not all sets are the same size):
gflags.DEFINE_integer('tsp_size', len(points), 'Size of Traveling Salesman Problem instance.')
Again, it works when there is only one set being specified, but upon running it for the second set, I get the error: gflags.DuplicateFlagError: The flag 'tsp_size' is defined twice.
How can I make separate instances of the constraint solver within the same run of a program, considering I have multiple graphs?