Here is what you can do:
1) Exploring Chapter 11, “Directional Local Search,” and Chapter 12, “Iterated Local Search from the Metaheuristics Handbook” (2010), each of which contains a section describing how GLS and ILS are designed for TSPs. Both ILS and GLS are interesting and fairly easy to implement.
2) Check this document: "Local Search Performed and its Application to the Salesman Problem"
3) Find the Ruby code for these algorithms here and rewrite it in Java
user855520
source share