<div dir="ltr"><div>User cuts are controlled more precisely in SCIP than in some other systems. When calling `SCIPcreateConsLinear` to add an LP constraint, there are a number of flags that can be set, that regulate the behavior of SCIP, and make it act like a necessary constraint, a user cut, a lazy constraint, or a so-called "optimality constraint". You can glance at the extended list of arguments here: <a href="https://scipopt.org/doc/html/cons__linear_8c_source.php#l17832">https://scipopt.org/doc/html/cons__linear_8c_source.php#l17832</a> The flags range from "initial" to "stickingatnode".</div><div><br></div><div>The simpler function, `SCIPcreateConsBasicLinear`, you can see at <a href="https://scipopt.org/doc/html/cons__linear_8c_source.php#l18021">https://scipopt.org/doc/html/cons__linear_8c_source.php#l18021</a> -- and it provides default values for all those flags, as {TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE}.</div><div><br></div><div>For adding user cuts, the recommended approach is to change `initial` to false, `enforce` and `check` to false, and `removable' to true, so that it looks like {FALSE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE}. These are how the flags are set in reader_lp.c, at least: <a href="https://scipopt.org/doc/html/reader__lp_8c_source.php#l01773">https://scipopt.org/doc/html/reader__lp_8c_source.php#l01773</a></div><div><br></div><div>The documentation can explain exactly what flipping those four flags does, better than I can. :) You should definitely set the `check` to false and `removable` to true, but I think `initial` and `enforce` could each go either way -- you might want to try it both ways and see which gives you better performance.<br></div><div><br></div><div>Best,</div><div>Alex</div><div>_______________________________<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Alexander Meiburg, PhD</div><div>University of California, Santa Barbara<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 20, 2023 at 5:23 AM Lastra Diaz Jose <<a href="mailto:j.lastra@lectra.com">j.lastra@lectra.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-7641710115109958428">





<div lang="EN-GB">
<div class="m_8508284690472033009WordSection1">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif" lang="ES">Dear all,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif" lang="ES"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif">I wonder if SCIP implements valid user cuts. They are valid inequalities which the user inserts into the model before solving it, and the solver decides when and how use them
 to cut off LP solutions.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif">Juan<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<table style="width:16cm;border-collapse:collapse" width="0" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr style="height:78.5pt">
<td style="width:7cm;padding:0cm 5.4pt;height:78.5pt" width="265" valign="top">
<p class="MsoNormal" style="line-height:200%"><span style="font-size:12pt;line-height:200%"><img style="width: 2.575in; height: 0.8583in;" id="m_8508284690472033009Imagen_x0020_1" src="cid:1897540f09c4cff311" alt="cid:image001.png@01D4B3E6.540B6570" width="247" height="82"></span><span style="font-size:12pt;line-height:200%" lang="FR"><u></u><u></u></span></p>
</td>
<td style="width:9cm;padding:0cm 5.4pt;height:78.5pt" width="340" valign="top">
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:"Arial",sans-serif;color:black" lang="FR">Juan J. Lastra Díaz, PhD</span></b><span style="font-size:10pt;font-family:"Arial",sans-serif;color:black" lang="FR"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(192,0,0)" lang="FR">Advanced Research department</span></b><span style="font-size:10pt;font-family:"Arial",sans-serif;color:black" lang="FR"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Arial",sans-serif;color:black" lang="FR"> <u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(192,0,0)" lang="FR">t
</span></b><b><span style="font-size:10pt;font-family:"Arial",sans-serif;color:black" lang="FR">:  
</span></b><span style="font-size:10pt;font-family:"Arial",sans-serif;color:black" lang="FR">+34 917 88 88 65<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:"Arial",sans-serif;color:rgb(192,0,0)" lang="FR">e</span></b><b><span style="font-size:10pt;font-family:"Arial",sans-serif;color:black" lang="FR">
 :   </span></b><span style="color:black"><a href="mailto:j.lastra@lectra.com" target="_blank"><span style="color:blue" lang="ES">j.lastra</span><span style="font-size:10pt;font-family:"Arial",sans-serif;color:blue" lang="FR">@lectra.com</span></a></span><span style="font-size:10pt;font-family:"Arial",sans-serif;color:black" lang="FR"><u></u><u></u></span></p>
