Skip to content

Commit

Permalink
add isnothing(stage) on colgen stopping condition (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
najaverzat authored May 3, 2023
1 parent 1af6abb commit 405c12d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ColGen/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function run!(context, env, ip_primal_sol; iter = 1)
stage_it = new_stage_iterator(context)
stage = initial_stage(stage_it)
phase_output = nothing
while !isnothing(phase) && !stop_colgen(context, phase_output)
while !isnothing(phase) && !stop_colgen(context, phase_output) && !isnothing(stage)
setup_reformulation!(get_reform(context), phase)
setup_context!(context, phase)
last_iter = isnothing(phase_output) ? iter : phase_output.nb_iterations
Expand Down

0 comments on commit 405c12d

Please sign in to comment.