On Sep 5, 2014, at 10:03 PM, Miguel Angel Salazar de Troya <[email protected]> wrote: > What about for C++? I just create the object like this: > nlopt::opt(nlopt::algorithm, unsigned n); > inside the loop and is automatically created and destroyed on each iteration?
Yes. The ~opt destructor is called at the end of every loop iteration, and the destructor calls nlopt_destroy on the object.
_______________________________________________ NLopt-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
