by gort · 10y ago · 0 comments
I once messed with something called "metropolis coupling", where you run multiple threads in parallel, with different thresholds for how often they accept worse solutions, i.e. one thread is "cold", one is slightly "hotter", and so on. If a hot thread's current solution is better than the solution of the neighbouring colder thread, the solutions are swapped. In this way the coldest thread (which is the one we're paying attention to) gets pulled out of the local minimum.
As I say, I messed with this once and it did seem to help. It seems to have been developed for inference in evolutionary phylogenetics, and is perhaps a bit obscure?
Yep, this is the sort of thing we study in our cooperative and adaptive algorithms class. Similar techniques to what you suggest are shown here https://books.google.ca/books?id=G5ML5EYch94C&pg=PA88&lpg=PA...
random.choice(range(0, i) + range(i+1, 4))
how is that different from random.choice(range(0, 4))?
Obviously no Pythonista, but playing around in the REPL I see no diff.https://en.wikipedia.org/wiki/Parallel_tempering
Markov-chain Monte-Carlo sampling gives a theoretical underpinning which explains why simulated annealing works in optimization.