Skip to content

Commit

Permalink
test BestDualBound explore strategy (#741)
Browse files Browse the repository at this point in the history
* missing get_priority method for BestDualBound explore strategy

* fix

* test bestdualbound explore strategy
  • Loading branch information
guimarqu authored Oct 4, 2022
1 parent 78a27d8 commit ac49df5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Algorithm/treesearch/printer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ struct PrintedNode{Node<:AbstractNode} <: AbstractNode
end

get_parent(n::PrintedNode) = n.parent
get_priority(explore, n::PrintedNode) = get_priority(explore, n.inner)
get_priority(explore::AbstractExploreStrategy, n::PrintedNode) = get_priority(explore, n.inner)


function tree_search_output(sp::PrinterSearchSpace, untreated_nodes)
close_tree_search_file!(sp.file_printer)
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/generalized_assignment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"params" => CL.Params(
solver = ClA.TreeSearchAlgorithm(
conqueralg = ClA.ColCutGenConquer(
stages = [ClA.ColumnGeneration(max_nb_iterations = 8)]
stages = [ClA.ColumnGeneration(max_nb_iterations = 8)],
)
)
),
Expand Down

0 comments on commit ac49df5

Please sign in to comment.