Hello, I am using the NLOPT to solve a non-linear optimization problem with L-BFGS algorithm in C++. When I did not add any constraint to the optimizer, everything works well. However, when I try to add some vector-valued constraints, the optimizer fails and throw out the std::invalid_argument exception. Here is the output of the program:
------------- terminate called after throwing an instance of 'std::invalid_argument' what(): nlopt invalid argument Aborted (core dumped) ------------- I did some debug, and found the place throwing out the exception is in the method nlopt::add_inequality_mconstraint when it tried to call the function nlopt_add_inequality_mconstraint (before I called the nlopt::optimize to start the optimization process). I wrote the code following the tutorial and reference on the nlop wiki website. Could anyone give me some hints where the problem is? Or, is there a way to figure out which argument is invalid by print out the state of the optimizer? Thanks a lot. Best Regards~ Hao ---------------- Hao Wu Discovery Analytics Center, Virginia Tech Bradley Department of Eletrical and Computer Engineering Vriginia Tech, Arlington VA, 22203, USA ----------------
_______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
