Automatic planning of discharge hours for a commercial naval port by using constraint programming.