[Scip] example relaxators

Ambros Gleixner gleixner at zib.de
Tue Oct 26 05:29:49 MEST 2010


Hi Shahin,

unfortunately there is no example of a simple SCIP relaxator plugin.  We
have had this on our list for some time, but not yet had the resources
to provide one.

The files relax_xxx.{h,c} are not examples, but templates which you can
rename and extend to your own relaxator plugin if you are using the
C-interface.  You mention that the documentation has been rather
confusing you..have you seen the doxygen page

http://scip.zib.de/doc/html_devel/RELAX.html

?  This describes some of the necessary steps to implement your
relaxator and lists SCIP methods you might need to use.  It assumes that
you are using the C-interface, but the logic is the same if you use the
C++-interface.
In the latter case, instead of building upon relax_xxx.{h,c}, you need
to derive your own relaxator class from the wrapper class ObjRelax.  For
the necessary header files, you can simply include "objscip/objscip.h".
(For a C++ example project, look at e.g. the TSP example.)

So sorry that we cannot provide an example at this point, but feel free
to ask more specific questions anytime!

Best regards,
ambros




On Sat, 2010-10-23 at 19:04 +0200, Shahin Gelareh wrote:
> Hi everybody,
> 
> Very recently I have started playing around SCIP mainly for its
> concept of relaxators.
> I need to replace the lp relaxation of SCIP with my let say lagrangian
> one.
> But there does not seem to be an example of using it, in particular in
> C++ interface. Isn't there anything like example etc for relaxators or
> I cannot find it? The way documentation talks is quite confusing and
> need a nested layers of understanding the details of SCIP which is not
> really the best thing for a simple test. There is also a file line
> relax_xxx{c,h} which is also not that easy to play with.
> I would really be happy if I get an answer that there some thing like
> an example some where, so that I learn from. 
> 
> best,
> Shahin
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
-- 
____________________________________________________________
Ambros M. Gleixner
Zuse Institute Berlin - Matheon - Berlin Mathematical School
http://www.zib.de/gleixner




More information about the Scip mailing list