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

Have nonlinear solvers output a success flag. This complicated custom vjp slightly. #85

Merged
merged 7 commits into from
Mar 9, 2024

Conversation

tupek2
Copy link
Collaborator

@tupek2 tupek2 commented Mar 8, 2024

Also do not increase the penalty when the constrain ncp error is already really small compared to the tolerance. Previously, the penalty would just keep going up and up, and the constraint was already essentially fully enforced. This made the minimization problem too stiff.

Copy link
Collaborator

@btalamini btalamini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have a base class for the solvers? It's annoying that you had to modify the AlSolver an EquationSolver separately. I put in a TrustRegionSPG module, which is not a high performing option, but it should probably maintain interface with the others.

@tupek2
Copy link
Collaborator Author

tupek2 commented Mar 8, 2024

I actually didn't change the AlSolver, if has a runtime error if it doesnt converge. Also, most of the changes ended up being through the generic solver interface anyways.

@tupek2
Copy link
Collaborator Author

tupek2 commented Mar 8, 2024

But, yes, the SPG and another one i didn't change yet. I can do that quickly, once I get these tests passing!

…eally small compared to the tolerance. Previously, the penalty would just keep going up and up, and the constraint was already essentially fully enforced. This made the minimization problem too stiff.

Have nonlinear solvers output a success flag.  This complicated custom vjp slightly.
@tupek2 tupek2 merged commit b4561d9 into sandialabs:main Mar 9, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants