Skip to content

Commit 15cfbf0

Browse files
apply suggestions for R2DH
1 parent bd1816f commit 15cfbf0

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
@@ -196,6 +196,7 @@ function R2DH(
196196
verbose = options.verbose,
197197
max_iter = options.maxIter,
198198
max_time = options.maxTime,
199+
σk = options.σk,
199200
σmin = options.σmin,
200201
η1 = options.η1,
201202
η2 = options.η2,
@@ -231,6 +232,7 @@ function SolverCore.solve!(
231232
max_iter::Int = 10000,
232233
max_time::Float64 = 30.0,
233234
max_eval::Int = -1,
235+
σk::T = eps(T)^(1 / 5),
234236
σmin::T = eps(T),
235237
η1::T = √√eps(T),
236238
η2::T = T(0.9),
@@ -302,8 +304,6 @@ function SolverCore.solve!(
302304
local ξ::T
303305
local ρk::T = zero(T)
304306

305-
σk = max(1 / ν, σmin)
306-
307307
fk = obj(nlp, xk)
308308
grad!(nlp, xk, ∇fk)
309309
∇fk⁻ .= ∇fk

0 commit comments

Comments
 (0)