While 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), an error is
thrown: gflags.DuplicateFlagError: The flag 'tsp_size' is defined twice.
This is because I have the following 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.')`
Everything works fine on the first set; the error is thrown upon processing the
second set
How can I make separate instances of the constraint solver within the same run
of a program, considering I have multiple graphs to loop over?
Original issue reported on code.google.com by s.gonzal...@gmail.com on 28 Jun 2015 at 8:15
Original issue reported on code.google.com by
s.gonzal...@gmail.com
on 28 Jun 2015 at 8:15