Skip to content

Commit b2dfa6c

Browse files
committed
Fix test build of nlopt algo
1 parent 86e7bc1 commit b2dfa6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/nlopt.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ BOOST_AUTO_TEST_CASE(nlopt_loc_opt)
385385
BOOST_AUTO_TEST_CASE(nlopt_initial_population_not_respecting_bounds_throw_test)
386386
{
387387
// We test that the algorithm throws if the initial population does not respect the bounds
388-
auto pop = population{hs71{}, 1};
388+
auto prob = hs71{};
389+
auto pop = population{prob, 1};
389390
auto a = nlopt{"slsqp"};
390391
auto dv = pop.get_x()[0];
391392
dv[0] = prob.get_bounds().first[0] - 1.;

0 commit comments

Comments
 (0)