Originally posted by: UU24_Sergej_Andrejev
I'm using populate method in cplex 12.3 to solve MILP problem.
The problem is I want to access int variables from solution pool, but even though there is getValues(val, var, sln) method, there is no analogous getIntValues(var, val, sln) method. I was thinking I could convert values from getValues() method, but I can't figure out the correct way to convert them. Casting doesn't work consistently with getIntValues() results and getObjValue(), so do val >= 1e-04 or val <= 1 - 1e-07 conditions. I ended up with val > 0.5 check to convert to boolean variable, but I'm not sure that is the correct way.
I also found this unanswered question (https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14605244) which I think might be the same problem.
Any help appreciated
#CPLEXOptimizers#DecisionOptimization