Originally posted by: SystemAdmin
[prubin said:]
Before solving the LP, set ObjLLim to 1e75 if you are minimizing or ObjULim to -1e75 if you are maximizing. The first feasible solution will violate that limit and CPLEX will stop. When CPLEX returns from the solve() method (which will return FALSE), check the LP's CPLEX status (not the regular status). You're looking for AbortObjLim as the returned status if the LP was feasible, Infeasible or maybe InfOrUnbd if not.
If you're using the C interface, the parameter you want is CPX_PARAM_OBJLLIM or CPX_PARAM_OBJULIM respectively. If you're using the interactive optimizer, set simplex limits lowerobj or upperobj.
I'm not sure what you mean by "how reliable". If you mean "will it really stop with the first feasible solution", the answer is yes. If you mean "will it be right saying feasible/infeasible", that depends a bit on how well scaled your problem is (and, in my case, with whether I have recently offended some minor but spiteful deity).
/Paul
#CPLEXOptimizers#DecisionOptimization