ADD: Multiple working constraints for diesel and electric locomotives