Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am having trouble using NMinimize in Mathematica 9 - Memory consumption overflows.

The same NMinimize command, with the same function to minimize, in Mathematica 7 and 8, gives acceptable results.

Is this a bug? Anyone else has had similar issues? Any workarounds ?

share|improve this question

closed as off-topic by blochwave, m_goldberg, Pickett, ilian, Michael E2 Sep 26 at 19:34

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – blochwave, m_goldberg, Pickett, ilian, Michael E2
If this question can be reworded to fit the rules in the help center, please edit the question.

How are we to know or confirm anything or suggest a workaround if you do not provide an example? Please edit your post to include a minimal example that reproduces the problem, showing the memory increase in 9, but not 7 and 8. –  R. M. Oct 23 '13 at 20:41
@rm-rf I can send you the nootebook. The code is very large. If I simplify the code im not sure that i can obtain the same behavior. Do I send you the notebook? –  alcohol Oct 23 '13 at 20:49
I'm afraid I won't have the time to look through a very large code base (and am reluctant to, as well). I suspect most folks here might feel the same, which is why we suggest reducing the problem to a minimal example. If that is not possible, it seems to me like your best bet here would be contacting Wolfram support directly at They have resources at their disposal to closely reproduce your system config and check to see if the memory leak can be reproduced as well. BTW, are you running 9.0.0 or 9.0.1? –  R. M. Oct 23 '13 at 20:55