How could I re-use the nl_opt object? I can't create it outside the loop
because I need to know the number of variables, which changes inside the
loop.

Thanks
Miguel


On Fri, Sep 5, 2014 at 11:31 AM, Steven G. Johnson <[email protected]>
wrote:

> The memory usage of MMA is O(n * m), where n is the number of degrees of
> freedom and m is the number of nonlinear constraints.
>
> If it is segfaulting, you could compile everything with -g and then run
> under gdb; that is much faster than valgrind, and will give you a stack
> trace when the segfault occurs.
>
> It should be possible to run NLopt in a loop; assuming you free or re-use
> the nlopt_opt object, then it shouldn’t leak memory (although it’s always
> possible there is a bug).
> _______________________________________________
> NLopt-discuss mailing list
> [email protected]
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss
>



-- 
*Miguel Angel Salazar de Troya*
Graduate Research Assistant
Department of Mechanical Science and Engineering
University of Illinois at Urbana-Champaign
(217) 550-2360
[email protected]
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to