<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="en-TR" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="TR" style="font-size:11.0pt">Thank you, this resolved the Valgrind error!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="TR" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="TR" style="font-size:11.0pt">Selin Bayramoglu<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="TR" style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt">
<b><span style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">From:
</span></b><span style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">Stefan Vigerske <svigerske@gams.com><br>
<b>Date: </b>Tuesday, 30 January 2024 at 23:34<br>
<b>To: </b>Bayramoglu, Selin <sbayramoglu3@gatech.edu>, scip@zib.de <scip@zib.de><br>
<b>Subject: </b>Re: [SCIP] About valgrind error in finding a primal solution<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:11.0pt">Hi,<br>
<br>
try replacing primal by initguess in the call of <br>
SCIPsetNlpiInitialGuess() in heur_mpec.c:471.<br>
<br>
It probably wasn't harmful, because source and destination didn't just <br>
overlap, but were equal here.<br>
<br>
Stefan<br>
<br>
On 30/01/2024 21:09, Bayramoglu, Selin wrote:<br>
> Hello everyone,<br>
> <br>
> 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:<br>
> <br>
> ==72859== Source and destination overlap in memcpy(0xce52388, 0xce52388, 4696)<br>
> ==72859== at 0x4C320AD: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:1119)<br>
> ==72859== by 0x4EF09C7: BMScopyMemory_call (memory.c:552)<br>
> ==72859== by 0x536D0CB: nlpiSetInitialGuessIpopt(Scip*, SCIP_Nlpi*, SCIP_NlpiProblem*, double*, double*, double*, double*) (nlpi_ipopt.cpp:1393)<br>
> ==72859== by 0x58A4A73: SCIPnlpiSetInitialGuess (nlpi.c:517)<br>
> ==72859== by 0x5943627: SCIPsetNlpiInitialGuess (scip_nlpi.c:356)<br>
> ==72859== by 0x52B0B35: heurExec (heur_mpec.c:471)<br>
> ==72859== by 0x52B15E6: heurExecMpec (heur_mpec.c:663)<br>
> ==72859== by 0x56FFC19: SCIPheurExec (heur.c:1303)<br>
> ==72859== by 0x59DF058: SCIPprimalHeuristics (solve.c:354)<br>
> ==72859== by 0x59ED9C4: solveNode (solve.c:4215)<br>
> ==72859== by 0x59F126E: SCIPsolveCIP (solve.c:4982)<br>
> ==72859== by 0x59773CE: SCIPsolve (scip_solve.c:2745)<br>
> ==72859== by 0x400DB9: runShell (cmain.c:50)<br>
> ==72859== by 0x400E6E: main (cmain.c:71)<br>
> ==72859==<br>
> <br>
> Please find attached the instance file. Many thanks for your help in advance.<br>
> <br>
> Selin Bayramoglu<br>
> <br>
> <br>
> _______________________________________________<br>
> Scip mailing list<br>
> Scip@zib.de<br>
> <a href="https://listserv.zib.de/mailman/listinfo/scip">https://listserv.zib.de/mailman/listinfo/scip</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>