Closed ilansmolySR closed 2 years ago
It seems that the reason for this prblem was that LD_LBFGS_NOCEDAL is not supported and LD_LBFGS should be used instead.
Yes, LD_LBFGS_NOCEDAL
is an undocumented constant left over from the days when I had an internal implementation using Nocedal's L-BFGS code, which I couldn't distribute due to ACM TOMS licensing restrictions. IIRC the licensing on that particular code has been changed, so we could probably use it if we wanted to.
Do you think its worth resurrecting it ? Else I propose to drop that constant or at least throw an explicit error when this algorithm is selected.
I get the following termination message:
When I execute the following code:
I also tried adding the following lines:
but I still get the same termination message above.
When I run the same code with Nelder-Mead algorithm i.e. with
opt = nlopt::opt(nlopt::algorithm::LN_NELDERMEAD,9);
instead ofopt = nlopt::opt(nlopt::algorithm::LD_LBFGS_NOCEDAL,9);
the program runs perfectly.