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

Fix wrong hessian order in amplgsl.cc and gsl-test.cc #77

Merged
merged 2 commits into from
Oct 30, 2023

Conversation

HunterTracer
Copy link
Contributor

Currently, the hessian order in amplgsl.cc and gsl-test.cc do not accord with the instruction in funcadd.h: In this case, the function should set al->hes[i + j*(j+1)/2] to the partial derivative of the function with respect to al->ra[i] and al->ra[j] for all 0 <= i <= j < al->nr. and do not accord with the instruction in Page 19 of https://ampl.com/wp-content/uploads/Hooking-Your-Solver-to-AMPL-by-David-M.-Gay.pdf.

I already pull up a merge request in #75 but forgot to modify the hessian order in gsl-test.cc and the code was reverted by @fdabrandao . This new code also fixes the bug in gsl-test.cc. Could you review this code and merge it? Thanks again!

@HunterTracer
Copy link
Contributor Author

@mapgccv @fdabrandao Could you please review this code? Thanks again!

@fdabrandao fdabrandao merged commit a539555 into ampl:master Oct 30, 2023
5 checks passed
@fdabrandao
Copy link
Member

Thanks for fixing the tests as well! The order in the PDF is the correct one.

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.

None yet

2 participants