Skip to content

Commit

Permalink
change the condition check to compare iter number
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxies committed Mar 7, 2024
1 parent ab86d49 commit cdd7c04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LP/lp_solver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2717,8 +2717,8 @@ int dual_simplex(LPdata *lp_data, int *iterd)
#ifdef __OSI_CLP__
// YX: reset term if needed; Clp may return ITLIM at timeout
int itlim_chk = -1;
retval = si->getIntParam(OsiMaxNumIteration, itlim_chk);
if (itlim_chk >= LP_MAX_ITER){
retval = si->getIntParam(OsiMaxNumIteration, itlim_chk);
if (si->getIterationCount() < itlim_chk){
term = LP_TIME_LIMIT;
}
/* If max iterations and had switched to primal, bound is no good */
Expand Down

0 comments on commit cdd7c04

Please sign in to comment.