Skip to content

Commit

Permalink
Fix issue #91
Browse files Browse the repository at this point in the history
  • Loading branch information
nHackel authored Aug 13, 2024
1 parent 06c8405 commit ce6af00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ADMM.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ce6af00

Please sign in to comment.