Originally posted by: qtbgo
Hi, in the following constraint, x[i] is bool var. S is a set, I use script to change S dynamicly. Now, in my procedure, sometimes S will be set as an empty set, then the constraint will be reported infeasible (0>=1), this is not what I want. I want that when S is empty, the constraint should be ignored simply. Could someone help me to resolve this problem? Sorry for my poor English, hope you can understand.
sum(i in S)(1-x[i])>=1
#DecisionOptimization#OPLusingCPLEXOptimizer