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 for jac_coord! allocation issue #271

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

sshin23
Copy link
Contributor

@sshin23 sshin23 commented Aug 30, 2021

This PR implements the changes suggested in #270.

To avoid memory allocation in NLPModels.jac_coord! and NLPModels.obj, a workspace array is added in CUTEstModel. The workspace array is used within NLPModels.jac_coord! and NLPModels.obj to avoid creating new arrays.

I believe no change in the test is necessary for this PR.

@codecov
Copy link

codecov bot commented Aug 30, 2021

Codecov Report

Merging #271 (abf45ff) into main (80685c6) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #271   +/-   ##
=======================================
  Coverage   84.61%   84.61%           
=======================================
  Files           5        5           
  Lines         598      598           
=======================================
  Hits          506      506           
  Misses         92       92           
Impacted Files Coverage Δ
src/CUTEst.jl 83.62% <100.00%> (+0.09%) ⬆️
src/julia_interface.jl 99.58% <100.00%> (-0.01%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 80685c6...abf45ff. Read the comment docs.

@dpo dpo merged commit fa9c413 into JuliaSmoothOptimizers:main Sep 1, 2021
@dpo
Copy link
Member

dpo commented Sep 1, 2021

thanks!

@dpo dpo mentioned this pull request Sep 1, 2021
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