Originally posted by: jason1234
hi all,
if i have writen like this in a cplex model,
cplex.ifThen(cplex.or(cplex.eq(eVar,0), cplex.ge(iVar,eVar)), cplex.eq(result, 0))
whether the ifthen constraint is already added into the cplex model or not, if i want to add it to model,is it right to write like this:
cplex.add(cplex.ifThen(cplex.or(cplex.eq(eVar,0), cplex.ge(iVar,eVar)), cplex.eq(result, 0)))
i am new in cplex,could any of you can give me answer,thanks a lot.
#CPLEXOptimizers#DecisionOptimization