Skip to content

Fix bug with nsteps not working properly - #101

Merged
Han Yang (yanghan234) merged 1 commit into
mainfrom
fix_batch_relaxer_nstep_bug
May 19, 2025
Merged

Fix bug with nsteps not working properly#101
Han Yang (yanghan234) merged 1 commit into
mainfrom
fix_batch_relaxer_nstep_bug

Conversation

@ClaudioZeni

Copy link
Copy Markdown
Contributor

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.

@yanghan234
Han Yang (yanghan234) merged commit 301c11b into main May 19, 2025
@yanghan234
Han Yang (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