</td>
</tr>
<tr style="height:2.95pt">
<td style="width:7cm;padding:0cm 5.4pt;height:2.95pt" width="265" valign="top">
<p class="MsoNormal" style="text-align:center" align="center"><span lang="ES"><a href="https://www.linkedin.com/company/8538/" target="_blank"><span style="font-size:12pt;color:black;text-decoration:none" lang="EN-GB"><img style="width: 0.4in; height: 0.4in;" id="m_8508284690472033009Imagen_x0020_2" src="cid:1897540f09c5b16b22" alt="cid:image002.png@01D4B3E6.540B6570" width="38" height="38" border="0"></span></a><a href="https://www.facebook.com/LectraOfficial/" target="_blank"><span style="font-size:12pt;color:black;text-decoration:none" lang="EN-GB"><img style="width: 0.4in; height: 0.4in;" id="m_8508284690472033009Imagen_x0020_3" src="cid:1897540f09c692e333" alt="cid:image003.png@01D4B3E6.540B6570" width="38" height="38" border="0"></span></a><a href="https://www.instagram.com/lectraofficial/" target="_blank"><span style="font-size:12pt;color:black;text-decoration:none" lang="EN-GB"><img style="width: 0.4in; height: 0.4in;" id="m_8508284690472033009Imagen_x0020_4" src="cid:1897540f09c7745b44" alt="cid:image004.png@01D4B3E6.540B6570" width="38" height="38" border="0"></span></a><a href="https://www.youtube.com/user/LectraTechChannel?hl=fr" target="_blank"><span style="font-size:12pt;color:black;text-decoration:none" lang="EN-GB"><img style="width: 0.4in; height: 0.4in;" id="m_8508284690472033009Imagen_x0020_5" src="cid:1897540f09d855d355" alt="cid:image005.png@01D4B3E6.540B6570" width="38" height="38" border="0"></span></a><a href="https://blog.lectra.com/" target="_blank"><span style="font-size:12pt;color:black;text-decoration:none" lang="EN-GB"><img style="width: 0.4in; height: 0.4in;" id="m_8508284690472033009Imagen_x0020_6" src="cid:1897540f09d9374b66" alt="cid:image006.png@01D4B3E6.540B6570" width="38" height="38" border="0"></span></a></span><span style="font-size:12pt" lang="FR"><u></u><u></u></span></p>
</td>
<td style="width:9cm;padding:0cm 5.4pt;height:2.95pt" width="340" valign="top">
<p class="MsoNormal"><span style="font-size:8pt;font-family:"Arial",sans-serif;color:black" lang="FR">C/ Vía de los Poblados, 1 - Edif. C, 1ª Plta.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8pt;font-family:"Arial",sans-serif;color:black" lang="FR">P.E. Alvento - 28033 Madrid - España<u></u><u></u></span></p>
<p class="MsoNormal"><span><a href="http://www.lectra.com/" target="_blank"><b><span style="font-size:10pt;font-family:"Arial",sans-serif;color:black" lang="FR">lectra.com</span></b></a></span><span style="font-size:12pt" lang="FR"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="FR"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:8pt;font-family:"Arial",sans-serif" lang="EN-US">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 style="font-size:8pt;font-family:"Arial",sans-serif" lang="FR">Thank you for your comprehension.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8pt;font-family:"Arial",sans-serif" lang="FR"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:8pt;font-family:"Arial",sans-serif" lang="ES">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 style="font-size:8pt;font-family:"Arial",sans-serif" lang="ES"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="ES"><u></u> <u></u></span></p>
</div>
</div>

_______________________________________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
<a href="https://listserv.zib.de/mailman/listinfo/scip" rel="noreferrer" target="_blank">https://listserv.zib.de/mailman/listinfo/scip</a><br>
</div></blockquote></div>