Skip to content

Fix bug with nsteps not working properly #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2025

Conversation

ClaudioZeni
Copy link
Collaborator

Previously, batch relaxer was tracking the Nsteps variable for each optimizer. Unfortunately, this variable does not correspond to the total number of steps taken by the optimizer, hence the relaxation could sometimes never converge in cases where fmax was set to a low value and max_n_steps to a high number.

This fix adds a manually tracked variable nsteps for each optimizer class to avoid the error.

@ClaudioZeni ClaudioZeni requested a review from yanghan234 March 21, 2025 11:33
@ClaudioZeni ClaudioZeni self-assigned this Mar 21, 2025
@ClaudioZeni ClaudioZeni added the bug Something isn't working label Mar 21, 2025
@yanghan234 yanghan234 merged commit 301c11b into main May 19, 2025
24 checks passed
@yanghan234 yanghan234 deleted the fix_batch_relaxer_nstep_bug branch July 6, 2025 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants