<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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>Hi Gregor,</p>
<p><br>
</p>
<p>Thank you for your reply. It works now. Would it be possible to add the deleted constraints again to scip? Ideally, when a node is entered again, I would like to enable the constraint instead of creating a new one. My code does not run yet so I haven't had
chance to test it. </p>
<p><br>
</p>
<p>I also have another problem with the child nodes. So for branching, I created a linear branching constraint and a marker constraint from my constraints handler and added them into a child node (sticking at node is true). However, in subscip when I check
in which branch I am at using <span>SCIPconsIsActive, I get true even for the constraints that were not created in this node. Do you have any idea where things might go wrong?</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Lan</span></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 Gregor Hendel <hendel@zib.de><br>
<b>Sent:</b> 09 October 2019 10:32:17<br>
<b>To:</b> scip@zib.de<br>
<b>Subject:</b> Re: [SCIP] Using SCIPdisableCons in problem creation stage</font>
<div> </div>
</div>
<div>Good morning Lan,<br>
<br>
how about using SCIPdelCons() instead of SCIPdisableCons()?<br>
<br>
Let me know if that works for you,<br>
Gregor<br>
<br>
<div class="moz-cite-prefix">Am 09.10.19 um 01:03 schrieb Ngô Lan:<br>
</div>
<blockquote type="cite" cite="mid:0976bd261e9e485ca86dc452ba46b70a@aalto.fi"><style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt;
color: rgb(0, 0, 0); font-family: Calibri, Helvetica,
sans-serif, EmojiFont, "Apple Color Emoji",
"Segoe UI Emoji", NotoColorEmoji, "Segoe UI
Symbol", "Android Emoji", EmojiSymbols;">
<p>Hi all,</p>
<p><br>
</p>
<p>I am solving a project scheduling problem using branch-price-cut and I am having an issue with <span>SCIPdisableCons function. So after each pricing iteration, I will not release the subscip but only free the transformed problem using SCIPfreetransform and
modify the objective function of the subscip in the next iteration. During branching, in CONSACTIVE, I will create an additional constraint for the subproblem depending on the branching decision and in CONSDEACTIVE, I will disable the related constraint using <span>SCIPdisableCons.
However, I got the error: <span>cannot call method <SCIPdisableCons> in problem creation stage. Do you know another function that can work? Or what should I do differently?</span></span></span></p>
<p><span><span><span><br>
</span></span></span></p>
<p><span><span><span>Thank you for your time,</span></span></span></p>
<p><br>
</p>
<p>Best,</p>
<p>Lan</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Scip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Scip@zib.de">Scip@zib.de</a>
<a class="moz-txt-link-freetext" href="https://listserv.zib.de/mailman/listinfo/scip">https://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
</blockquote>
<br>
</div>
</body>
</html>