Improving the simulated annealing parameters