Define the constraint in the case of Optimization