[Coin-ipopt] some problems about CUTEr interface
Zaiwen Wen
zw2109 at columbia.edu
Thu Feb 2 21:53:32 EST 2006
My configuration for Ipopt is:
./configure --with-blas="-L/opt/intel/mkl721/lib/32 -lmkl_lapack
-lmkl_ia32 -lguide -lpthread" \
CXXLIBS='-L/usr/lib/gcc/i386-redhat-linux/4.0.2 -lstdc++ -lm -lgcc '
F77=gfortran
My configuration for CUTEr is:
CUTEr.large.pc.lnx.g95
I have the following experience:
1. in File /Apps/CUTErInterface/CUTErInterface.f
----------------------------------------
C
C Call IPOPT
C
IPROBLEM = IPCREATE(N, X_L, X_U, M, G_L, G_U, NELE_JAC, NELE_HESS,
1 EV_F, EV_G, EV_GRAD_F, EV_JAC_G, EV_HESS)
---------------------------------------
should be:
--------------------------------------
IPROBLEM = IPCREATE(N, X_L, X_U, M, G_L, G_U, NELE_JAC, NELE_HESS,
1 IDX_STY, EV_F, EV_G, EV_GRAD_F, EV_JAC_G, EV_HESS)
one should also add definition:
integer IDX_STY
parameter (IDX_STY = 1 )
---------------------------------------
The definition of the function "IPCREATE" is in file:
/Interfaces/IpStdFInterface.c
2. According to my experience, if the fortran compiler for ipopt and CUTEr
are different, there will be some conflictions during compilation when
using "sdipo\ipo".
3.
Since the new script "ipo" defines
setenv SYSLIBS "`cat ${MYCUTER}/double/lib/ipo.liblist`",
it will probably cause some problems for the following lines in the
script "runpackage" in "CUTEr/mycuter/bin"
$LOAD $FFLAGS -o ${PAC}min ELFUN.o GROUP.o RANGE.o $EXTER $DRIVER \
$SUBR $ALT_LIB_PATH -L$LIBDIR $SYSLIBS -lcuter $BLAS $LAPACK
After these two lines modifed to:
$LOAD $FFLAGS -o ${PAC}min ELFUN.o GROUP.o RANGE.o $EXTER $DRIVER \
$SUBR $ALT_LIB_PATH -L$LIBDIR -lcuter $SYSLIBS
sdipo and ipo work perferctly.
Wish these information will be helpful.
Best Regards!
Zaiwen
More information about the Coin-ipopt
mailing list