Skip to content

Commit 22c4ca2

Browse files
committed
Add skip if only a single candidate
1 parent d06f5c0 commit 22c4ca2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

highs/mip/HighsSearch.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ HighsInt HighsSearch::selectBranchingCandidate(int64_t maxSbIters,
254254
std::vector<double> downbound;
255255

256256
HighsInt numfrac = lp->getFractionalIntegers().size();
257+
if (numfrac == 1) return 0;
257258
const auto& fracints = lp->getFractionalIntegers();
258259

259260
upscore.resize(numfrac, kHighsInf);

0 commit comments

Comments
 (0)