mirror of
https://github.com/ANL-CEEESA/MIPLearn.jl.git
synced 2025-12-06 00:18:51 -06:00
BB: Make plunging optional
This commit is contained in:
@@ -15,6 +15,7 @@ function solve!(
|
|||||||
initial_primal_bound::Float64 = Inf,
|
initial_primal_bound::Float64 = Inf,
|
||||||
detailed_output::Bool = false,
|
detailed_output::Bool = false,
|
||||||
branch_rule::VariableBranchingRule = HybridBranching(),
|
branch_rule::VariableBranchingRule = HybridBranching(),
|
||||||
|
enable_plunging = true,
|
||||||
)::NodePool
|
)::NodePool
|
||||||
time_initial = time()
|
time_initial = time()
|
||||||
pool = NodePool(mip = mip)
|
pool = NodePool(mip = mip)
|
||||||
@@ -34,7 +35,7 @@ function solve!(
|
|||||||
child_one, child_zero, suggestions = nothing, nothing, Node[]
|
child_one, child_zero, suggestions = nothing, nothing, Node[]
|
||||||
while true
|
while true
|
||||||
time_elapsed = time() - time_initial
|
time_elapsed = time() - time_initial
|
||||||
if child_one !== nothing
|
if enable_plunging && (child_one !== nothing)
|
||||||
suggestions = Node[child_one, child_zero]
|
suggestions = Node[child_one, child_zero]
|
||||||
end
|
end
|
||||||
node = take(
|
node = take(
|
||||||
|
|||||||
Reference in New Issue
Block a user