<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yes, it works fine for a feasible problem. for example if I change the problem statement to,<div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>min x1^2+x2^2</div><div>such that x1-3X2 =0,</div><div>1&lt;x1,x2&lt;10</div></div></blockquote></div></div></div></div></blockquote></div><div>I get the following results on matlab console.</div><div><div><br></div><div>This is Ipopt version 3.8stable, running with linear solver ma57.</div><div><br></div><div>Number of nonzeros in equality constraint Jacobian...: &nbsp; &nbsp; &nbsp; &nbsp;2</div><div>Number of nonzeros in inequality constraint Jacobian.: &nbsp; &nbsp; &nbsp; &nbsp;0</div><div>Number of nonzeros in Lagrangian Hessian.............: &nbsp; &nbsp; &nbsp; &nbsp;0</div><div><br></div><div>Total number of variables............................: &nbsp; &nbsp; &nbsp; &nbsp;2</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;variables with only lower bounds: &nbsp; &nbsp; &nbsp; &nbsp;0</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; variables with lower and upper bounds: &nbsp; &nbsp; &nbsp; &nbsp;2</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;variables with only upper bounds: &nbsp; &nbsp; &nbsp; &nbsp;0</div><div>Total number of equality constraints.................: &nbsp; &nbsp; &nbsp; &nbsp;1</div><div>Total number of inequality constraints...............: &nbsp; &nbsp; &nbsp; &nbsp;0</div><div>&nbsp; &nbsp; &nbsp; &nbsp; inequality constraints with only lower bounds: &nbsp; &nbsp; &nbsp; &nbsp;0</div><div>&nbsp; &nbsp;inequality constraints with lower and upper bounds: &nbsp; &nbsp; &nbsp; &nbsp;0</div><div>&nbsp; &nbsp; &nbsp; &nbsp; inequality constraints with only upper bounds: &nbsp; &nbsp; &nbsp; &nbsp;0</div><div><br></div><div>iter &nbsp; &nbsp;objective &nbsp; &nbsp;inf_pr &nbsp; inf_du lg(mu) &nbsp;||d|| &nbsp;lg(rg) alpha_du alpha_pr &nbsp;ls</div><div>&nbsp; &nbsp;0 &nbsp;7.2701000e+00 5.30e-01 5.11e+00 &nbsp; 0.0 0.00e+00 &nbsp; &nbsp;- &nbsp;0.00e+00 0.00e+00 &nbsp; 0</div><div>&nbsp; &nbsp;1 &nbsp;7.2565014e+00 4.99e-01 1.39e+01 &nbsp;-5.3 1.69e-01 &nbsp; &nbsp;- &nbsp;9.72e-01 5.84e-02h &nbsp;1</div><div>&nbsp; &nbsp;2 &nbsp;1.0008950e+01 4.44e-16 1.20e-15 &nbsp;-2.1 5.00e-01 &nbsp; &nbsp;- &nbsp;1.00e+00 1.00e+00h &nbsp;1</div><div>&nbsp; &nbsp;3 &nbsp;1.0000089e+01 4.44e-16 2.90e-06 &nbsp;-8.0 1.34e-03 &nbsp; &nbsp;- &nbsp;9.90e-01 9.91e-01f &nbsp;1</div><div>&nbsp; &nbsp;4 &nbsp;9.9999998e+00 0.00e+00 9.57e-10 -10.0 1.34e-05 &nbsp; &nbsp;- &nbsp;1.00e+00 1.00e+00f &nbsp;1</div><div><br></div><div>Number of Iterations....: 4</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(scaled) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (unscaled)</div><div>Objective...............: &nbsp; 9.9999998194553239e+00 &nbsp; &nbsp;9.9999998194553239e+00</div><div>Dual infeasibility......: &nbsp; 9.5732740321517994e-10 &nbsp; &nbsp;9.5732740321517994e-10</div><div>Constraint violation....: &nbsp; 0.0000000000000000e+00 &nbsp; &nbsp;0.0000000000000000e+00</div><div>Complementarity.........: &nbsp; 4.7273292320677366e-08 &nbsp; &nbsp;4.7273292320677366e-08</div><div>Overall NLP error.......: &nbsp; 4.7273292320677366e-08 &nbsp; &nbsp;4.7273292320677366e-08</div><div><br></div><div><br></div><div>Number of objective function evaluations &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 5</div><div>Number of objective gradient evaluations &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 5</div><div>Number of equality constraint evaluations &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 5</div><div>Number of inequality constraint evaluations &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0</div><div>Number of equality constraint Jacobian evaluations &nbsp; = 1</div><div>Number of inequality constraint Jacobian evaluations = 0</div><div>Number of Lagrangian Hessian evaluations &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0</div><div>Total CPU secs in IPOPT (w/o function evaluations) &nbsp; = &nbsp; &nbsp; &nbsp;0.851</div><div>Total CPU secs in NLP function evaluations &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &nbsp; &nbsp; &nbsp;0.043</div><div><br></div><div>EXIT: Optimal Solution Found.</div><div><br></div><div>ans =</div><div><br></div><div>&nbsp; &nbsp; 3.0000 &nbsp; &nbsp;1.0000</div></div><div><br></div><div>Siddharth</div><div><div><div>On Jan 10, 2012, at 11:37 AM, Ray Zimmerman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">It might be related to the libraries it attempts to use to print to the console. Can you get it to print progress successfully for a feasible problem?<div><br></div><div><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--&nbsp;</div><div>Ray Zimmerman</div><div>Senior Research Associate</div><div>419A Warren Hall, Cornell University, Ithaca, NY 14853</div><div>phone: (607) 255-9645</div><br class="Apple-interchange-newline"></span></div></span></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>On Jan 10, 2012, at 10:54 AM, Siddharth Goyal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I have a precompiled ipopt.mexmaci64 file which was complied on a different system. I am able to run all the predefine examples (eg.&nbsp;<span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">examplehs051,...</span>) with the mex file on my system. However, when there is no feasible solution Matlab crashes. Is it because mex file was complied on another system? If not, what can be the possible reason?</div><div><br></div><div>BTW, I was trying to solve a simple problem,&nbsp;</div><div>min x1^2+x2^2</div><div>such that x1+3X2 =0,</div><div>1&lt;x1,x2&lt;10</div><div><br></div><div>I have used the following code.</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">function [x, info] = examplehs051</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; x0 &nbsp; &nbsp; &nbsp; &nbsp; = [ <span style="color: #3f00d8">2.5</span> <span style="color: #3f00d8">0.5</span> ];&nbsp; % The starting point.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp;&nbsp; options.lb = [<span style="color: #3f00d8">1</span> <span style="color: #3f00d8">1</span> ];&nbsp; % Lower bound on the variables.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; options.ub = [+<span style="color: #3f00d8">10</span> +<span style="color: #3f00d8">10</span>];&nbsp; % Upper bound on the variables.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; options.cl = [ <span style="color: #3f00d8">0</span> ]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % Lower bounds on constraints.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; options.cu = [ <span style="color: #3f00d8">0</span> ]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; % Upper bounds on constraints.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; % Set the IPOPT options.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; options.ipopt.jac_c_constant&nbsp; &nbsp; &nbsp; &nbsp; = <span style="color: #3f00d8">'yes'</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; options.ipopt.hessian_approximation = <span style="color: #3f00d8">'limited-memory'</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; options.ipopt.mu_strategy &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span style="color: #3f00d8">'adaptive'</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; options.ipopt.tol &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = <span style="color: #3f00d8">1e-7</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; % The callback functions.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; funcs.objective &nbsp; &nbsp; &nbsp; &nbsp; = @objective;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; funcs.constraints &nbsp; &nbsp; &nbsp; = @constraints;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; funcs.gradient&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = @gradient;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; funcs.jacobian&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = @jacobian;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; funcs.jacobianstructure = @jacobian;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">&nbsp;&nbsp;<br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; % Run IPOPT.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; [x info] = ipopt(x0,funcs,options);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">&nbsp;&nbsp;<br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">% ----------------------------------------------------------------------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">function f = objective (x)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; f = x(<span style="color: #3f00d8">1</span>)^<span style="color: #3f00d8">2</span> + x(<span style="color: #3f00d8">2</span>)^<span style="color: #3f00d8">2</span>;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">% ----------------------------------------------------------------------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">function g = gradient (x)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">&nbsp; g = <span style="color: #3f00d8">2</span>*[ x(<span style="color: #3f00d8">1</span>) ;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp; x(<span style="color: #3f00d8">2</span>) ]<span style="color: #3f00d8">';</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(63, 0, 216); ">% ----------------------------------------------------------------------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(63, 0, 216); ">function c = constraints (x)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(63, 0, 216); ">&nbsp; c = [ x(1) + 3*x(2) &nbsp; ];</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(63, 0, 216); min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(63, 0, 216); ">% ----------------------------------------------------------------------</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(63, 0, 216); ">function J = jacobian (x) &nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(63, 0, 216); ">&nbsp; J = sparse([ 1&nbsp; +3 ]);</div></div><div><br></div><div><br></div><div>Any suggestion is highly appreciated</div><div>Thanks</div><div><br></div><div>Siddharth</div></div>_______________________________________________<br>Ipopt mailing list<br><a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/ipopt">http://list.coin-or.org/mailman/listinfo/ipopt</a><br></blockquote></div><br></div></div></div>_______________________________________________<br>Ipopt mailing list<br><a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>http://list.coin-or.org/mailman/listinfo/ipopt<br></blockquote></div><br></div></body></html>