Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix strong branching score calculation #516

Merged
merged 1 commit into from
Apr 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Algorithm/branching/branchinggroup.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ function product_score(group::BranchingGroup, parent_optstate::OptimizationState

all_branches_above_delta = true
deltas = zeros(Float64, length(group.children))
for node in group.children
for (i, node) in enumerate(group.children)
node_delta = diff(get_lp_primal_bound(getoptstate(node)), parent_lp_dual_bound)
if node_delta < parent_delta
all_branches_above_delta = false
end
push!(deltas, node_delta)
deltas[i] = node_delta
end

score = 1.0
Expand Down