PP simulated annealing working