Closed hiramf closed 2 years ago
Hi @hiramf, do you want to report any bug or strange behavior with your example? Otherwise, I will close this issues as we do not offer support for pure modeling questions.
Help with modeling questions is, however, available at the OR StackExchange.
I would like my objective to be maximizing the number of nodes in a route while not exceeding a fixed distance. However, I can't seem to figure out how make my route contiguous. I get a route with length of 3 and 2 routes that are one arc long.
Using the example from the documentation for the TSP, I have tried setting the objective to:
and adding the constraint:
Here is my full code: