How to prevent the Merit Function from violating an operand?