Originally posted by: RainLee
I use the 12.5 accademic version of CPLEX, I fist make the program in visual stuido 2010 c++, in program , I define x27 ILOINT and 0 <=x27<=1, and use the expresssion "int ((double(cplex.getValue(x27))+0.5));" and "cplex.getValue(x27)" to get the value, if i add the expression "cplex.setParam(IloCplex::EpGap, 0.05;"before cplex.solve(), then it is 1, however if I add the expression "cplex.setParam(IloCplex::EpGap, 0.001);" or do not add any expression before the solve(), it will get the wrong solution x27= 0, then I exprot the model to uc.lp file
In API, after the command "read uc.lp" and "optimize", do "display solution variables x27", it is still 0, the iteration of the soution is in the UCAPI in the attachments. how can i solve it .:
#DecisionOptimization#MathematicalProgramming-General