IntelligentOptimizationAlgorithms icon indicating copy to clipboard operation
IntelligentOptimizationAlgorithms copied to clipboard

There is something wrong in SA

Open YunheWang opened this issue 4 years ago • 0 comments

https://github.com/yangzhen0512/IntelligentOptimizationAlgorithms/blob/c8eb4531a0b27ec277316e42566ab53d7e3704ac/SA(Simulated%20Annealing)/main.m#L46

Line 46: if you calculate dE as dE = nextLen-FermatLen, the subsequent value P = exp(dE/k/T) will be larger than 1 in any case. Therefore, your code cannot accept a new point with higher energy. So, the current code is exactly a random search...

YunheWang avatar Jul 16 '20 06:07 YunheWang