https://vuonghienuit.wordpress.com/2012/05/13/simulated-annealing-thuat-toan-mo-phong-luyen-kim/ https://www.codeproject.com/Articles/13789/Simulated-Annealing-Example-in-C
Select an initial temperature π>0; (Initially a high number)
Select a temperature reduction function Ξ±;
Select a (initial) candidate solution π _0;
Best <- s0;
Repeat (Cooling loop)
Repeat (Search move loop)
Randomly select sβπ(π _0); (Tweck: Incumbent solution)
Ξ΄=π(π )βπ(π _0)";"
If Ξ΄<0 (Improving move)
then π _0 <- π ;
Else (Non-improving move)
if U(0,1)< exp(βΞ΄/ππ) then π _0 <- π ;
If π(π _0 )<π(π΅ππ π‘)", "then Best" <- " π _0 ";"
Until πΌπ‘ππππ‘πππ_πππ’ππ‘= # of replications
Set π=Ξ±(π);
Until stopping condition = true.