<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texto de globo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextodegloboCar
        {mso-style-name:"Texto de globo Car";
        mso-style-priority:99;
        mso-style-link:"Texto de globo";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi all,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I am trying to solve a NLP problem with IPOPT (865 variables and 530 constraints). I am using the the binary (win32) DLL.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>If I run the program in debug mode, all is right. The problem comes when I try to execute it in release mode. In release, IPOPT gives me the optimal solution without problems, but this solution differs depending on the place where it’s executed.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>For example, if I execute the code in my desktop, IPOPT finds the optimal solution in 193 iterations:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=FR-BE>iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls<o:p></o:p></span></p><p class=MsoNormal><span lang=FR-BE> </span>0 1.8990519e+003 2.53e+006 8.73e+001 0.0 0.00e+000 - 0.00e+000 0.00e+000 0<o:p></o:p></p><p class=MsoNormal> 1 8.0615445e+004 2.53e+006 1.14e+002 5.5 1.68e+006 - 3.45e-008 1.52e-006f 1<o:p></o:p></p><p class=MsoNormal> 2 8.4984098e+004 2.53e+006 1.14e+002 3.7 1.63e+006 - 9.21e-007 3.44e-006f 1<o:p></o:p></p><p class=MsoNormal> 3 1.5133245e+005 2.53e+006 2.79e+002 4.3 1.68e+006 - 2.15e-006 1.32e-005f 1<o:p></o:p></p><p class=MsoNormal> 4 2.8394936e+005 2.53e+006 2.94e+002 3.9 1.69e+006 - 1.38e-005 3.96e-005f 1<o:p></o:p></p><p class=MsoNormal> 5 2.9204821e+005 2.53e+006 2.93e+002 4.8 1.01e+006 - 2.55e-006 2.71e-006f 1<o:p></o:p></p><p class=MsoNormal> 6 8.2596406e+008 2.51e+006 1.02e+006 6.1 1.89e+006 - 1.72e-006 8.16e-003f 1<o:p></o:p></p><p class=MsoNormal> …<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Number of Iterations....: 193<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <span lang=EN-US>(scaled) (unscaled)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Objective...............: 3.1208657806952629e+005 6.1431434113783743e+006<o:p></o:p></span></p><p class=MsoNormal>Dual infeasibility......: 3.5501585875953514e-009 6.9881676654085783e-008<o:p></o:p></p><p class=MsoNormal>Constraint violation....: 4.6566128730773926e-010 4.6566128730773926e-010<o:p></o:p></p><p class=MsoNormal>Complementarity.........: 1.0000000696763270e-011 1.9684101371515826e-010<o:p></o:p></p><p class=MsoNormal>Overall NLP error.......: 3.5501585875953514e-009 6.9881676654085783e-008<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>Number of objective function evaluations = 355<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Number of objective gradient evaluations = 180<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Number of equality constraint evaluations = 355<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Number of inequality constraint evaluations = 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Number of equality constraint Jacobian evaluations = 196<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Number of inequality constraint Jacobian evaluations = 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Number of Lagrangian Hessian evaluations = 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Total CPU secs in IPOPT (w/o function evaluations) = 24.172<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Total CPU secs in NLP function evaluations = 48.125<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>But if I execute the same code in C:/, the number of iterations and the results are different:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=FR-BE>iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls<o:p></o:p></span></p><p class=MsoNormal><span lang=FR-BE> </span>0 1.8990519e+003 2.53e+006 8.73e+001 0.0 0.00e+000 - 0.00e+000 0.00e+000 0<o:p></o:p></p><p class=MsoNormal> 1 8.0615445e+004 2.53e+006 1.14e+002 5.5 1.68e+006 - 3.45e-008 1.52e-006f 1<o:p></o:p></p><p class=MsoNormal> 2 8.4984098e+004 2.53e+006 1.14e+002 3.7 1.63e+006 - 9.21e-007 3.44e-006f 1<o:p></o:p></p><p class=MsoNormal> 3 1.5133245e+005 2.53e+006 2.79e+002 4.3 1.68e+006 - 2.15e-006 1.32e-005f 1<o:p></o:p></p><p class=MsoNormal> 4 2.8394985e+005 2.53e+006 2.94e+002 3.9 1.69e+006 - 1.38e-005 3.96e-005f 1<o:p></o:p></p><p class=MsoNormal> 5 2.9204809e+005 2.53e+006 2.93e+002 4.8 1.01e+006 - 2.55e-006 2.71e-006f 1<o:p></o:p></p><p class=MsoNormal> 6 8.2597073e+008 2.51e+006 1.02e+006 6.1 1.89e+006 - 1.73e-006 8.16e-003f 1<o:p></o:p></p><p class=MsoNormal>…<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Number of Iterations....: 111<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> <span lang=EN-US>(scaled) (unscaled)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Objective...............: 3.1208657753133564e+005 6.1431434007845754e+006<o:p></o:p></span></p><p class=MsoNormal>Dual infeasibility......: 9.7656250000000000e-004 1.9222753906250035e-002<o:p></o:p></p><p class=MsoNormal>Constraint violation....: 9.9999999999999969e-009 9.9999999999999969e-009<o:p></o:p></p><p class=MsoNormal>Complementarity.........: 1.1550769498483705e-011 2.2736650188510352e-010<o:p></o:p></p><p class=MsoNormal>Overall NLP error.......: 9.9999999999999969e-009 1.9222753906250035e-002<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>Is normal this behavior?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I have the same problem with versions 3.9.2 and 3.10.1.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Best regards and thank you in advance<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Raquel <o:p></o:p></span></p></div></body></html>