[SCIP] CPLEX 12.7 and SCIP compile error

Marc Pfetsch pfetsch at mathematik.tu-darmstadt.de
Tue Nov 29 19:23:34 CET 2016



Just as an additional comment: I have now tried CPLEX 12.7 with SCIP,
and there are several cases where I run into problems (after fixing the
compile problems as indicated by Stefan). So just as a warning, it might
happen that the SCIP interface throws asserts (in debug mode) or you
might get wrong solutions.

I have tried to debug this, but the problem is not easy to find. For the
meantime, I would say that it makes sense to use older versions of
CPLEX, if possible.


On 28/11/16 18:53, Stefan Vigerske wrote:
> Hi,
> 
> you can just replace the lines
> 
>    retval = CPXgetrngval(lpi->cpxenv, lpi->cpxlp, lpi->rngarray,
> firstrow, lastrow);
>    if( retval != CPXERR_NO_RNGVAL ) /* ignore "No range values" error */
>    {
>       CHECK_ZERO( lpi->messagehdlr, retval );
>    }
>    else
>       BMSclearMemoryArray(lpi->rngarray, lastrow-firstrow+1);
> 
> by
> 
> CHECK_ZERO( lpi->messagehdlr, CPXgetrngval(lpi->cpxenv, lpi->cpxlp,
> lpi->rngarray, firstrow, lastrow) );
> 
> Stefan
> 
> On 11/27/2016 05:46 PM, M. Farham wrote:
>> Hi
>> With CPLEX v12.7, I get the following error in 'make LPS=cpx
>> ZIMPL=false'.
>>
>> -> compiling obj/O.linux.x86_64.gnu.opt/lib/lpi/lpi_cpx.o
>> src/lpi/lpi_cpx.c: In function ‘SCIPlpiGetRows’:
>> src/lpi/lpi_cpx.c:1856:22: error: ‘CPXERR_NO_RNGVAL’ undeclared (first
>> use
>> in this function)
>>        if( retcode != CPXERR_NO_RNGVAL ) /* ignore "No range values"
>> error
>> */
>> Makefile:989: recipe for target
>> 'obj/O.linux.x86_64.gnu.opt/lib/lpi/lpi_cpx.o' failed
>>
>> According to the release notes for CPLEX 12.7.0 (
>> https://www.ibm.com/support/knowledgecenter/SSSA5P_12.7.0/
>> ilog.odms.cplex.help/CPLEX/ReleaseNotes/topics/releasenotes127/removed.html
>>
>> ), they have removed some of the CPLEX elements including
>> CPXERR_NO_RNGVAL
>> error code.
>>
>> Regards,
>>
>>
>>
>> _______________________________________________
>> Scip mailing list
>> Scip at zib.de
>> http://listserv.zib.de/mailman/listinfo/scip
>>
> 
> 


More information about the Scip mailing list