Skip to content

Commit

Permalink
Fix test build of nlopt algo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave-Poissant committed Mar 6, 2024
1 parent 86e7bc1 commit 76efb0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/nlopt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,9 @@ BOOST_AUTO_TEST_CASE(nlopt_loc_opt)
BOOST_AUTO_TEST_CASE(nlopt_initial_population_not_respecting_bounds_throw_test)
{
// We test that the algorithm throws if the initial population does not respect the bounds
auto pop = population{hs71{}, 1};
auto a = nlopt{"slsqp"};
auto prob = hs71{};
auto pop = population{prob, 1};
auto nlopt = nlopt{"slsqp"};
auto dv = pop.get_x()[0];
dv[0] = prob.get_bounds().first[0] - 1.;
pop.set_x(0, dv);
Expand Down

0 comments on commit 76efb0d

Please sign in to comment.