Automated dig-limit optimization through simulated annealing