From 3e191d18c010126e9809565c56dab47f097250f6 Mon Sep 17 00:00:00 2001 From: Dominique Date: Mon, 13 Nov 2023 17:19:33 -0500 Subject: [PATCH] Update src/TR_alg.jl Co-authored-by: geoffroyleconte <47035783+geoffroyleconte@users.noreply.github.com> --- src/TR_alg.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TR_alg.jl b/src/TR_alg.jl index 7cdddebb..e889cb4b 100644 --- a/src/TR_alg.jl +++ b/src/TR_alg.jl @@ -250,7 +250,7 @@ function TR( set_bounds!(ψ, max.(-Δk, l_bound - xk), min.(Δk, u_bound - xk)) : set_radius!(ψ, Δk) end α⁻¹Δ⁻¹ = 1 / (α * Δk) - ν = αΔ / (1 + λmax * (1 + αΔ)) + ν = 1 / (α⁻¹Δ⁻¹ + λmax * (α⁻¹Δ⁻¹ + 1)) tired = k ≥ maxIter || elapsed_time > maxTime end