Skip to content

Commit

Permalink
fixed #28 by addressing infeasible subproblems
Browse files Browse the repository at this point in the history
  • Loading branch information
kibaekkim committed May 4, 2018
1 parent 4343b1b commit 41bcf33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Solver/Benders/SCIPconshdlrBenders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,10 @@ void SCIPconshdlrBenders::aggregateCuts(
isInfeasible = true;
break;
}

/** When some subproblems were primal infeasible, the rest are not solved. Then, just skip them. */
if (bdsub_->getStatus(i) == DSP_STAT_NOT_SOLVED)
break;

if (bdsub_->getStatus(i) != DSP_STAT_OPTIMAL)
{
Expand Down

0 comments on commit 41bcf33

Please sign in to comment.