[Scip] printsol problem

Stefan Vigerske stefan at math.hu-berlin.de
Sat May 4 14:44:51 MEST 2013


Hi,

the assertion tells you that you cannot print the current LP solution if 
the LP has not been solved.

You may want to check whether SCIPgetLPSolstat(scip) == 
SCIP_LPSOLSTAT_OPTIMAL before attempting to print the LP solution.

Stefan

On 05/03/2013 01:58 PM, James Cussens wrote:
> I'm calling SCIPprintSol like this:
> SCIP_CALL( SCIPprintSol(scip,NULL,NULL,FALSE) );
>
> while in stage:
> SCIP_STAGE_SOLVING
>
> which is apparently legitimate. But I'm getting an assert error (in debug mode):
> The following gdb backtrace excerpt might be useful:
>
> STARTS
> gobnilp: src/scip/sol.c:438: SCIPsolCreateLPSol: Assertion
> `SCIPlpIsSolved(lp)' failed.
>
> Program received signal SIGABRT, Aborted.
> 0x00007ffff64cba25 in raise () from /lib64/libc.so.6
> (gdb) backtrace
> #0  0x00007ffff64cba25 in raise () from /lib64/libc.so.6
> #1  0x00007ffff64cd1d8 in abort () from /lib64/libc.so.6
> #2  0x00007ffff64c47b2 in __assert_fail_base () from /lib64/libc.so.6
> #3  0x00007ffff64c4862 in __assert_fail () from /lib64/libc.so.6
> #4  0x00000000006aaf94 in SCIPsolCreateLPSol (sol=0x7fffffffcb90,
> blkmem=0x1e2cfa0, set=0x1e2efc0, stat=0x1fc4550, prob=0x2129d10,
> primal=0x32857c0, tree=0x2cf1880, lp=0x25bb5b0, heur=0x0) at
> src/scip/sol.c:438
> #5  0x00000000006ab40b in SCIPsolCreateCurrentSol (sol=0x7fffffffcb90,
> blkmem=0x1e2cfa0, set=0x1e2efc0, stat=0x1fc4550, prob=0x2129d10,
> primal=0x32857c0, tree=0x2cf1880, lp=0x25bb5b0, heur=0x0)
>      at src/scip/sol.c:527
> #6  0x0000000000678946 in SCIPprintSol (scip=0x1e2a010, sol=0x0,
> file=0x0, printzeros=0) at src/scip/scip.c:29114
> ENDS
>
> --
> James Cussens
> Dept of Computer Science &
> York Centre for Complex Systems Analysis
> Room 326, The Hub, Deramore Lane            Tel    +44 (0)1904 325371
> University of York                                        Fax  +44
> (0)1904 500159
> York YO10 5GE, UK                               http://www.cs.york.ac.uk/~jc
> http://www.york.ac.uk/docs/disclaimer/email.htm
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
>



More information about the Scip mailing list