We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86e7bc1 commit b2dfa6cCopy full SHA for b2dfa6c
tests/nlopt.cpp
@@ -385,7 +385,8 @@ BOOST_AUTO_TEST_CASE(nlopt_loc_opt)
385
BOOST_AUTO_TEST_CASE(nlopt_initial_population_not_respecting_bounds_throw_test)
386
{
387
// We test that the algorithm throws if the initial population does not respect the bounds
388
- auto pop = population{hs71{}, 1};
+ auto prob = hs71{};
389
+ auto pop = population{prob, 1};
390
auto a = nlopt{"slsqp"};
391
auto dv = pop.get_x()[0];
392
dv[0] = prob.get_bounds().first[0] - 1.;
0 commit comments