<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Dear Myroslav,<br>
      <br>
      after looking into SCIPpriceLoop of scip/solve.c, I think that it
      should work fine to add your constraints after generating
      variables in your pricer plug-in. After the executing method of
      each pricer is called, SCIP is calling SCIPinitConssLP, which
      makes sure that all initial constraints have been added to the
      LP.  </tt><tt><tt>So, probably, you want to mark your (linear)
        constraints to be initial and in case you want to add
        dynamically other variables to them, you also need to set the
        modifiable flag to TRUE.<br>
        <br>
      </tt>Another solution might be to add a constraint handler that
      keeps track of the generated variables and then adds the required
      constraints during enforcement.<br>
      <br>
      Best,<br>
      Benny</tt><br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 09/04/2018 07:35 PM, myroslav wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:6a6f7e49-5e90-ae95-8404-3ed007733423@uni-wuerzburg.de">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <p>Dear SCIP community, <br>
      </p>
      <p><br>
      </p>
      <p>I am implementing a branch and price algorithm for a problem.
        When I price my variables I also need to add constraints where
        they appear. I came across this issue</p>
      <p><a class="moz-txt-link-freetext"
          href="http://listserv.zib.de/pipermail/scip/2012-April/000935.html"
          moz-do-not-send="true">http://listserv.zib.de/pipermail/scip/2012-April/000935.html</a></p>
      <p>but  I did not find a solution. Does scip support adding
        constraints in a pricer and what would be the proper way of
        doing this, which flags of SCIPaddConsLinear should I watch for?</p>
      <p><br>
      </p>
      <p>Thanks,</p>
      <p>Myroslav<br>
      </p>
      <p><br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
  </body>
</html>