[SCIP] About valgrind error in finding a primal solution

Stefan Vigerske svigerske at gams.com
Wed Jan 31 05:34:16 CET 2024


Hi,

try replacing primal by initguess in the call of 
SCIPsetNlpiInitialGuess() in heur_mpec.c:471.

It probably wasn't harmful, because source and destination didn't just 
overlap, but were equal here.

Stefan

On 30/01/2024 21:09, Bayramoglu, Selin wrote:
> Hello everyone,
> 
> I am solving an MINLP with SCIP 8.0.0 with default options. I ran my code in Valgrind and just before the first primal solution is found, I get the following Valgrind error:
> 
> ==72859== Source and destination overlap in memcpy(0xce52388, 0xce52388, 4696)
> ==72859==    at 0x4C320AD: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1119)
> ==72859==    by 0x4EF09C7: BMScopyMemory_call (memory.c:552)
> ==72859==    by 0x536D0CB: nlpiSetInitialGuessIpopt(Scip*, SCIP_Nlpi*, SCIP_NlpiProblem*, double*, double*, double*, double*) (nlpi_ipopt.cpp:1393)
> ==72859==    by 0x58A4A73: SCIPnlpiSetInitialGuess (nlpi.c:517)
> ==72859==    by 0x5943627: SCIPsetNlpiInitialGuess (scip_nlpi.c:356)
> ==72859==    by 0x52B0B35: heurExec (heur_mpec.c:471)
> ==72859==    by 0x52B15E6: heurExecMpec (heur_mpec.c:663)
> ==72859==    by 0x56FFC19: SCIPheurExec (heur.c:1303)
> ==72859==    by 0x59DF058: SCIPprimalHeuristics (solve.c:354)
> ==72859==    by 0x59ED9C4: solveNode (solve.c:4215)
> ==72859==    by 0x59F126E: SCIPsolveCIP (solve.c:4982)
> ==72859==    by 0x59773CE: SCIPsolve (scip_solve.c:2745)
> ==72859==    by 0x400DB9: runShell (cmain.c:50)
> ==72859==    by 0x400E6E: main (cmain.c:71)
> ==72859==
> 
> Please find attached the instance file. Many thanks for your help in advance.
> 
> Selin Bayramoglu
> 
> 
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpec-initguess-fix.patch
Type: text/x-patch
Size: 694 bytes
Desc: not available
URL: <http://listserv.zib.de/pipermail/scip/attachments/20240131/25a84887/attachment.bin>


More information about the Scip mailing list