Skip to content

Commit

Permalink
Update src/plans/stopping_criterion.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
mateuszbaran and github-actions[bot] authored Jan 18, 2024
1 parent 687ecda commit 747efe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plans/stopping_criterion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 747efe6

Please sign in to comment.