So, I am using Nlopt to minimize a nonlinear optimization problem, and for awhile I have been running the code and I will get zero as my return value after 2 iterations, with Nlopt showing “Forced_Stop”
I just read that Nlopt has a built-in forced_stop trigger when the optimization reaches zero.
However I am looking for a negative-valued minimum, so I’d like to bypass this trigger. How should I do this? I have seen in the documentation some explanation of how to do this but it’s not as clearly laid out in the github page and I’m having some trouble, any help would be appreciated.
I have been working on this code for awhile and I cannot find any other mistake that would cause the optimizer to stop at zero after 2 iterations. I can change a lot about my function and I’ll still get the same result, through every measure I take. I also haven’t been able to configure a good working example that’s short enough to test but also indicative of my problem, but I don’t want to post the whole code if I can avoid it.