You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to use the StoGo algorithm in NLOPT to optimize my objective function, but this algorithm always throw std::runtime_error(NLOPT_FAILURE). In order to verify the correctness of the code, I wrote a very simple example
This code maximizes the objective function $Loss=x_0^2+x_1^2$. Obviously, the maximum value is obtained when $x_0=1, x_1=1$.
This code can get the correct result using most of the optimization algorithms, but it still reports an error when using StoGo.
I'm not sure if there is a bug in my code.
My system is Ubuntu22 LTS, install NLopt by apt install libnlopt-cxx-dev,
and I use g++ -lnlopt_cxx -lm to compile this program.
The text was updated successfully, but these errors were encountered:
DataSailor
changed the title
runtime_error when using GD_STOGO
std::runtime_error when using GD_STOGO
Apr 10, 2023
I try to use the StoGo algorithm in NLOPT to optimize my objective function, but this algorithm always throw
std::runtime_error
(NLOPT_FAILURE). In order to verify the correctness of the code, I wrote a very simple exampleThis code maximizes the objective function$Loss=x_0^2+x_1^2$ . Obviously, the maximum value is obtained when $x_0=1, x_1=1$ .
This code can get the correct result using most of the optimization algorithms, but it still reports an error when using StoGo.
I'm not sure if there is a bug in my code.
My system is Ubuntu22 LTS, install NLopt by
apt install libnlopt-cxx-dev
,and I use
g++ -lnlopt_cxx -lm
to compile this program.The text was updated successfully, but these errors were encountered: