I'm currently trying to get the IpOpt Interior point solver working. I am running the example, which runs fine, except for the options.
Whenever i try to set an option, for example:
app->Options()->SetStringValue("mu_strategy", "adaptive");
I get a std::bad_alloc exception. If I leave all the option sets from the example out, it runs fine, as mentioned above.
I have also tried setting the options file manually by giving the path in the initializer:
app->Initialize("C:\\ipopt.opt");
However, this throws me an exception inside the initialize().
I do have a ipopt.opt file in my executables folder.
Any clues as to what im doing wrong or what I could do to fix this?
Examples I have tried using (all give me the bad_alloc on setting the options):
- http://codepad.org/mHIfBz3k
- https://projects.coin-or.org/Ipopt/browser#releases/3.11.0/Ipopt/examples/hs071_cpp
(specifically: https://projects.coin-or.org/Ipopt/browser/releases/3.11.0/Ipopt/examples/hs071_cpp/hs071_main.cpp)
edit (resolved): I was using procompiled libraries for Visual Studio that were build in release mode. I tried using them in visual studio while my project was in debug mode, thus it crashed.