From 878ffa22efa5e0ad234cec9e928170c90550e3b0 Mon Sep 17 00:00:00 2001 From: cjuli1 Date: Thu, 26 Feb 2026 17:40:10 +0100 Subject: [PATCH] catch error and debugging info before continuing --- src/prob_stoch.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prob_stoch.jl b/src/prob_stoch.jl index bde0f12..6c65a40 100644 --- a/src/prob_stoch.jl +++ b/src/prob_stoch.jl @@ -208,7 +208,8 @@ function solve_benders(stepnr::Int, subix::SubsystemIx) TuLiPa.solve!(mp.prob) count == 0 && TuLiPa.clearcuts!(mp.cuts) count += 1 - catch + catch e + showerror(stdout, e, catch_backtrace()) count == 0 && println("Retrying first iteration without cuts from last time step") count > 0 && println("Restarting iterations without cuts from last time step") TuLiPa.clearcuts!(mp.prob, mp.cuts)