From 747efe6a53002fd0e3e0d72b29f2fe1d8d9c384f Mon Sep 17 00:00:00 2001 From: Mateusz Baran Date: Thu, 18 Jan 2024 11:21:58 +0100 Subject: [PATCH] Update src/plans/stopping_criterion.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/plans/stopping_criterion.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plans/stopping_criterion.jl b/src/plans/stopping_criterion.jl index 3c30b0a933..b53f29efd9 100644 --- a/src/plans/stopping_criterion.jl +++ b/src/plans/stopping_criterion.jl @@ -541,7 +541,7 @@ function (sc::StopWhenGradientNormLess)( sc.reason = "" sc.at_iteration = 0 end - if (i > 0) + if (i > 0) grad_norm = sc.norm(M, get_iterate(s), get_gradient(s)) if grad_norm < sc.threshold sc.reason = "The algorithm reached approximately critical point after $i iterations; the gradient norm ($(grad_norm)) is less than $(sc.threshold).\n"