Skip to content

Commit 755cbfa

Browse files
MohamedLaghdafHABIBOULLAHdpo
authored andcommitted
Update R2DH.jl
I will add (-Inf) condition in ShiftedProximalOperators as well
1 parent e0a840b commit 755cbfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/R2DH.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function R2DH(
148148
Fobj_hist = zeros(maxIter+1)
149149
Hobj_hist = zeros(maxIter+1)
150150
time_hist = zeros(maxIter+1)
151-
FHobj_hist = fill!(Vector{R}(undef, - 1), R(-Inf))
151+
FHobj_hist = fill!(Vector{R}(undef, Mmonotone - 1), R(-Inf))
152152
Complex_hist = zeros(Int, maxIter+1)
153153
k_prox = 0
154154
if verbose > 0
@@ -188,7 +188,7 @@ function R2DH(
188188
end
189189
mks = mk(s)
190190

191-
if mks < -1e5
191+
if mks == -Inf
192192
σk = σk * γ
193193
Dkσk .= D.d .+ σk
194194
DNorm = norm(D.d, Inf)

0 commit comments

Comments
 (0)