Skip to content
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

BfgsMinimizer - ReasonForExit #1095

Open
MartinCernak opened this issue Sep 27, 2024 · 2 comments
Open

BfgsMinimizer - ReasonForExit #1095

MartinCernak opened this issue Sep 27, 2024 · 2 comments

Comments

@MartinCernak
Copy link

MartinCernak commented Sep 27, 2024

In the BfgsMinimizer, the reason for exit is always the absolute gradient.

 return new MinimizationWithLineSearchResult(candidate, iterations, ExitCondition.AbsoluteGradient, totalLineSearchSteps, iterationsWithNontrivialLineSearch);

I believe that the reason for termination should be set by checking the conditions of termination.

return new MinimizationWithLineSearchResult(candidate, iterations, currentExitCondition, totalLineSearchSteps, iterationsWithNontrivialLineSearch);

It's not a big deal, but it can help when setting optimization parameters...

@jkalias
Copy link
Member

jkalias commented Sep 28, 2024

Hi,

Yes, this seems like a legitimate change. Would you like to open a PR?

@MartinCernak
Copy link
Author

Hi, @jkalias, yes, I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants