<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<x1,x2<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...: 2</div><div>Number of nonzeros in inequality constraint Jacobian.: 0</div><div>Number of nonzeros in Lagrangian Hessian.............: 0</div><div><br></div><div>Total number of variables............................: 2</div><div> variables with only lower bounds: 0</div><div> variables with lower and upper bounds: 2</div><div> variables with only upper bounds: 0</div><div>Total number of equality constraints.................: 1</div><div>Total number of inequality constraints...............: 0</div><div> inequality constraints with only lower bounds: 0</div><div> inequality constraints with lower and upper bounds: 0</div><div> inequality constraints with only upper bounds: 0</div><div><br></div><div>iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls</div><div> 0 7.2701000e+00 5.30e-01 5.11e+00 0.0 0.00e+00 - 0.00e+00 0.00e+00 0</div><div> 1 7.2565014e+00 4.99e-01 1.39e+01 -5.3 1.69e-01 - 9.72e-01 5.84e-02h 1</div><div> 2 1.0008950e+01 4.44e-16 1.20e-15 -2.1 5.00e-01 - 1.00e+00 1.00e+00h 1</div><div> 3 1.0000089e+01 4.44e-16 2.90e-06 -8.0 1.34e-03 - 9.90e-01 9.91e-01f 1</div><div> 4 9.9999998e+00 0.00e+00 9.57e-10 -10.0 1.34e-05 - 1.00e+00 1.00e+00f 1</div><div><br></div><div>Number of Iterations....: 4</div><div><br></div><div> (scaled) (unscaled)</div><div>Objective...............: 9.9999998194553239e+00 9.9999998194553239e+00</div><div>Dual infeasibility......: 9.5732740321517994e-10 9.5732740321517994e-10</div><div>Constraint violation....: 0.0000000000000000e+00 0.0000000000000000e+00</div><div>Complementarity.........: 4.7273292320677366e-08 4.7273292320677366e-08</div><div>Overall NLP error.......: 4.7273292320677366e-08 4.7273292320677366e-08</div><div><br></div><div><br></div><div>Number of objective function evaluations = 5</div><div>Number of objective gradient evaluations = 5</div><div>Number of equality constraint evaluations = 5</div><div>Number of inequality constraint evaluations = 0</div><div>Number of equality constraint Jacobian evaluations = 1</div><div>Number of inequality constraint Jacobian evaluations = 0</div><div>Number of Lagrangian Hessian evaluations = 0</div><div>Total CPU secs in IPOPT (w/o function evaluations) = 0.851</div><div>Total CPU secs in NLP function evaluations = 0.043</div><div><br></div><div>EXIT: Optimal Solution Found.</div><div><br></div><div>ans =</div><div><br></div><div> 3.0000 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>-- </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. <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, </div><div>min x1^2+x2^2</div><div>such that x1+3X2 =0,</div><div>1<x1,x2<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; "> x0 = [ <span style="color: #3f00d8">2.5</span> <span style="color: #3f00d8">0.5</span> ]; % 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; "> options.lb = [<span style="color: #3f00d8">1</span> <span style="color: #3f00d8">1</span> ]; % 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; "> options.ub = [+<span style="color: #3f00d8">10</span> +<span style="color: #3f00d8">10</span>]; % 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; "> options.cl = [ <span style="color: #3f00d8">0</span> ]; % 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; "> options.cu = [ <span style="color: #3f00d8">0</span> ]; % 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; "> % 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; "> options.ipopt.jac_c_constant = <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; "> 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; "> options.ipopt.mu_strategy = <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; "> options.ipopt.tol = <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; "> % 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; "> funcs.objective = @objective;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> funcs.constraints = @constraints;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> funcs.gradient = @gradient;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> funcs.jacobian = @jacobian;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> 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; "> <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; "> % Run IPOPT.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> [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; "> <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; "> 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; "> 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> 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); "> c = [ x(1) + 3*x(2) ];</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) </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); "> J = sparse([ 1 +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>