I am new to cplex. In my ilp I have couple of if-else statement. I want to use cplex for solving my problem using java API. I don't know how to formulate if-else in cplex. example:
if x>0 then a=1
else if x=0 then a=0
I am new to cplex. In my ilp I have couple of if-else statement. I want to use cplex for solving my problem using java API. I don't know how to formulate if-else in cplex. example:
if x>0 then a=1
else if x=0 then a=0
I don't think that the Java API supports the if/then/else structure, however it is possible to do if/then