Skip to content

Commit ca4d66c

Browse files
fix reproducibility in TRDH
1 parent ad7990d commit ca4d66c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TRDH_alg.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ function SolverCore.solve!(
476476
update_bounds!(l_bound_m_x, u_bound_m_x, is_subsolver, l_bound, u_bound, xk, Δ_effective)
477477
set_bounds!(ψ, l_bound_m_x, u_bound_m_x)
478478
else
479-
set_radius!(ψ, Δ_effective)
479+
set_radius!(ψ, Δk)
480480
end
481481
end
482482

@@ -499,6 +499,7 @@ function SolverCore.solve!(
499499
end
500500

501501
iprox!(s, ψ, ∇fk, dk)
502+
502503
sNorm = χ(s)
503504

504505
if !reduce_TR

0 commit comments

Comments
 (0)