[Scip] Extend SCIP with a new constraint handler

Gerald Gamrath gamrath at zib.de
Tue Nov 5 22:04:44 CET 2013


Dear Miro,

welcome to the SCIP mailing list!

Did you also include your constraint handler into SCIP? Your constraint 
handler should implement a method SCIPincludeConshdlrXyz(), which you 
need to use to include the constraint handler. For default SCIP, this is 
done in the file scipdefplugins.c in src/scip/, if you started your own 
project based on SCIP (like the examples), you probably want to include 
the constraint handler in the main file of your project.

You can check that your constraint handler was included in SCIP's 
interactive shell by typing "disp cons".

Do you want to read your instance as a .cip file? In this case, the 
constraint handler name stated in front of the constraint (e.g., 
[linear]) must be exactly the same as the name of your constraint 
handler and your constraint handler needs to implements its CONSPARSE 
callback.

Best,
Gerald

Am 05.11.2013 19:32, schrieb Miro Marinov:
>
> Dear SCIPpers,
>
>
> I am trying to extend SCIP with a new constraint handler. I have 
> included the appropriate .c/.h files in the SCIPDIR/src/scip folder 
> and added those files in the SCIPPLUGINLIBOBJ of the Makefile. SCIP 
> compiles successfully but then when I provide a data file (which 
> contains constrains that need to be handled by the new constraint 
> handler) I receive a warning that states: 'constraint handler doesn't 
> exist in SCIP data structure'.  I suppose I am missing something so 
> could you please explain what else needs to be done so that the 
> constraint handler is fully integrated.
>
> The reason I am trying to extend SCIP is to take advantage of the 
> parallelism provided by UG. The idea is to run those extended SCIPs in 
> parallel using, for example, fibreSCIP.
>
>
> Thank you very much in advance and I am looking forward to hear from 
> you. (:
>
>
> Kind Regards,
>
> Miro
>
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20131105/9ce2bb83/attachment.html>


More information about the Scip mailing list