We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86e7bc1 commit 76efb0dCopy full SHA for 76efb0d
tests/nlopt.cpp
@@ -385,8 +385,9 @@ 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};
389
- auto a = nlopt{"slsqp"};
+ auto prob = hs71{};
+ auto pop = population{prob, 1};
390
+ auto nlopt = nlopt{"slsqp"};
391
auto dv = pop.get_x()[0];
392
dv[0] = prob.get_bounds().first[0] - 1.;
393
pop.set_x(0, dv);
0 commit comments