I am trying to do the tutorial of the NLopt found here : https://nlopt.readthedocs.io/en/latest/NLopt_Tutorial/ However I get the following error : ./test1: symbol lookup error: ./test1: undefined symbol: nlopt_get_errmsg I think my issue is it cannot find the path of the lib however I use the following command g++ -I/home/install/include -L/home/install/lib test1.cpp -o test1 -lnlopt ..
I wanted to ask you about linear solvers I have looked on the internet and saw that If for example I want to use Ipopt I can(and in my case) have to use linear solvers like Mumps, Pardiso etc However, I opted to use NLopt. Does NLopt also require to install such solvers or it ..
I am trying to install NLopt but I am confused. The problem is I am using ssh and connect to a lab that I have not admin rights (thus I cannot use sudo commands) I am downloading NLopt from here https://github.com/stevengj/nlopt and trying to follow the guideline from here https://nlopt.readthedocs.io/en/latest/NLopt_Installation/ Especially for the part of ..
I am new to c++ and I have a question about nlopt. I tried to install Ipopt and use it with a linear solver for sparse matrices ( in particular with pardiso and/or mumps) However, i ran to many problems during installation and now I am trying to install NLopt. My question is, does NLopt ..
I’m trying to include nlopt in my C++ project on windows and I’m having a lot of trouble. I just want to include nlopt.hpp, but when I do that the corresponding nlopt.h file doesn’t work. I tried compiling nlopt seperately and then linking to it, but I keep getting errors about undefined functions. I’ve already ..
I have written a library (.h & .so) in cpp which expose a feature (function call) that involves nlopt and pinocchio. from my test file packaged along with the library itself, the nlopt_optimize operation completes in like 5 seconds. However, when I trigger the function from my application code (which is setup with the same ..
I’m trying to use NLopt library for an optimization problem in c++. The docs indicate the input function to be optimized should look like this: double myfunc(const std::vector<double> &x, std::vector<double> &grad, void *my_func_data); I don’t understand how to use the void *my_func_data argument, which accepts additional data necessary for the function to be optimized. The ..
I am trying to use NLopt c++ to optimize the following equation: sqrt( pow(abs(xF – (cos(theta)*xM) – (sin(theta)*yM) + tx), 2) + pow(abs(yF – (sin(theta)*xM) + (cos(theta)*yM) + ty), 2) Th NLopt docs for c++ are here: https://nlopt.readthedocs.io/en/latest/NLopt_Tutorial/#example-in-cc They are very vague and provide no examples for input data/multiple constrained parameters, as far as I ..