<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body>
    Hi Natalia,<br>
    <br>
    usually calling SCIPfreeTransform() is absolutely fine whenever you
    want to change and resolve your problem. But when you use the
    reoptimization feature you need to call SCIPfreeReoptSolve() and
    afterwards SCIPchgReoptObjective() to install the new objective
    function. This preserves some needed internal data and should fix
    you assertion failure.<br>
    <br>
    Cheers,<br>
    Jakob<br>
    <br>
    <div class="moz-cite-prefix">Am 02.05.2017 um 19:04 schrieb Natalia
      Perina:<br>
    </div>
    <blockquote
cite="mid:CAJHeMXnHSbgO3=guV6VZCyXRtfPFSixp64cPxHJ8u541ZTVgWQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Jakob, 
        <div><br>
        </div>
        <div>Thanks for your response. When I enable reoptimization - I
          am now getting a fail when I try to solve that says: </div>
        <div>
          <p class="gmail-p1"><span class="gmail-s1">Assertion failed:
              (SCIPhashmapExists(reopt->glblb, (void*)vars[i])),
              function SCIPreoptInstallBounds, file src/scip/reopt.c,
              line 8175.</span></p>
          <p class="gmail-p1"><span class="gmail-s1"><br>
            </span></p>
          <p class="gmail-p1"><span class="gmail-s1">I am enabling
              reoptimization, setting objectives and constraints,
              solving, then applying the FreeTransform function, then
              changing the objective value of some constraints, then
              solving again. Is this correct?/Any idea why the assert
              would fail? </span></p>
          <p class="gmail-p1"><span class="gmail-s1"><br>
            </span></p>
          <p class="gmail-p1"><span class="gmail-s1">Thanks, </span></p>
          <p class="gmail-p1"><span class="gmail-s1">Natalia </span></p>
          <p class="gmail-p1"><span class="gmail-s1"><br>
            </span></p>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, May 2, 2017 at 5:28 AM, Jakob
          Witzig <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:witzig@zib.de" target="_blank">witzig@zib.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div> Hi Natalia,<br>
              <br>
              when reoptimization is enabled SCIP keeps track of all
              solutions found so far over all reoptimization-runs. SCIP
              will also check all these solutions w.r.t to the new
              objective function. Thus, there is no need that you keep
              track of the solutions found so far by your self.
              Moreover, I would not recommend to forbid these solutions
              explicitly. Adding constraints/cuts that separate these
              solutions will lead to a slow down. <br>
              <br>
              Cheers,<br>
              Jakob
              <div>
                <div class="h5"><br>
                  <br>
                  <div class="m_1390899213313257346moz-cite-prefix">Am
                    30.04.2017 um 06:51 schrieb Natalia Perina:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hi there, 
                      <div><br>
                      </div>
                      <div>I am trying to use reoptimization on a
                        subscip in my pricer. Is there a way to find one
                        solution, change the objective function, and
                        store/negate the solution to ensure that the
                        same solution is not found and used in
                        subsequent rounds of pricing/reoptimization? </div>
                      <div><br>
                      </div>
                      <div>Thanks so much - all help appreciated
                        greatly! </div>
                      <div>Natali </div>
                      <div><br clear="all">
                        <div><br>
                        </div>
                        -- <br>
                        <div
                          class="m_1390899213313257346gmail_signature"
                          data-smartmail="gmail_signature">
                          <div dir="ltr">
                            <div>Natalia Perina</div>
                            <div>
                              <div>Princeton University<font
                                  color="#999999"> l </font>2017</div>
                              <div><a moz-do-not-send="true"
                                  href="mailto:nperina@princeton.edu"
                                  target="_blank">nperina@princeton.edu</a></div>
                            </div>
                            <div><a moz-do-not-send="true"
                                href="tel:%28202%29%20360-9536"
                                value="+12023609536" target="_blank">202
                                360 9536</a> </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <fieldset
                      class="m_1390899213313257346mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <pre>______________________________<wbr>_________________
Scip mailing list
<a moz-do-not-send="true" class="m_1390899213313257346moz-txt-link-abbreviated" href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a>
<a moz-do-not-send="true" class="m_1390899213313257346moz-txt-link-freetext" href="https://listserv.zib.de/mailman/listinfo/scip" target="_blank">https://listserv.zib.de/<wbr>mailman/listinfo/scip</a>
</pre>
    </blockquote>
    

    <pre class="m_1390899213313257346moz-signature" cols="72">-- 
Jakob Witzig

Zuse Institute Berlin (ZIB)

Division Mathematical Optimization and Scientific Information
Research Group Mathematical Optimization Methods

Takustrasse 7
14195 Berlin

Tel. : <a moz-do-not-send="true" href="tel:+49%2030%2084185416" value="+493084185416" target="_blank">+49 (0)30 84185-416</a>
Fax  : <a moz-do-not-send="true" href="tel:+49%2030%2084185269" value="+493084185269" target="_blank">+49 (0)30 84185-269</a>
email: <a moz-do-not-send="true" class="m_1390899213313257346moz-txt-link-abbreviated" href="mailto:witzig@zib.de" target="_blank">witzig@zib.de</a></pre>
  </div>

</blockquote></div>

<div>
</div>-- 
<div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Natalia Perina</div><div><div>Princeton University<font color="#999999"> l </font>2017</div><div><a moz-do-not-send="true" href="mailto:nperina@princeton.edu" target="_blank">nperina@princeton.edu</a></div></div><div>202 360 9536 </div></div></div>
</div>



</blockquote>
<pre class="moz-signature" cols="72">-- 
Jakob Witzig

Zuse Institute Berlin (ZIB)

Division Mathematical Optimization and Scientific Information
Research Group Mathematical Optimization Methods

Takustrasse 7
14195 Berlin

Tel. : +49 (0)30 84185-416
Fax  : +49 (0)30 84185-269
email: <a class="moz-txt-link-abbreviated" href="mailto:witzig@zib.de">witzig@zib.de</a></pre></body></html>