Category : nlopt

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 ..

Read more

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 ..

Read more

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 ..

Read more

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 ..

Read more