Originally posted by: OR_Nicole
Hi, I am relatively new to using CPLEX with Java API. I am writing a larger multi-objective program but am having a fundamental problem. I am defining my x variables as float type values between 0 and 1, however, the optimization results give me values such as 1.0000005883164844. How do I prevent this from happening? I defined my x variables as follows:
IloNumVar[] x = new IloNumVar[n];
for(int i = 0; i < n; i++){
x[i]= LPmodelF2_UB.numVar(0.0,1.0);
}
I also used x[i]= LPmodelF2_UB.numVar(0.0,0.99999999999999999999999999) but the problem persists.
Thanks for any help!
#CPLEXOptimizers#DecisionOptimization