From 64bc9e9a8eec7e2b389ddf3d27fa93a83c4b2399 Mon Sep 17 00:00:00 2001 From: John Forrest Date: Fri, 6 Oct 2023 16:08:23 +0100 Subject: [PATCH] fix possible error in calling CbcHeuristic --- src/CbcHeuristic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CbcHeuristic.cpp b/src/CbcHeuristic.cpp index 2f1d64245..687534107 100644 --- a/src/CbcHeuristic.cpp +++ b/src/CbcHeuristic.cpp @@ -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