Originally posted by: Zoubeir
I have a binary variables x_i that takes 0 or 1 for all i in {1,...n}.
I have the following constraint:
sum_{i=1}^sx A_i >= A,
where sx = sum_{i=1}^n x_i, the number of ones in the vector x=(x_1,...,x_n)
Is there a way to write this constraint?
#DecisionOptimization#MathematicalProgramming-General