I am very new to Cplex. I have these two constraints (R is the set of numbers in range 20) :
model.add_constraints((model.sum(x[i, j] for j in R2 ) == 2 for i in R),"C1" )
model.add_constraints((x[i, n1-4] ==x[i, n1-2] for i in R ),"C2" )
I need to count how many i are fulfilling both C1 and C2 and then define a new constraint that says "at least 10 of i fulfill both C1 as C2".
How can I do that with cplex?