Clean version for Sweep.Optimization : used a simulated annealing