Skip to content

Commit

Permalink
fix possible error in calling CbcHeuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Oct 6, 2023
1 parent 8089227 commit 64bc9e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CbcHeuristic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ bool CbcHeuristic::shouldHeurRun(int whereFrom)
// Very large howOftenShallow_ will give the original test:
// (model_->getCurrentPassNumber() != 1)
// if ((numInvocationsInShallow_ % howOftenShallow_) != 1) {
if ((numInvocationsInShallow_ % howOftenShallow_) != 0) {
if (howOftenShallow_ && (numInvocationsInShallow_ % howOftenShallow_) != 0) {
return false;
}
// LL: should we save these nodes in the list of nodes where the heur was
Expand Down

0 comments on commit 64bc9e9

Please sign in to comment.