Application of Simulated Annealing