<div dir="ltr">Dear Flipe and Gerald,<div><br></div><div>Thanks for your response. I understand better now. </div><div>Also, the NEEDCONS flag worked, thanks.</div><div><br></div><div>Emily</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 26, 2015 at 4:45 AM, Gerald Gamrath <span dir="ltr"><<a href="mailto:gamrath@zib.de" target="_blank">gamrath@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 text="#000000" bgcolor="#FFFFFF">
<div>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<div><div class="h5"><br>
<br>
<br>
<br>
On 26.03.2015 04:04, Aao Du wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<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 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></fieldset>
<br>
</div></div><span class=""><pre>_______________________________________________
Scip mailing list
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a>
<a href="http://listserv.zib.de/mailman/listinfo/scip" target="_blank">http://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
</span></blockquote>
<br>
</div>
</blockquote></div><br></div>