-
Notifications
You must be signed in to change notification settings - Fork 187
Add initialization checking in BFGS, and replace the old BFGS with a new one in CG-BFGS. #7117
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -91,7 +91,12 @@ case "${with_openmpi}" in | |||||||||||||||||
| # else | ||||||||||||||||||
| # EXTRA_CONFIGURE_FLAGS="" | ||||||||||||||||||
| # fi | ||||||||||||||||||
| ./configure CFLAGS="${CFLAGS}" \ | ||||||||||||||||||
| ./configure \ | ||||||||||||||||||
| CC=gcc \ | ||||||||||||||||||
| CXX=g++ \ | ||||||||||||||||||
| FC=gfortran \ | ||||||||||||||||||
| F77=gfortran \ | ||||||||||||||||||
|
Comment on lines
+95
to
+98
|
||||||||||||||||||
| CC=gcc \ | |
| CXX=g++ \ | |
| FC=gfortran \ | |
| F77=gfortran \ | |
| CC="${CC:-gcc}" \ | |
| CXX="${CXX:-g++}" \ | |
| FC="${FC:-gfortran}" \ | |
| F77="${F77:-gfortran}" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relax_step()now lazily callsallocate()when the object hasn't been initialized. There are existing unit tests forBFGSinsource/source_relax/test/bfgs_test.cpp, but none cover this new path (callingrelax_step()without a priorallocate()). Please add a test to assert thatrelax_step()succeeds and initializes internal state whenallocate()was not called explicitly (this is particularly important for thecg_bfgs -> bfgs_tradswitch).