Skip to content

Commit

Permalink
Update mlpack_optimizer.cpp - cmaes lower and upper were swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoftone authored Aug 25, 2023
1 parent d1edaa7 commit 61e130b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xacc/optimizer/mlpack/mlpack_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ OptResult MLPACKOptimizer::optimize(OptFunction &function) {
if (options.keyExists<double>("mlpack-cmaes-lower-bound")) {
lower = options.get<double>("mlpack-cmaes-lower-bound");
}
CMAES<> optimizer(lambda, upper, lower, 1, maxiter, tol);
CMAES<> optimizer(lambda, lower, upper, 1, maxiter, tol);
results = optimizer.Optimize(f, coordinates);
#else
xacc::error("Cannot run mlpack cmaes algorithm, lapack not found.");
Expand Down Expand Up @@ -240,4 +240,4 @@ OptResult MLPACKOptimizer::optimize(OptFunction &function) {

} // namespace xacc

REGISTER_OPTIMIZER(xacc::MLPACKOptimizer)
REGISTER_OPTIMIZER(xacc::MLPACKOptimizer)

0 comments on commit 61e130b

Please sign in to comment.