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

Update nloptr c #169

Open aadler opened 5 months ago

aadler commented 5 months ago

While reading through WRE, I noticed that Rdefines.h is no longer maintained, and that is what @jyypma used in nloptr.c, so I figured we should bring nlopt.c more in line with the API. While going through the file I made some other changes (see the commit log for exact details). They include:

aadler commented 4 months ago

Correction. Strcmp can be called more than once, but since it’s a bisection search on an ordered list, it should be called fewer times than the if-else ladder.

aadler commented 4 months ago

Team, any thoughts?

aadler commented 5 days ago

@astamm Any objections?