Originally posted by: NDDS_Silvina_Lucero
Hello everyone,
Hi, I have a problem running an optimization.
In the first linear relaxation the objective value is the optimal but the variables are non integers so I'm trying to implement an heuristic callback that takes the relaxation and set it to integer values using 'setSolution(...)'. The problem is that the heuristic's objective value is a bit less than the actual objective value, for instance: actual objective value is 770.1406387500001 and heuristic objective value is 770.1406387499999.
But I would really like to use the heuristic solution. Is there a way to force the solution in an heuristic callback? and how can I be sure that cplex is using the values that I set through 'setSolution(...)' ?
Thanks,
Anivlis
#CPLEXOptimizers#DecisionOptimization