astamm / nloptr

nloptr provides an R interface to NLopt, a free/open-source library for nonlinear optimization providing a common interface to a number of different optimization routines which can handle nonlinear constraints and lower and upper bounds for the controls.
https://astamm.github.io/nloptr/
Other
106 stars 34 forks source link

Safety, efficiency, and cleaning: Part 1 of n #131

Closed aadler closed 1 year ago

aadler commented 1 year ago

I got a bit carried away with the size of the PR again, but now I'm testing :) This PR includes a lot of changes, all of which are documented in the commit notes. There remain files which need to be reviewed as well as some potential enhancement which this code review has uncovered, so further PRs may be forthcoming. @astamm, please let me know if you prefer more frequent but smaller-scoped PRs or fewer but larger-scoped ones such as this. Thank you.

Below is a list of most of the changes. I will try and note which of Safety, Efficiency, or Cleaning to which each relates.

astamm commented 1 year ago

Thanks for this PR @aadler. I am fine with large-scope PR such as this one but it is really up to you as well and to the time you have to dedicate to this. It seems all checks are successful so I am going to merge this PR unless you instruct me otherwise. Nice job, thanks a lot!