<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Thanks Stefan! You put me in the right direction. I added back libcmt.lib and took out msvcrt.lib and it worked.<br>Thanks again. <br>Krish<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: "ipopt-request@list.coin-or.org" <ipopt-request@list.coin-or.org><br>To: ipopt@list.coin-or.org<br>Sent: Thursday, June 5, 2008 9:30:02 PM<br>Subject: Ipopt Digest, Vol 42, Issue 4<br><br>
Send Ipopt mailing list submissions to<br> <a ymailto="mailto:ipopt@list.coin-or.org" href="mailto:ipopt@list.coin-or.org">ipopt@list.coin-or.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br>or, via email, send a message with subject or body 'help' to<br> <a ymailto="mailto:ipopt-request@list.coin-or.org" href="mailto:ipopt-request@list.coin-or.org">ipopt-request@list.coin-or.org</a><br><br>You can reach the person managing the list at<br> <a ymailto="mailto:ipopt-owner@list.coin-or.org" href="mailto:ipopt-owner@list.coin-or.org">ipopt-owner@list.coin-or.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Ipopt digest..."<br><br><br>Today's Topics:<br><br> 1.
Bound-constrained solution worst than initial guess<br> (Rafael de Pelegrini Soares)<br> 2. Compiling test programs in Visual Studio 2005 (Krish Krishnan)<br> 3. Re: Compiling test programs in Visual Studio 2005<br> (Stefan Vigerske)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 04 Jun 2008 17:20:31 -0300<br>From: Rafael de Pelegrini Soares <<a ymailto="mailto:rafael@vrtech.com.br" href="mailto:rafael@vrtech.com.br">rafael@vrtech.com.br</a>><br>Subject: [Ipopt] Bound-constrained solution worst than initial guess<br>To: <a ymailto="mailto:ipopt@list.coin-or.org" href="mailto:ipopt@list.coin-or.org">ipopt@list.coin-or.org</a><br>Message-ID: <<a ymailto="mailto:1212610831.9536.8.camel@malory.enq.ufrgs.br"
href="mailto:1212610831.9536.8.camel@malory.enq.ufrgs.br">1212610831.9536.8.camel@malory.enq.ufrgs.br</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>Dear all,<br><br>I'm trying to solve a small bound-constrained problem with Ipopt. I'm<br>giving the analytic first-order derivatives and no hessian information.<br><br>The problem is, I have a very good initial estimation of the optimum.<br>With my initial estimative, the objective function evaluates to<br>-2.6903480e+01. My initial estimate is feasible with respect to the<br>bounds and there is no additional constraints. My doubt is: how can<br>Ipopt find a solution which is worst ?(-2.6826471985692432e+01) than my<br>initial guess, if the initial guess is a feasible solution? Is that<br>something related with the tolerances or options?<br><br>Thank you in advance.<br><br>By the way, the derivative checker cannot find any errors on my<br>derivatives.<br><br>It follows the output for the
problem:<br><br><br>******************************************************************************<br>This program contains Ipopt, a library for large-scale nonlinear<br>optimization.<br> Ipopt is released as open source code under the Common Public License<br>(CPL).<br> For more information visit <a href="http://projects.coin-or.org/Ipopt" target="_blank">http://projects.coin-or.org/Ipopt</a><br>******************************************************************************<br><br>NOTE: You are using Ipopt by default with the MUMPS linear solver.<br> Other linear solvers might be more efficient (see Ipopt<br>documentation).<br><br><br>This is Ipopt version 3.4trunk, running with linear solver mumps.<br><br>Number of nonzeros in equality constraint Jacobian...: 0<br>Number of nonzeros in inequality constraint Jacobian.: 0<br>Number of nonzeros in
Lagrangian Hessian.............: 0<br><br>Total number of variables............................: 6<br> variables with only lower bounds: 0<br> variables with lower and upper bounds: 6<br> variables with only upper bounds: 0<br>Total number of equality constraints.................: 0<br>Total number of inequality constraints...............: 0<br> inequality constraints with only lower bounds: 0<br> inequality constraints with lower and upper bounds: 0<br>
inequality constraints with only upper bounds: 0<br><br>iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du<br>alpha_pr ls<br> 0 -2.6903480e+01 0.00e+00 1.23e+00 0.0 0.00e+00 - 0.00e+00<br>0.00e+00 0<br> 1 -2.6773883e+01 0.00e+00 1.25e+00 -0.8 1.58e-01 - 9.66e-01<br>1.00e+00f 1<br> 2 -2.6762138e+01 0.00e+00 5.53e-01 -0.8 4.36e-01 - 1.00e+00<br>1.00e+00f 1<br> 3 -2.6765537e+01 0.00e+00 2.97e-02 -1.5 2.85e-02 - 1.00e+00<br>1.00e+00f 1<br> 4 -2.6782839e+01 0.00e+00 1.26e-01 -2.3 5.76e-02 - 1.00e+00<br>1.00e+00f 1<br> 5 -2.6813428e+01 0.00e+00 9.97e-02 -2.3 1.12e-01 - 1.00e+00<br>1.00e+00f 1<br> 6 -2.6818494e+01 0.00e+00 8.18e-02 -2.3
6.85e-02 - 1.00e+00<br>1.00e+00f 1<br> 7 -2.6823893e+01 0.00e+00 3.77e-02 -2.3 5.74e-02 - 1.00e+00<br>1.00e+00f 1<br> 8 -2.6826132e+01 0.00e+00 3.05e-02 -3.4 9.18e-02 - 9.46e-01<br>1.00e+00f 1<br> 9 -2.6826319e+01 0.00e+00 1.36e-02 -3.4 2.51e-02 - 1.00e+00<br>1.00e+00f 1<br>iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du<br>alpha_pr ls<br> 10 -2.6826439e+01 0.00e+00 2.99e-02 -3.4 1.12e-02 - 1.00e+00<br>1.00e+00f 1<br> 11 -2.6826454e+01 0.00e+00 8.72e-03 -3.4 9.73e-03 - 1.00e+00<br>5.00e-01f 2<br> 12 -2.6826465e+01 0.00e+00 6.14e-04 -3.4 2.86e-03 - 1.00e+00<br>1.00e+00f 1<br> 13 -2.6826472e+01 0.00e+00 3.36e-04 -5.2 2.59e-03
- 1.00e+00<br>1.00e+00f 1<br> 14 -2.6826472e+01 0.00e+00 2.78e-04 -5.2 3.43e-04 - 1.00e+00<br>1.00e+00f 1<br> 15 -2.6826472e+01 0.00e+00 3.52e-04 -5.2 3.10e-04 - 1.00e+00<br>1.00e+00f 1<br> 16 -2.6826472e+01 0.00e+00 9.92e-06 -5.2 1.90e-04 - 1.00e+00<br>1.00e+00f 1<br> 17 -2.6826472e+01 0.00e+00 2.95e-06 -7.0 6.05e-05 - 1.00e+00<br>1.00e+00f 1<br> 18 -2.6826472e+01 0.00e+00 4.87e-06 -7.0 5.56e-06 - 1.00e+00<br>1.00e+00f 1<br> 19 -2.6826472e+01 0.00e+00 4.47e-06 -7.0 3.50e-06 - 1.00e+00<br>1.00e+00f 1<br>iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du<br>alpha_pr ls<br> 20 -2.6826472e+01 0.00e+00 1.98e-06 -7.0 2.45e-06 -
1.00e+00<br>2.50e-01f 3<br> 21 -2.6826472e+01 0.00e+00 7.27e-08 -7.0 6.95e-07 - 1.00e+00<br>1.00e+00f 1<br><br>Number of Iterations....: 21<br><br> (scaled) (unscaled)<br>Objective...............: -2.6826471985692432e+01<br>-2.6826471985692432e+01<br>Dual infeasibility......: 7.2654462898683632e-08<br>7.2654462898683632e-08<br>Constraint violation....: 0.0000000000000000e+00<br>0.0000000000000000e+00<br>Complementarity.........: 9.0909090910064460e-08<br>9.0909090910064460e-08<br>Overall NLP error.......: 9.0909090910064460e-08<br>9.0909090910064460e-08<br><br><br>Number of objective function evaluations = 33<br>Number of objective gradient evaluations
= 22<br>Number of equality constraint evaluations = 0<br>Number of inequality constraint evaluations = 0<br>Number of equality constraint Jacobian evaluations = 0<br>Number of inequality constraint Jacobian evaluations = 0<br>Number of Lagrangian Hessian evaluations = 0<br>Total CPU secs in IPOPT (w/o function evaluations) = 0.676<br>Total CPU secs in NLP function evaluations = 0.000<br><br>EXIT: Optimal Solution Found.<br>Final g:-26.826471985692432<br><br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 5 Jun 2008 08:09:24 -0700 (PDT)<br>From: Krish Krishnan <<a ymailto="mailto:rkrishnan8216@yahoo.com" href="mailto:rkrishnan8216@yahoo.com">rkrishnan8216@yahoo.com</a>><br>Subject: [Ipopt]
Compiling test programs in Visual Studio 2005<br>To: <a ymailto="mailto:ipopt@list.coin-or.org" href="mailto:ipopt@list.coin-or.org">ipopt@list.coin-or.org</a><br>Message-ID: <<a ymailto="mailto:714380.49836.qm@web65504.mail.ac4.yahoo.com" href="mailto:714380.49836.qm@web65504.mail.ac4.yahoo.com">714380.49836.qm@web65504.mail.ac4.yahoo.com</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>Hi All:<br><br>I successfully compiled the IPOPT library in MINGW using the Intel Fortran Compiler and Visual Studio 2005. This was done in "release" mode. I next tried to compile the test program hs071_c.c as a console application in Visual Studio 2005 and statically linked it to the libipopt.lib that I had created with the earlier step. I had to disable libcmt.lib to take care of some conflicts (redefinitions). But after all of this I still get the following errors:<br><br>1>libifcoremt.lib(for_diags_intel.obj) :
error LNK2001: unresolved external symbol __iob<br>1>libifcoremt.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external symbol __iob<br>1>libmmt.lib(libm_error.obj) : error LNK2001: unresolved external symbol __iob<br>1>libifcoremt.lib(for_init.obj) : error LNK2001: unresolved external symbol ___argv<br>1>libifcoremt.lib(for_init.obj) : error LNK2001: unresolved external symbol ___argc<br>1>C:\Users\krishnan\Documents\projects\Testipopt\Release\Testipopt.exe : fatal error LNK1120: 3 unresolved externals<br><br>These are obviously coming from the Intel side. This is maddening since I had successfully done something similar in the past. Any clues on where I am goofing up? <br><br>Much appreciate all the help.<br><br>Thanks guys<br><br>Krish<br><br><br> <br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a
href="http://list.coin-or.org/pipermail/ipopt/attachments/20080605/a50d758b/attachment-0001.html" target="_blank">http://list.coin-or.org/pipermail/ipopt/attachments/20080605/a50d758b/attachment-0001.html</a> <br><br>------------------------------<br><br>Message: 3<br>Date: Thu, 05 Jun 2008 17:44:48 +0200<br>From: Stefan Vigerske <<a ymailto="mailto:stefan@math.hu-berlin.de" href="mailto:stefan@math.hu-berlin.de">stefan@math.hu-berlin.de</a>><br>Subject: Re: [Ipopt] Compiling test programs in Visual Studio 2005<br>To: Krish Krishnan <<a ymailto="mailto:rkrishnan8216@yahoo.com" href="mailto:rkrishnan8216@yahoo.com">rkrishnan8216@yahoo.com</a>><br>Cc: <a ymailto="mailto:ipopt@list.coin-or.org" href="mailto:ipopt@list.coin-or.org">ipopt@list.coin-or.org</a><br>Message-ID: <<a ymailto="mailto:484809F0.30808@math.hu-berlin.de" href="mailto:484809F0.30808@math.hu-berlin.de">484809F0.30808@math.hu-berlin.de</a>><br>Content-Type: text/plain;
charset=ISO-8859-1; format=flowed<br><br>Hi,<br><br>> I successfully compiled the IPOPT library in MINGW using the Intel Fortran <br>> Compiler and Visual Studio 2005. This was done in "release" mode. I next tried <br>> to compile the test program hs071_c.c as a console application in Visual Studio <br>> 2005 and statically linked it to the libipopt.lib that I had created with the <br>> earlier step. I had to disable libcmt.lib to take care of some conflicts <br>> (redefinitions). But after all of this I still get the following errors:<br>> <br>> 1>libifcoremt.lib(for_diags_intel.obj) : error LNK2001: unresolved external <br>> symbol __iob<br>> 1>libifcoremt.lib(for_nt_open_proc.obj) : error LNK2001: unresolved external <br>> symbol __iob<br>> 1>libmmt.lib(libm_error.obj) : error LNK2001: unresolved external symbol __iob<br>> 1>libifcoremt.lib(for_init.obj) : error
LNK2001: unresolved external symbol ___argv<br>> 1>libifcoremt.lib(for_init.obj) : error LNK2001: unresolved external symbol ___argc<br>> 1>C:\Users\krishnan\Documents\projects\Testipopt\Release\Testipopt.exe : fatal <br>> error LNK1120: 3 unresolved externals<br>> <br>> These are obviously coming from the Intel side. This is maddening since I had <br>> successfully done something similar in the past. Any clues on where I am <br>> goofing up? <br><br>I wouldn't be so sure that this is from the intel side.<br>Checking a fairly old VS2003, __iob and __argv are defined in the libc <br>derivates (libc, libcmt, libcd, ...), but in none of the Intel Fortran <br>10 compiler libraries.<br>Maybe you can try to take libcmt or libc in again, or msvcrt.lib seem to <br>define these too.<br><br>Hope this helps,<br>Stefan<br><br>-- <br>Stefan Vigerske<br>Humboldt University Berlin, Numerical Mathematics<br><a
href="http://www.math.hu-berlin.de/%7Estefan" target="_blank">http://www.math.hu-berlin.de/~stefan</a><br><br><br>------------------------------<br><br>_______________________________________________<br>Ipopt mailing list<br><a ymailto="mailto:Ipopt@list.coin-or.org" href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br><br><br>End of Ipopt Digest, Vol 42, Issue 4<br>************************************<br></div></div></div><br>
</body></html>