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 b2dfa6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/nlopt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ 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 prob = hs71{};
auto pop = population{prob, 1};
auto a = nlopt{"slsqp"};
auto dv = pop.get_x()[0];
dv[0] = prob.get_bounds().first[0] - 1.;
Expand Down

0 comments on commit b2dfa6c

Please sign in to comment.