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.

Home Page:https://astamm.github.io/nloptr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C/C++ execution error reporting

ProxyCausal opened this issue · comments

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

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