Skip to content

Commit

Permalink
move isUBSolved around to ensure valid soln check
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxies committed Apr 8, 2022
1 parent 85077c2 commit ab6e00d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/MibSBilevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,6 @@ MibSBilevel::checkBilevelFeasiblity(bool isRoot)
UBSolver->branchAndBound();
model_->timerUB_ += model_->broker_->subTreeTimer().getTime() - startTimeUB;
model_->counterUB_ ++;
if(i == numDecomposedProbs - 1){
isUBSolved_ = true;
}

if(feasCheckSolver == "SYMPHONY"){
#ifdef MIBS_HAS_SYMPHONY
Expand All @@ -872,6 +869,10 @@ MibSBilevel::checkBilevelFeasiblity(bool isRoot)
#endif
}

if(i == numDecomposedProbs - 1){
isUBSolved_ = true;
}

if(UBSolver->isProvenOptimal()){
isUBProvenOptimal = true;
const double *partialValuesUB = UBSolver->getColSolution();
Expand Down

0 comments on commit ab6e00d

Please sign in to comment.