Simulated annealing solution to a travelling salesman type problem.