[SCIP] Problem in nlpi_ipopt.cpp

Stefan Vigerske stefan at math.hu-berlin.de
Mon Apr 18 14:15:10 CEST 2016


Hi,

they are ok where they are, but a (slightly different) implementation of 
them is are missing in the #else case, indeed.
However, the #else case is only used for Ipopt < 3.10, for which we 
probably have dropped support at other places already.
I think it would be ok to just eliminate the #ifndef and the part 
between #else and #endif.

Stefan

On 04/18/2016 01:22 PM, See Chuen Teck wrote:
> Dear scip,
>
> Spotted a possible problem in nlpi_ipopt.cpp. The below is an extract of
> nlpi_ipopt.cpp. Notice that SCIPsolveLinearProb3() &
> SCIPsolveLinearProb() does not exist when F77_FUNC is defined. Perhaps
> both function should be out of #ifndef F77_FUNC - #else - #endif. They
> are ok in nlpi_dummy.cpp
>
> --------------
>
> #ifndef F77_FUNC
> #include "IpLapack.hpp"
>
> SCIP_RETCODE LapackDsyev()
> static SCIP_RETCODE SCIPsolveLinearProb3()
> SCIP_RETCODE SCIPsolveLinearProb()
>
> #else
>
> extern "C" {
>     /** LAPACK Fortran subroutine DSYEV */
>     void F77_FUNC(dsyev,DSYEV)()
> }
>
> SCIP_RETCODE LapackDsyev( )
> #endif
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
>


-- 
http://www.gams.com/~stefan


More information about the Scip mailing list