0

I'm trying to optimize a road trip across the U.S. in an iJulia notebook. I'm currently having issues with subtours. Instead of creating one fluid trip, the solution jumps around from place to place. How could I get rid of the subtours so that my program creates one fluid trip across america. I also would like to have my starting and ending location be at New York City, but I don't know how to do that. enter image description here Constraints of program. These make sure you enter and exit each location once enter image description here Results of my program. Not one fluid trip, many subtours.

Tried making constraints so that you enter and exit each location once, but I don't know how to make it a fluid trip with no subtours.

2
  • For a tour, the starting/ending location is totally immaterial. Find a tour and choose the starting point afterwards. Commented Aug 2, 2023 at 18:45
  • For just 9 cities, an exhaustive search is quite feasible and you can add any constraint you like. Commented Aug 2, 2023 at 18:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.