auto opt = Opt(Algorithm.auglag, 2); auto optLocal = Opt(Algorithm.lnNelderMead, 2); opt.setLocalOptimizer(optLocal.getOptRaw()); assert(opt.getResult() > 0);
auto opt = Opt(Algorithm.auglag, 2); auto optLocal = Opt(Algorithm.lnNelderMead, 2); opt.setLocalOptimizer(optLocal); assert(opt.getResult() > 0);
From NLopt Reference: "Some of the algorithms, especially MLSL and AUGLAG, use a different optimization algorithm as a subroutine, typically for local optimization."
Equivalent in C API: nlopt_set_local_optimizer