Originally posted by: SystemAdmin
Hi, I am having a very strange question about CPLEX. I am solving a large MILP by using CPLEX 12.1 in C++. I can successfully solve it and also get solution status as optimal. But when I use .getObjValue() to get the obj value or use getValues to get the solutions, I always have an error. I think this is very similar to the case reported before in this forum:
http://www.ibm.com/developerworks/forum /thread.jspa?messageID=14448196
The only difference is that I am not migrating from Cplex 10.2 to 12.1. I am writing these codes for 12.1
Another thing is that this error is not always happening. For example, if I change the cplex.setParam(IloCplex::EpGap, 0.05) to cplex.setParam(IloCplex::EpGap, 0.1), then the error is gone. It seems that this error happens randomly....
I wonder if somebody could please share some experience with me on how to solve this problem.
Thank you in advance! Wish you Merry Christmas and Happy New Year!
Alex
#CPLEXOptimizers#DecisionOptimization