Skip to content

Commit

Permalink
reset initial step size after armijo step
Browse files Browse the repository at this point in the history
  • Loading branch information
samdporter committed Sep 30, 2024
1 parent f893385 commit 9f8dbee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ def get_step_size(self, algorithm):
# Update the internal state with the new step size as the minimum of the current and previous step sizes
self.step_size = min(step_size, self.step_size)

self.initial_step_size = self.step_size

if self.counter < self.steps:
self.counter += 1

Expand Down

0 comments on commit 9f8dbee

Please sign in to comment.