<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Dear Emily,<br>
      <br>
      I'm not sure I understood you correctly. Normally, your constraint
      handler should provide some method SCIPcreateConsMyspecialcons(),
      in which you create consdata etc. and call SCIPcreateCons().<br>
      <br>
      Anyway, I assume the full error message you get reads<br>
      "cannot create constraint <name> of type [conshdlrname] -
      constraint handler does not need constraints"?<br>
      <br>
      In that case, just set the NEEDCONS flag to TRUE when creating
      your constraint handler.<br>
      <br>
      Best,<br>
      Gerald<br>
      <br>
      <br>
      <br>
      On 26.03.2015 04:04, Aao Du wrote:<br>
    </div>
    <blockquote
cite="mid:CAEa_GvPDZskWZiNaADy6YDQ2ZNTwqdeX7dKXdPkgGmNYm32YGA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Also, I have been struggling with this error, so I
        was hoping you can help me out there.
        <div>In my branching rule, I am creating two branches and two
          consdatas and therefore two constraints for each node. But, I
          am getting error while calling SCIPcreatecons(scip, con, name,
          consdata, conshdlr,...). The error is :</div>
        <div>ERROR: can not create constraint of type conshdlr</div>
        <div>ERROR <-8> in function call</div>
        <div><br>
        </div>
        <div>I have checked that consdata is created and the conshdlr is
          found before calling this function. I dont know what else can
          cause this.</div>
        <div>I would be thankful for your help.</div>
        <div><br>
        </div>
        <div>Emily</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Mar 25, 2015 at 12:49 PM, Aao
          Du <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:aaoduu@gmail.com" target="_blank">aaoduu@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Dear all,
              <div><br>
              </div>
              <div>I have just started using SCIP. I want to implement a
                B&P algorithm in C++. I am looking at the Bin
                Packing example as template. As I think I will need to
                have branching rule, pricer and a conshdlr as well. </div>
              <div>I am, however, confused with some point and cant
                figure out how it works. I was hoping I can get help
                here.</div>
              <div><br>
              </div>
              <div>First, I cant find where in the example the master
                problem is being solved, i.e. I dont see SCIPsolve(scip)
                anywhere in the code! I am totaly lost about it. I was
                expecting to use it as in the VRP example after creating
                scip and including pricer(and in this case branch rule
                and conshdlr).</div>
              <div><br>
              </div>
              <div>Second, in the master problem, all the variables are
                given as binary(not continuous) and then we are trying
                to get the dual values of the master problem, isnt this
                wrong? I cant get how this works.</div>
              <div><br>
              </div>
              <div>Thanks in advance,</div>
              <div><br>
              </div>
              <div>Emily</div>
            </div>
          </blockquote>
        </div>
        <br>
      </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>