<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Dear James,<br>
      <br>
      you are only allowed to call SCIPaddPricedVar() during pricing,
      but you could add the variables just via SCIPaddVar(). You could
      even set the initial flag of the variable to FALSE so that SCIP
      will automatically price it into the LP (only) if needed.<br>
      <br>
      Best,<br>
      Gerald<br>
      <br>
      On 18.09.2015 11:28, James Cussens wrote:<br>
    </div>
    <blockquote
cite="mid:CALQgqO22-AisA4UEX8H8yHJtLXpv1WgejcsGsj+WempS_J2z_Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>I have an application where I generate cuts which include
          variables which do not exist yet. At present, I follow the
          normal two-stage approach: the cut is generated without the
          missing variables, and later a pricer deduces that they are
          worth adding and my application ensures they are added to the
          previously generated cuts.</div>
        <div><br>
        </div>
        <div>My pricer only ever generates variables which appear in the
          cuts I generate, so I suspect it will be more efficient to
          generate the missing variables *as soon as my cutting plane
          algorithm (CPA) has generated the cut*. That is, the idea is
          to create them just before adding the cut (which would then
          contain all its variables). My CPA generates (a representation
          of) the cut with all its variables, including those not
          already created (so it does a sort of pricing), so we have
          these variables immediately to hand at the point of adding the
          cut. It is true that, since we are generating variables
          unconditionally, we may end up with more variables than if we
          priced them in, but my guess is that we won't get too many
          unnecessary variables created. </div>
        <div><br>
        </div>
        <div>The CPA is implemented as the separator for a certain
          constraint handler. So presumably I could just add suitable
          calls to SCIPaddPricedVar in the separator callback, just
          before creating and adding the row (ie cut).</div>
        <div><br>
        </div>
        <div>Does anyone see a problem with doing this? It just seems an
          odd approach ....</div>
        <div><br>
        </div>
        <div>James</div>
        <div>
          <div><br>
          </div>
          -- <br>
          <div>James Cussens<br>
            Dept of Computer Science &<br>
            York Centre for Complex Systems Analysis<br>
            Room 326, The Hub, Deramore Lane            Tel    <a
              moz-do-not-send="true"
              href="tel:%2B44%20%280%291904%20325371"
              value="+441904325371" target="_blank">+44 (0)1904 325371</a><br>
            University of York                                      
             Fax  <a moz-do-not-send="true"
              href="tel:%2B44%20%280%291904%20500159"
              value="+441904500159" target="_blank">+44 (0)1904 500159</a><br>
            York YO10 5GE, UK                               <a
              moz-do-not-send="true"
              href="http://www.cs.york.ac.uk/%7Ejc" target="_blank"><a class="moz-txt-link-freetext" href="http://www.cs.york.ac.uk/~jc">http://www.cs.york.ac.uk/~jc</a></a><br>
            <a moz-do-not-send="true"
              href="http://www.york.ac.uk/docs/disclaimer/email.htm"
              target="_blank">http://www.york.ac.uk/docs/disclaimer/email.htm</a></div>
        </div>
      </div>
      <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="http://listserv.zib.de/mailman/listinfo/scip">http://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>