Originally posted by: SystemAdmin
[johncui said:]
You can define a return value named status and use like:
status = cplex.solve();
if ( status ) {
for(){}
}
cplex.end();
you can output status, then check the status in CPLEX manual to see what's happen.
such as the below in CPLEX manual:
CPX_STAT_ABORT_DUAL_OBJ_LIM
22 (Barrier only)
Stopped due to a limit on the dual objective
.......
John Cui
#CPLEXOptimizers#DecisionOptimization