[SCIP] About valgrind error in finding a primal solution

Bayramoglu, Selin sbayramoglu3 at gatech.edu
Wed Jan 31 21:11:55 CET 2024


Thank you, this resolved the Valgrind error!

Selin Bayramoglu

From: Stefan Vigerske <svigerske at gams.com>
Date: Tuesday, 30 January 2024 at 23:34
To: Bayramoglu, Selin <sbayramoglu3 at gatech.edu>, scip at zib.de <scip at zib.de>
Subject: Re: [SCIP] About valgrind error in finding a primal solution
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 --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20240131/95272953/attachment.html>


More information about the Scip mailing list