From 405c12dcea64921ac3c017d1f027daf46e4f8dbd Mon Sep 17 00:00:00 2001 From: NatachaJaverzat <95150195+enjoyUrFruits@users.noreply.github.com> Date: Wed, 3 May 2023 22:11:44 +0200 Subject: [PATCH] add isnothing(stage) on colgen stopping condition (#859) --- src/ColGen/interface.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ColGen/interface.jl b/src/ColGen/interface.jl index 9c8e4ac42..4b87ee07b 100644 --- a/src/ColGen/interface.jl +++ b/src/ColGen/interface.jl @@ -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