How does the cost function work for the TSP? Say I have a tour which has a distance of 100, and I change the tour slightly, making 4 changes to the original and it now has a distance of 50.
Would the cost function give me 4, because that's the number of changes; or 50, because of the change in distance? Or maybe I'm missing something and it's neither?