Skip to content

Commit 76efb0d

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/nlopt.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,9 @@ 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};
389-
auto a = nlopt{"slsqp"};
388+
auto prob = hs71{};
389+
auto pop = population{prob, 1};
390+
auto nlopt = nlopt{"slsqp"};
390391
auto dv = pop.get_x()[0];
391392
dv[0] = prob.get_bounds().first[0] - 1.;
392393
pop.set_x(0, dv);

0 commit comments

Comments
 (0)