Skip to content

Commit

Permalink
Incorporated unbounded variable check
Browse files Browse the repository at this point in the history
Added the unbounded variable check to the initialize_stack! function, which takes place at the beginning of global_solve!
  • Loading branch information
RXGottlieb authored Jun 15, 2023
1 parent e788c14 commit 246b090
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/eago_optimizer/optimize/nonconvex/stack_management.jl
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ Prepare the stack for the branch-and-bound routine. By default, create an
initial node with the variable bounds as box constraints and add it to the stack.
"""
function initialize_stack!(t::ExtensionType, m::GlobalOptimizer)
unbounded_check!(m)
d = _working_variable_info.(m, m._branch_to_sol_map)
push!(m._stack, NodeBB(lower_bound.(d), upper_bound.(d), is_integer.(d)))
m._node_count = 1
Expand Down

0 comments on commit 246b090

Please sign in to comment.