IntelligentOptimizationAlgorithms
IntelligentOptimizationAlgorithms copied to clipboard
There is something wrong in SA
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...