<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear SCIP communit, <div><br></div><div>I'm coding a Branch & Price with a branching rule quite similar to the Ryan-Foster rule. So, when a branching is performed, some variables need to be removed from the created nodes (i.e., fixed to 0).</div><div><br></div><div>As a first approach (approach A), I had an ObjEventhdlr which is called when a node is created. It checks every existing variable and if it needs to be removed the variable is fixed to 0. I do this by calling SCIPchgVarUb(...) within the scip_exec(...) method of my ObjEventhdlr.</div><div><br></div><div>This works fine, but I noted that it shouldn't be necessary to iterate through EVERY existing variable each time I branch, since the number of variables to be fixed is usually just a small portion of the existing ones. Moreover, in my code, when I perform a branching, I already have access to the (small) list of variables which should be fixed. Hence, I tried to fix them at the moment of the node creation (within the scip_execlp(...) method of my ObjBranchrule object) by using SCIPchgVarUbNode(...), and forgetting about my ObjEventhdlr.<br></div><div><br></div><div>This new approach (approach B) seems to work fine also and it is usually faster than the first one (of course, that was the goal!), but I have found some funny differences in some cases. For instance, sometimes the rounding heuristic in approach A finds better solutions than the one in approach B. This allows approach A to end the solving process faster than approach B, although being "slower" for the first part of the process. </div><div><br></div><div>Any ideas on what's causing this behavior? I would think that the solving process should be the same for both approaches, as I am just omitting to iterate through a bunch of variables which I won't change anyway. Does SCIPchgVarUb(...) behave differently from SCIPchgVarUbNode(...) in some way?</div><div><br></div><div>Thanks in advance!</div><div>Best regards to all</div><div>Diego</div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
        <tr>
      <td style="width:55px;padding-top:18px"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Libre de virus. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avg.com</a>              </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>