Skip to main content

All Questions

Tagged with
0 votes
1 answer
416 views

Cplex If-then binary constraint not updating

I am new at cplex and I am trying to optimize a function of x by creating a binary variable in constraint such that: if x[i] > 0 then y[i] = 1 or if x[i] = 0 then y[i] = 0 and then constraint is ...
user3077261's user avatar
0 votes
1 answer
618 views

cplex java api ifThen structure

I am trying to model an constraint in cplex which is of IF-THEN structure. In a 2d-array(m x m+n) i want if the sum_ofRows(m rows) is 1, then the sum_ofColumns(m columns) should be 0 . In cplex java ...
highlander's user avatar