Originally posted by: pfaut
I have read the callback section. What I am missing (maybe just did not find it) is a method telling the solver to stop solving and take the best integer optimal solution. The example in ilomipex4.cpp, especially the logging callback seems quite interesting but still I dont really get how to "stop" the solver at a specific position and how to extract the correct solution at that point.
Maybe some explanation:
I am trying to find "minimal sized" solutions (i.e. solutions with a minimum number of non zero variables) in a Linear program. After finding an optimal solution (with seize X), a constraint is added, that prohibits this solution from being found again. Therefore I can easily accept all further solutions with size X since it was proven, that X is currently the smallest possible solution. Only if no solution of size X can be found any more I have to prove optimality again.
#CPLEXOptimizers#DecisionOptimization