From 896e1e14638f069c946af51d1043f542697db98a Mon Sep 17 00:00:00 2001 From: Henri Lefebvre Date: Mon, 25 Sep 2023 14:05:43 +0200 Subject: [PATCH] add tolerance for cut separation --- lib/src/optimizers/branch-and-bound/callbacks/CutSeparation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/optimizers/branch-and-bound/callbacks/CutSeparation.cpp b/lib/src/optimizers/branch-and-bound/callbacks/CutSeparation.cpp index 34d4dd8e..c71827e9 100644 --- a/lib/src/optimizers/branch-and-bound/callbacks/CutSeparation.cpp +++ b/lib/src/optimizers/branch-and-bound/callbacks/CutSeparation.cpp @@ -63,7 +63,7 @@ void idol::impl::CutSeparation::operator()(CallbackEvent t_event) { m_separation_problem->set_solution_index(k); - if (k == 0 && m_separation_problem->get_best_obj() >= 0) { + if (k == 0 && m_separation_problem->get_best_obj() >= 1e-3) { break; }