Sets the Stopval.
When performing a minimization, optimization stops when below stopval, and vice-versa for maximization.
Equivalent in C API: nlopt_set_stopval
Params: stopval = below
auto opt = Opt(Algorithm.auglag, 2); opt.setStopval(2.0); assert(opt.getResult() > 0);
See Implementation
Sets the Stopval.
When performing a minimization, optimization stops when below stopval, and vice-versa for maximization.
Equivalent in C API: nlopt_set_stopval