Section 5 Challenge Problem: Traveling Salesman

Winston and Goldberg 2004 Pg 532

You *have* to visit all cities (demand).

What order will minimized the cost (total distance)?

Solve it using integer programming. You're give the table of distances between cities.

Set up the problem so you don't return to Ci immediately after leaving Ci. And also, a workaround for sub-tours - 3-4-3 (started from 3 and only visited 4) is not acceptable. 3-4-1-2-5-3 is acceptable (though may not be lowest cost).

I didn't follow the lesson, but, this is probably so well known that, if you had to do it, you could just use chatGPT to knock it out..

Comments

Popular posts from this blog

Integer Programming (Section 5) Introduces a Nice (Big "em") Coding Trick