Deterministic simulated annealing for system optimization