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

C/C++ execution error reporting #165

Open ProxyCausal opened 5 months ago

ProxyCausal commented 5 months ago

Is there any way to get the error code back from C/C++?

When running nloptr function R has been crashing for me and upon debugging it seems like the culprit is executing the C code solution <- .Call(NLoptR_Optimize, ret)

I suspect it's out of memory or numerical overflow issue, but it'd be nice to know for sure

aadler commented 5 months ago

Hello, @ProxyCausal. Would you please provide a reprex which demonstrates the same behavior?

aadler commented 1 day ago

@ProxyCausal, any further information, or may we close this?