Simulated annealing was inspired by thermodynamic free energy involved in crystal formation from annealing metal. [1]
I combined it with a Breath of the Wild waypoint generator [2] to make my way around the map [3] in a mostly optimal fashion for my trip about Hyrule.
If you ever have a toy problem or even a real one, I suggest experimenting with pytspsa to see and understand in a concrete way the problem is solved.
[0] https://github.com/ildoonet/simulated-annealing-for-tsp
[1] https://en.wikipedia.org/wiki/Simulated_annealing
[2] https://github.com/MrCheeze/botw-waypoint-map
[3] https://user-images.githubusercontent.com/2829875/28661246-0...