Mon Jul 27 13:06:25 2026 tsp_anneal_test(): R version 4.1.2 (2021-11-01) tsp_anneal() solves a traveling salesperson problem (TSP) using simulated annealing. temp: [1] 1 Ordering: [1] 11 5 24 34 8 22 12 14 35 20 4 30 7 38 39 10 37 19 15 9 33 23 21 25 26 [26] 27 16 2 3 17 28 13 6 36 41 18 29 40 31 32 42 1 Length of round trip: [1] 2855.079 temp: [1] 10 Ordering: [1] 35 7 9 16 27 5 2 42 40 33 28 20 17 39 38 22 15 24 34 36 11 12 8 6 32 [26] 26 23 25 4 41 3 18 13 10 31 29 14 19 21 30 1 37 Length of round trip: [1] 2188.599 temp: [1] 100 Ordering: [1] 7 17 14 19 22 28 32 33 37 38 6 34 21 23 13 16 15 18 25 10 27 36 5 30 42 [26] 1 2 40 35 31 3 4 9 8 26 29 20 11 12 24 41 39 Length of round trip: [1] 1579.901 temp: [1] 1000 Ordering: [1] 31 34 35 24 18 14 16 8 3 4 1 5 7 6 33 32 30 27 28 21 22 12 10 36 38 [26] 40 41 42 2 11 17 23 26 29 37 39 9 25 13 15 19 20 Length of round trip: [1] 1488.045 temp: [1] 10000 Ordering: [1] 40 2 4 22 12 10 9 8 25 28 30 31 32 36 1 42 41 38 5 26 24 27 29 21 18 [26] 15 14 19 20 17 16 13 23 11 33 34 35 37 6 7 3 39 Length of round trip: [1] 1159.009 temp: [1] 1e+05 Ordering: [1] 40 42 36 35 30 3 9 11 22 13 17 20 29 31 34 38 24 12 23 16 14 15 18 19 21 [26] 10 8 7 26 27 2 1 41 5 37 33 32 28 25 6 4 39 Length of round trip: [1] 1322.973 Graphics saved as " tsp_anneal.png " NULL tsp_anneal_test(): Normal end of execution. Mon Jul 27 13:06:55 2026