Flexible Enterprise Optimization with Constraint Programming