Commit 6f8a475e authored by Konstantinos Chatzilygeroudis's avatar Konstantinos Chatzilygeroudis
Browse files

First try for enabling acquisition optimization with gradients [fix]

parent ef3411f5
......@@ -252,7 +252,7 @@ BOOST_AUTO_TEST_CASE(test_gp_no_samples_acqui_opt)
// we do not have gradient in our current acquisition function
auto acqui_optimization =
[&](const Eigen::VectorXd& x, bool g) { return opt::no_grad(acqui(x, FirstElem())); };
[&](const Eigen::VectorXd& x, bool g) { return acqui(x, FirstElem()); };
Eigen::VectorXd starting_point = tools::random_vector(2);
Eigen::VectorXd test = acqui_optimizer(acqui_optimization, starting_point, true);
BOOST_CHECK(test(0) < 1e-5);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment