Experiments on optimal maintenance operations with emphasis on end-of-contract constraints