Skip to content

Commit 222cda0

Browse files
committed
fix pseudocost update
1 parent 71d1272 commit 222cda0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/src/dual_simplex/branch_and_bound.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,10 +748,10 @@ std::pair<node_status_t, rounding_direction_t> branch_and_bound_t<i_t, f_t>::upd
748748
i_t leaf_num_fractional =
749749
fractional_variables(settings_, leaf_solution.x, var_types_, leaf_fractional);
750750

751-
f_t leaf_objective = compute_objective(leaf_problem, leaf_solution.x);
752-
node_ptr->lower_bound = leaf_objective;
751+
f_t leaf_objective = compute_objective(leaf_problem, leaf_solution.x);
753752
search_tree.graphviz_node(log, node_ptr, "lower bound", leaf_objective);
754753
pc_.update_pseudo_costs(node_ptr, leaf_objective);
754+
node_ptr->lower_bound = leaf_objective;
755755

756756
if (worker_data->worker_type == bnb_worker_type_t::BEST_FIRST) {
757757
if (settings_.node_processed_callback != nullptr) {

0 commit comments

Comments
 (0)