<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">Dear Teeter,<br><br>I build the Ipopt with the "v8-ifort" Project in the ipopt source. (will it be related to the problem?)<br>And I use the default BLAS that i dowload directly with the command "get.Blas" from cygwin.(So i don't know which BLAS it is.)<br><br>But ipopt still crash when it starts.<br><br>Thx<br><br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "Teeter, Chuck" <cteeter@Suncor.com><br><b><span style="font-weight: bold;">To:</span></b> James Henderson <jamesh125125@yahoo.com><br><b><span style="font-weight: bold;">Cc:</span></b> ipopt ipopt
<ipopt@list.coin-or.org><br><b><span style="font-weight: bold;">Sent:</span></b> Fri, April 9, 2010 4:07:36 AM<br><b><span style="font-weight: bold;">Subject:</span></b> RE: Ipopt crash with PARDISO 4.0 when it starts.<br></font><br>
<meta http-equiv="x-dns-prefetch-control" content="off">
<style type="text/css">DIV {
MARGIN:0px;}
</style>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="867504319-08042010">Lewis,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="867504319-08042010"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="867504319-08042010">Have you tried to run your application through the
debugger and set break points in the Pardiso interface code to see where it's
crashing? My initial suggestion is to verify (by stepping into the code)
that the new interface to Pardiso is being called and not the older one.
If you have defined HAVE_PARDISO_NEWINTERFACE, you should be calling the correct
interface. Also be sure that the F77_FUNC() macro is not being used as
described below.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="867504319-08042010"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="867504319-08042010">If you are using the Intel Math Kernel Library (MKL)
for BLAS, you will need to add the appropriate libraries (mkl_intel_c.lib,
mkl_thread.lib, mkl_core.lib, libiomp5md.lib in my particular case) to the link
line AFTER libpardiso400_INTEL_IA32.lib.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="867504319-08042010"></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="867504319-08042010">In Visual Studio, I've also set my calling convention
for the Ipopt library to __cdecl (/Gd). It may be worthwhile to check your
setting as well. </span></font></div><br>
<div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us">
<hr tabindex="-1">
<font face="Tahoma" size="2"><b>From:</b> James Henderson
[mailto:jamesh125125@yahoo.com] <br><b>Sent:</b> Thursday, April 08, 2010 1:00
PM<br><b>To:</b> Teeter, Chuck; ipopt ipopt<br><b>Subject:</b> Ipopt crash with
PARDISO 4.0 when it starts.<br></font><br></div>
<div></div>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><span class="cgSelectable" title="View all emails from this sender "></span>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;">Dear
all and Teeter,<br><br>I have follow your instruction , but when i set
everything ,and start to compute , ipopt crash and the ipopt log prints
nothing.<br>I think i have the correct pardiso license and put it at the right
place, becasue when i do it wrong, the ipopt log will still have some error
messages in it.<br>But when i do it right, the ipopt crash and ipopt log is
empty.<br>What happen? And how can i fix it? <br><br>P.S. I can use ma27, ma57
and mumps as linear solver too.<br><br>Thank you.<br>Lewis<br><br>
<div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><font face="Tahoma" size="2">
<hr size="1">
<b><span style="font-weight: bold;">From:</span></b> "Teeter, Chuck"
<cteeter@Suncor.com><br><b><span style="font-weight: bold;">To:</span></b>
York Tang <hkyork@gmail.com><br><b><span style="font-weight: bold;">Cc:</span></b> ipopt@list.coin-or.org<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, February 19, 2010 4:13:46
AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Ipopt] Can
PARDISO 4.0 work with ipopt in windows?<br></font><br>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2">York,</font></span></div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff"><font face="Arial" size="2">I use Visual Studio 2008 to build IPOPT 3.8. In my case,
I build IPOPT as a static library and link it with PARDISO. If you are
using Visual Studio, you must make sure that the file
"IpPardisoSolverInterface.cpp" is included in your project file, or it will not
be compiled even if you've changed it. I've noticed that some IPOPT source
files have not been included in the Visual Studio project file, and I've had to
manually add some on occasion.</font></font></span></div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2">If you are building PARDISO as a DLL, you have to perform a few
additional steps.</font></span></div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left"><span class="921374619-18022010"><font size="2"><font color="#0000ff" face="Arial">1. When you build the IPOPT DLL, you will need to link it
with the import library named "libpardiso400_INTEL_IA32.lib". This is done
so that when the IPOPT DLL is loaded by your executable, it can find the PARDISO
functions it needs at runtime in "libpardiso400_INTEL_IA32.dll". The
process of building the IPOPT DLL should also produce a .lib file of the same
name as the DLL.</font></font></span></div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2">2. When you build your executable, you must link your code to
the .lib file that was produced when building IPOPT. This way, your
executable can find the IPOPT functions it needs in the accompanying DLL at
runtime.</font></span></div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2">3. The file libiomp5md.dll is a runtime library (not to be confused
with the import libraries mentioned above), and needs to be in the same
directory as your executable. This DLL is used to support the Intel MKL
code that is used by PARDISO. It may also be located somewhere else,
provided that your system can find it, ie, it needs to be in a directory defined
by the PATH environment variable.</font></span></div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2">4. Do not rename "libpardiso400_INTEL_IA32.dll", or it will not be
properly located at runtime. If you link IPOPT with
libpardiso400_INTEL_IA32.lib, it expects to use a runtime DLL of the same
name.</font></span></div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2">5. You probably do not need the PARDISO_Template.zip file - I
didn't need it.</font></span></div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div align="left"><span class="921374619-18022010"><font color="#0000ff" face="Arial" size="2">6. At run time, your executable, the IPOPT DLL, and file
libiomp5md.dll must all reside in the same directory or be located in a
directory defined by the PATH environment variable.</font></span></div><br>
<div class="OutlookMessageHeader" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> York Tang [mailto:hkyork@gmail.com]
<br><b>Sent:</b> Thursday, February 18, 2010 12:02 PM<br><b>To:</b> Teeter,
Chuck<br><b>Cc:</b> ipopt@list.coin-or.org<br><b>Subject:</b> Re: [Ipopt] Can
PARDISO 4.0 work with ipopt in windows?<br></font><br></div>
<div></div>Dear Teeter,<br><br>I have tried your step, but still crash when the
solver start (do not print any msg from the process)<br><br>Here is what i have
done.<br><br>1. First i download the( INTEL, 32-bit, icc/ifort 10.1 Windows)
(with MKL BLAS) Version of PARDISO.<br>It has 4
files(libpardiso400_INTEL_IA32.dll,libpardiso400_INTEL_IA32.lib,libiomp5md.dll,PARDISO_Template.zip)<br>2.
I named the "libpardiso400_INTEL_IA32.dll" to "libpardiso.dll". Put it next to
my exe. (my exe can detect the licence is wrong, if i input a invalid licence
file)<br>3. And do all the thing that you mentioned. and replace the old
Ipopt38.dll with the new one.<br><br>Where is my problem?<br>Also What i need to
do with the libpardiso400_INTEL_IA32.lib,libiomp5md.dll,PARDISO_Template.zip?
(if i just want to use the PARDISO with ipopt)<br>Thank you so much for your
help!<br><br>York<br><br>
<div class="gmail_quote">2010/2/18 Teeter, Chuck <span><<a rel="nofollow" ymailto="mailto:cteeter@suncor.com" target="_blank" href="mailto:cteeter@suncor.com">cteeter@suncor.com</a>></span><br>
<blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);">York,<br><br>PARDISO
does indeed work with IPOPT. I had an experience similar to<br>yours,
but this is how I fixed it:<br><br>1. At the top of the IPOPT source
file IpPardisoSolverInterface.cpp,<br>add the following preprocessor
definition if it does not already exist:<br><br>#ifndef
HAVE_PARDISO_NEWINTERFACE<br>#define HAVE_PARDISO_NEWINTERFACE
1<br>#endif<br><br><br>2. In the same source file, remove the F77_FUNC()
macro definition from<br>ALL references to functions PARDISOINIT() and
PARDISO(). For example,<br>instead of the original function
prototype:<br><br>void F77_FUNC(pardisoinit,PARDISOINIT) (void* PT, const
ipfint* MTYPE,<br>
const
ipfint*<br>SOLVER,<br>
ipfint* IPARM,<br>
double* DPARM,<br>
ipfint*
ERROR );<br><br><br>Use the following version instead:<br><br>void
PARDISOINIT(void* PT, const ipfint* MTYPE,<br>
const ipfint*<br>SOLVER,<br>
ipfint*
IPARM,<br>
double* DPARM,<br>
ipfint* ERROR );<br><br>I commented out the original references
and created the modified<br>versions to be used instead. Do the same for
all function calls as<br>well, and this should fix your problem after
rebuilding IPOPT.<br><br>One final point: If you haven't already done so,
remember to define<br>HAVE_PARDISO and HAVE_PARDISO_PARALLEL (if applicable)
in the IPOPT<br>source file IpoptConfig.h<br>
<div>
<div></div>
<div class="h5"><br><br><br><br>-----Original Message-----<br>From: <a rel="nofollow" ymailto="mailto:Olaf.Schenk@unibas.ch" target="_blank" href="mailto:Olaf.Schenk@unibas.ch">Olaf.Schenk@unibas.ch</a> [mailto:<a rel="nofollow" ymailto="mailto:Olaf.Schenk@unibas.ch" target="_blank" href="mailto:Olaf.Schenk@unibas.ch">Olaf.Schenk@unibas.ch</a>]<br>Sent:
Thursday, February 18, 2010 2:27 AM<br>To: York Tang<br>Cc: <a rel="nofollow" ymailto="mailto:ipopt@list.coin-or.org" target="_blank" href="mailto:ipopt@list.coin-or.org">ipopt@list.coin-or.org</a>; Teeter,
Chuck<br>Subject: Re: [Ipopt] Can PARDISO 4.0 work with ipopt in
windows?<br><br>York,<br><br>The PARDISO 4.0.0 DLL is working correctly with
IPOPT. I am copying<br>Chuck Teeter in this email since he is actually using
IPOPT and PARDISO<br>on Windows.<br><br>Olaf<br><br> Tang <<a rel="nofollow" ymailto="mailto:hkyork@gmail.com" target="_blank" href="mailto:hkyork@gmail.com">hkyork@gmail.com</a>>:<br><br>> Dear
all,<br>><br>> Recently i tried to download PARDISO dll from its
website, after i<br>> provided its license file , the program
crashed.<br>> Can PARDISO 4.0 work with ipopt in windows? the ipopt
documentation<br>> said no , but someone in the mail archive said
yes.<br>> Which one is correct? if yes, what i need to set, after i have
the dll<br><br>> and the license file.<br>> thank you<br>><br>>
York<br>><br><br><br><br>----------------------------------------------------------------<br>This
message was sent using IMP, the Internet Messaging
Program.<br><br><br></div></div>------------------------------------------------------------------------<br>This
email and its contents are private and confidential, for the sole use of the
addressees. If you are not an intended recipient, copying, forwarding or other
distribution of this email or its contents by any means is prohibited. If you
believe that you received this email in error please notify the original
sender immediately.<br><br>Petro-Canada is a Suncor Energy
business.<br><br>------------------------<br><br>Ce courriel et son contenu
sont privés et confidentiels, et sont destinés à l’usage exclusif des
destinataires. Si vous n'êtes pas le destinataire prévu, toute reproduction,
transfert ou autre forme de diffusion de ce courriel ou de son contenu par
quelque moyen que ce soit est interdit. Si vous croyez avoir reçu ce courriel
par erreur, veuillez en aviser l'expéditeur original
immédiatement.<br><br>Petro-Canada est une entreprise de Suncor
Énergie.<br><br></blockquote></div><br>
<div> </div>------------------------------------------------------------------------<br>This
email and its contents are private and confidential, for the sole use of the
addressees. If you are not an intended recipient, copying, forwarding or other
distribution of this email or its contents by any means is prohibited. If you
believe that you received this email in error please notify the original sender
immediately. <br><br>Petro-Canada is a Suncor Energy
business.<br><br>------------------------<br><br>Ce courriel et son contenu sont
privés et confidentiels, et sont destinés à l’usage exclusif des destinataires.
Si vous n'êtes pas le destinataire prévu, toute reproduction, transfert ou autre
forme de diffusion de ce courriel ou de son contenu par quelque moyen que ce
soit est interdit. Si vous croyez avoir reçu ce courriel par erreur, veuillez en
aviser l'expéditeur original immédiatement. <br><br>Petro-Canada est une
entreprise de Suncor Énergie.<br>
</div></div></div><br><div> </div>------------------------------------------------------------------------<br>This email and its contents are private and confidential, for the sole use of the addressees. If you are not an intended recipient, copying, forwarding or other distribution of this email or its contents by any means is prohibited. If you believe that you received this email in error please notify the original sender immediately. <br><br>Petro-Canada is a Suncor Energy business.<br><br>------------------------<br><br>Ce courriel et son contenu sont privés et confidentiels, et sont destinés à l’usage exclusif des destinataires. Si vous n'êtes pas le destinataire prévu, toute reproduction, transfert ou autre forme de diffusion de ce courriel ou de son contenu par quelque moyen que ce soit est interdit. Si vous croyez avoir reçu ce courriel par erreur, veuillez en aviser l'expéditeur original immédiatement. <br><br>Petro-Canada est
une entreprise de Suncor Énergie.<br><meta http-equiv="x-dns-prefetch-control" content="on"></div></div>
</div><br>
</body></html>