From ce6af004f4070aebb20671089364ece906ba9e4d Mon Sep 17 00:00:00 2001 From: Niklas Hackelberg Date: Tue, 13 Aug 2024 18:57:06 +0200 Subject: [PATCH] Fix issue #91 --- src/ADMM.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ADMM.jl b/src/ADMM.jl index 447753e9..a837ade0 100644 --- a/src/ADMM.jl +++ b/src/ADMM.jl @@ -281,7 +281,7 @@ function converged(solver::ADMM, state::ADMMState) (state.rᵏ[i] >= state.σᵃᵇˢ + state.relTol * state.ɛᵖʳⁱ[i]) && return false (state.sᵏ[i] >= state.σᵃᵇˢ + state.relTol * state.ɛᵈᵘᵃ[i]) && return false end - return false + return true end @inline done(solver::ADMM, state::ADMMState) = converged(solver, state) || state.iteration >= solver.iterations \ No newline at end of file