Comparison Training for a Rescheduling Problem in Neural Networks