Skip to content

Commit

Permalink
Check for gap is closed during subtree exploration
Browse files Browse the repository at this point in the history
  • Loading branch information
hlefebvr authored Oct 23, 2023
1 parent f24e045 commit e49d9b1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ void idol::Optimizers::BranchAndBound<NodeVarInfoT>::explore(TreeNode &t_node,
}

if (t_active_nodes.empty()) { break; }

if (is_terminated() || gap_is_closed()) { break; }

auto selected_node = select_node_for_branching(t_active_nodes);

Expand Down

0 comments on commit e49d9b1

Please sign in to comment.