Using simulated annealing to train relaxation labeling processes