Context and Problem
In the Wikipedia page for Simulated Annealing they state
The simulation can be performed either by a solution of kinetic equations for density functions[2][3] or by using the stochastic sampling method.[1][4] The method is an adaptation of the Metropolis–Hastings algorithm
I've read this in some papers as well, but none ever seems to make the connection between the two.
Metropolis-Hastings PseudoCode for Reference
Here's the Metropolis-Hastings pseudocode to sample from $\pi(x)$ using a proposal $p(x'\mid x_t)$. I can't really see how this relates to Simulated Annealing.
- Choose starting point $x_0$
- Until convergence:
- Sample a candidate $x'\sim q(x'\mid x_t)$
- With probability $A(x', x_t)$ accept $x_{t+1} = x'$, otherwise set $x_{t+1}=x_t$ where $$ A(x', x_t) = \min\left(\frac{\pi(x')}{\pi(x_t)}\frac{q(x_t\mid x')}{q(x'\mid x_t)}\right) $$
How is MH, which is a method for sampling from a distribution, the same as a method used to find the global optimum ofa function?