Originally posted by: ol
Hello,
when you state the constraint
penalty[19] == (penalty[19]+1);
you have an equation of the form x=x+1, with no solution.
In your case this will force the condition of the if to be false, then check[19] will be forced to be different from 1, as itis a bolean expression, it is thus set to 0, and then by the constraint check[19] ==(Start[i]>4), this will force Start[i] to be <= 4.
I assume this is what you mean by saying that your soft constraint becomes hard. You need to clean your model.
Regards,
Olivier
#DecisionOptimization#OPLusingCPOptimizer