<html xmlns:v="urn:schemas-microsoft-com:vml" 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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EstiloCorreo17
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Dear Juan,</p>
<p><br>
</p>
<p>You can get the current LP solution for a given variable with <span>SCIPvarGetLPSol(var)</span>, this will be accessible also in the
<span style="font-size: 10pt; font-family: "Arial", sans-serif, serif, "EmojiFont";">
</span><span style="font-size: 9.5pt; font-family: Consolas, serif, "EmojiFont"; color: rgb(111, 0, 138); --darkreader-inline-color: #d267ed;" data-darkreader-inline-color="">SCIP_DECL_CONSENFOLP</span> callback.</p>
<p><br>
</p>
<p>Hoping this helps.</p>
<p><br>
</p>
<p>Best regards,</p>
<p>Mathieu<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Scip <scip-bounces@zib.de> on behalf of Lastra Diaz Jose <j.lastra@lectra.com><br>
<b>Sent:</b> Thursday, April 13, 2023 4:56:50 PM<br>
<b>To:</b> scip@zib.de<br>
<b>Subject:</b> [SCIP] How to read the LP solution from a SCIP_DECL_CONSENFOLP</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span lang="ES" style="font-size:10.0pt;font-family:"Arial",sans-serif">Dear all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES" style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I am trying to implement a Branch-and-Check approach to solve efficiently a 0-1 ILP model. To achieve this goal, I have implemented a Constraint handler which needs to repair
an infeasible LP solution by inserting a cutting plane. I am checking and reporting the INFEASIBLE solutions by implementing the
</span><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A">SCIP_DECL_CONSCHECK function.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">My problem is that I do not know how to retrieve the current LP solution in the
</span><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A">SCIP_DECL_CONSENFOLP in order to insert a feasibility cut removing the combination of binary variables producing the infeasibility of the current LP solution.</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">My question is:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">How can I retrieve the current LP solution within the
</span><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A">SCIP_DECL_CONSENFOLP callback function?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A">Thank you in advance,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:#6F008A">Juan</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="0" style="width:16.0cm;border-collapse:collapse">
<tbody>
<tr style="height:78.5pt">
<td width="265" valign="top" style="width:7.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:78.5pt">
<p class="MsoNormal" style="line-height:200%"><span style="font-size:12.0pt;line-height:200%;mso-fareast-language:EN-GB"><img width="247" height="82" style="width:2.575in;height:.8583in" id="Imagen_x0020_1" alt="cid:image001.png@01D4B3E6.540B6570" src="cid:image001.png@01D96E28.EFB60150"></span><span lang="FR" style="font-size:12.0pt;line-height:200%;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
<td width="340" valign="top" style="width:9.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:78.5pt">
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB">Juan J. Lastra Díaz, PhD</span></b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#C00000;mso-fareast-language:EN-GB">Advanced Research department</span></b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#C00000;mso-fareast-language:EN-GB">t
</span></b><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB">:
</span></b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB">+34 917 88 88 65<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#C00000;mso-fareast-language:EN-GB">e</span></b><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB">
: </span></b><span style="color:black;mso-fareast-language:EN-GB"><a href="mailto:j.lastra@lectra.com"><span lang="ES" style="color:blue">j.lastra</span><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue">@lectra.com</span></a></span><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
<tr style="height:2.95pt">
<td width="265" valign="top" style="width:7.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:2.95pt">
<p class="MsoNormal" align="center" style="text-align:center"><span lang="ES"><a href="https://www.linkedin.com/company/8538/"><span lang="EN-GB" style="font-size:12.0pt;color:black;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="38" height="38" style="width:.4in;height:.4in" id="Imagen_x0020_2" alt="cid:image002.png@01D4B3E6.540B6570" src="cid:image002.png@01D96E28.EFB60150"></span></a><a href="https://www.facebook.com/LectraOfficial/"><span lang="EN-GB" style="font-size:12.0pt;color:black;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="38" height="38" style="width:.4in;height:.4in" id="Imagen_x0020_3" alt="cid:image003.png@01D4B3E6.540B6570" src="cid:image003.png@01D96E28.EFB60150"></span></a><a href="https://www.instagram.com/lectraofficial/"><span lang="EN-GB" style="font-size:12.0pt;color:black;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="38" height="38" style="width:.4in;height:.4in" id="Imagen_x0020_4" alt="cid:image004.png@01D4B3E6.540B6570" src="cid:image004.png@01D96E28.EFB60150"></span></a><a href="https://www.youtube.com/user/LectraTechChannel?hl=fr"><span lang="EN-GB" style="font-size:12.0pt;color:black;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="38" height="38" style="width:.4in;height:.4in" id="Imagen_x0020_5" alt="cid:image005.png@01D4B3E6.540B6570" src="cid:image005.png@01D96E28.EFB60150"></span></a><a href="https://blog.lectra.com/"><span lang="EN-GB" style="font-size:12.0pt;color:black;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="38" height="38" style="width:.4in;height:.4in" id="Imagen_x0020_6" alt="cid:image006.png@01D4B3E6.540B6570" src="cid:image006.png@01D96E28.EFB60150"></span></a></span><span lang="FR" style="font-size:12.0pt;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
<td width="340" valign="top" style="width:9.0cm;padding:0cm 5.4pt 0cm 5.4pt;height:2.95pt">
<p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB">C/ Vía de los Poblados, 1 - Edif. C, 1ª Plta.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Arial",sans-serif;color:black;mso-fareast-language:EN-GB">P.E. Alvento - 28033 Madrid - España<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><a href="http://www.lectra.com/"><b><span lang="FR" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">lectra.com</span></b></a></span><span lang="FR" style="font-size:12.0pt;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Arial",sans-serif;mso-fareast-language:FR">This e-mail and any attached files may contain confidential information which is intended exclusively for the recipient. If you are not the
specified recipient, you should delete this e-mail from your system immediately, and inform the sender without delay. Reading, distributing, copying, or any other unauthorized use of this e-mail and its attached files is strictly forbidden.
</span><span lang="FR" style="font-size:8.0pt;font-family:"Arial",sans-serif;mso-fareast-language:FR">Thank you for your comprehension.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Arial",sans-serif;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES" style="font-size:8.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-GB">Este correo electrónico y cualquier archivo adjunto pueden contener información confidencial que está destinada exclusivamente al destinatario.
Si usted no es el destinatario especificado, debe eliminar este correo electrónico de su sistema inmediatamente e informar al remitente sin demora. Está terminantemente prohibido leer, distribuir, copiar o cualquier otro uso no autorizado de este correo electrónico
y sus archivos adjuntos. Gracias por su comprensión.</span><span lang="ES" style="font-size:8.0pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="ES"><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>