Greetings, <div><br></div><div>In fact the problem was due to memory initialization.</div><div>I was accumulating the results for the gradient and the Jacobian Hessian without initializing to zero the memory space for those values.</div>

<div><br></div><div>Thanks for the quick replies.</div><div><br></div><div>Regards,</div><div>Nuno<br><br><div class="gmail_quote">On 21 October 2012 19:32, Verhoeven, Ronald <span dir="ltr">&lt;<a href="mailto:Ronald.Verhoeven@nlr.nl" target="_blank">Ronald.Verhoeven@nlr.nl</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hello Nuno,<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I have encountered the same problem, when I was using ipopt as part of psopt. <u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I found that the problem is caused by the vs2008 “Optimization” settings of 2 projects when building the ipopt solution. If “Optimization” for the release version of the “CoinBlas” project and the “CoinMumpsF90” project is disabled when building the ipopt lib, the problem was solved! <u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">See also <a href="https://groups.google.com/forum/?fromgroups=#!topic/psopt-users-group/be_wPvYTM9k" target="_blank">https://groups.google.com/forum/?fromgroups=#!topic/psopt-users-group/be_wPvYTM9k</a><u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I hope this may help you.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Regards, Ronald.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:ipopt-bounces@list.coin-or.org" target="_blank">ipopt-bounces@list.coin-or.org</a> [mailto:<a href="mailto:ipopt-bounces@list.coin-or.org" target="_blank">ipopt-bounces@list.coin-or.org</a>] <b>On Behalf Of </b>Nuno Silva<br>

<b>Sent:</b> Friday, October 19, 2012 23:31 PM<br><b>To:</b> ipopt<br><b>Subject:</b> [Ipopt] Different result depending on running environment.<u></u><u></u></span></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p>

<p class="MsoNormal">Greetings<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I&#39;m trying to figure out why does my application behave differently depending whether it runs inside visual studio (debugging - F5) or outside visual studio (without debugging CTRL+F5).<u></u><u></u></p>

<div><p class="MsoNormal">When debugging, the program succeeds, and when not debugging it exceeds the maximum number of iterations.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">

Anyone has any idea?<u></u><u></u></p></div><div><p class="MsoNormal">(Note: these observations are independent of compiling with debug or release configuration)<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p>

</div><div><p class="MsoNormal">Regards<u></u><u></u></p></div><div><p class="MsoNormal">Nuno<u></u><u></u></p></div></div></div></div></div>
<br>
<br>
<br>
<hr><font color="#00467F"><i><span lang="EN-US">
The NLR disclaimer is valid for NLR e-mail messages.</span></i>
<p>
This message is only meant for providing information. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of the sender.</p>
<p>This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. Sender 
accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.<br></p> 
</font><hr>
</div></blockquote></div><br></div>