-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nlopt ignores force_stop if a parameter is excluded by setting min = max #472
Comments
Good catch! Can you try the fix in #473 and verify that it solves your problem? |
Wow! Thanks for the fast fix! I will try to build the dll on Windows or wait for the new Windows binaries. |
I installed MinGW on Windows in order to compile nlopt. |
use mingw-w64 |
I installed MSYS2 and used as described: git clone https://github.com/stevengj/nlopt.git to download newest version. cmake output: Afterwards I tried: make |
I tried it successfully in Cygwin but the generated dll is 64-bit. I need a 32-bit dll for the Borland BCC32 compiler. |
Hi,
I use the C API of NLopt in a C++Builder application (BCB6). My objective function runs a hydrological model of a sewer system to minimize total discharge of combined sewer overflows (CSO). Parameters are the maximal throttle flows of the CSO's.
I added a stop button on the GUI to let the user terminate the optimization if he/she doesn't want to wait for a normal termination. Optimization and manual stop works fine as long as no parameter is excluded by setting min = max for this parameter. Then NLopt ignores the demand to stop and continues until normal termination.
I tested NLOPT_LN_NELDERMEAD and NLOPT_LN_BOBYQA. I can only use derivative-free algorithms.
Here my objective function:
TOptim is an own C++ wrapper for NLopt because I couldn't run the official C++ wrapper. I tested it with a simple console application and get an "Abnormal program termination" error.
Thanks, Rolf
The text was updated successfully, but these errors were encountered: