[Ipopt] Can PARDISO 4.0 work with ipopt in windows?
Teeter, Chuck
cteeter at Suncor.com
Thu Feb 18 09:57:16 EST 2010
York,
PARDISO does indeed work with IPOPT. I had an experience similar to
yours, but this is how I fixed it:
1. At the top of the IPOPT source file IpPardisoSolverInterface.cpp,
add the following preprocessor definition if it does not already exist:
#ifndef HAVE_PARDISO_NEWINTERFACE
#define HAVE_PARDISO_NEWINTERFACE 1
#endif
2. In the same source file, remove the F77_FUNC() macro definition from
ALL references to functions PARDISOINIT() and PARDISO(). For example,
instead of the original function prototype:
void F77_FUNC(pardisoinit,PARDISOINIT) (void* PT, const ipfint* MTYPE,
const ipfint*
SOLVER,
ipfint* IPARM,
double* DPARM,
ipfint* ERROR );
Use the following version instead:
void PARDISOINIT(void* PT, const ipfint* MTYPE,
const ipfint*
SOLVER,
ipfint* IPARM,
double* DPARM,
ipfint* ERROR );
I commented out the original references and created the modified
versions to be used instead. Do the same for all function calls as
well, and this should fix your problem after rebuilding IPOPT.
One final point: If you haven't already done so, remember to define
HAVE_PARDISO and HAVE_PARDISO_PARALLEL (if applicable) in the IPOPT
source file IpoptConfig.h
-----Original Message-----
From: Olaf.Schenk at unibas.ch [mailto:Olaf.Schenk at unibas.ch]
Sent: Thursday, February 18, 2010 2:27 AM
To: York Tang
Cc: ipopt at list.coin-or.org; Teeter, Chuck
Subject: Re: [Ipopt] Can PARDISO 4.0 work with ipopt in windows?
York,
The PARDISO 4.0.0 DLL is working correctly with IPOPT. I am copying
Chuck Teeter in this email since he is actually using IPOPT and PARDISO
on Windows.
Olaf
Tang <hkyork at gmail.com>:
> Dear all,
>
> Recently i tried to download PARDISO dll from its website, after i
> provided its license file , the program crashed.
> Can PARDISO 4.0 work with ipopt in windows? the ipopt documentation
> said no , but someone in the mail archive said yes.
> Which one is correct? if yes, what i need to set, after i have the dll
> and the license file.
> thank you
>
> York
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
------------------------------------------------------------------------
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.
Petro-Canada is a Suncor Energy business.
------------------------
Ce courriel et son contenu sont privés et confidentiels, et sont destinés à lusage 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.
Petro-Canada est une entreprise de Suncor Énergie.
More information about the Ipopt
mailing list