[Dip] Dip Digest, Vol 8, Issue 9

Shahin Gelareh shahin.gelareh at gmail.com
Wed Dec 29 12:16:39 EST 2010


Hi Jonas

Did I understand correctly that you did "not" set __DECOMP_IP_CPX__  and
__DECOMP_LP_CPX__  in the project property -> C/C++ ->Preprocessor ->
Preprocessor Definition?

Cheers,
Shahin


On Wed, Dec 29, 2010 at 6:00 PM, <dip-request at list.coin-or.org> wrote:

> Send Dip mailing list submissions to
>        dip at list.coin-or.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://list.coin-or.org/mailman/listinfo/dip
> or, via email, send a message with subject or body 'help' to
>        dip-request at list.coin-or.org
>
> You can reach the person managing the list at
>        dip-owner at list.coin-or.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Dip digest..."
>
>
> Today's Topics:
>
>   1. Re: Alternative solver for subproblems
>      (Jonas Christoffer Villumsen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 28 Dec 2010 23:05:03 +0100
> From: Jonas Christoffer Villumsen <jcvi at man.dtu.dk>
> Subject: Re: [Dip] Alternative solver for subproblems
> To: Ted Ralphs <ted at lehigh.edu>
> Cc: "dip at list.coin-or.org" <dip at list.coin-or.org>,      Matthew Galati
>        <Matthew.Galati at sas.com>
> Message-ID:
>        <
> D1098F5B0816804F870334AA52B65F510132B5BCAE49 at WINEXCHANGE1.win.dtu.dk>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Thanks, Ted!
>
> I added my CPLEX library, added a libOsiCpx project, and changed the
> preprocessor definitions from
>
> __DECOMP_LP_CLP__
> __DECOMP_IP_CBC__
>
> To
>
> __DECOMP_LP_CPX__
> __DECOMP_IP_CPX__
>
> This results in the algorithm terminating with a range constraint error
> (probably an issue with my model).  I then changed it to
>
> __DECOMP_LP_CLP__
> __DECOMP_IP_CPX__
>
> With the option SolveRelaxAsIp = 1 and it runs to optimality.  However, it
> seems like it is still using CBC for solving subproblems.  I noticed that
> the MSV text editor shows blocks with
>
> #ifdef __DECOMP_IP_CPX__
> ...
> #endif
>
> And
>
> #ifdef __DECOMP_LP_CPX__
> ...
> #endif
>
>
> As "Inactive Preprocessor Block" (e.g. in decomp.h).  I guess that these
> blocks are not read for some reason.  Anyone have an idea what might be the
> issue here?
>
> I also tried to replace
>
> #define __DECOMP_LP_CLP__
> #define __DECOMP_IP_CBC__
>
> with
>
> #define __DECOMP_LP_CPX__
> #define __DECOMP_IP_CPX__
>
> In DecompConfig.h without luck.
>
> Thanks again,
> Jonas
>
> PS. I am using MSVC++2008
>
>
> -----Original Message-----
> From: Ted Ralphs [mailto:ted at lehigh.edu]
> Sent: 24. december 2010 00:48
> To: Jonas Christoffer Villumsen
> Cc: Matthew Galati; dip at list.coin-or.org
> Subject: Re: [Dip] Alternative solver for subproblems
>
> The config.site is for builds using the autotools in *nix
> environments. To use CPLEX in DIP with MSVC++, you would have to
> manually add
>
> -D__DECOMP_IP_CPX__ -D__DECOMP_LP_CPX__
>
> to the compiler defines and also add the CPLEX library as a
> dependency. If you're not familiar with how to do either one of these
> steps, post more information about which version of MSVC++ you're
> using and I can be more specific.
>
> Cheers,
>
> Ted
>
> On Thu, Dec 23, 2010 at 8:36 PM, Jonas Christoffer Villumsen
> <jcvi at man.dtu.dk> wrote:
> > Thanks, Matthew!
> >
> >
> >
> > I forgot to mention that I am using MS Visual Studio.? Is it essentially
> the
> > same procedure with a config.site file?? And, how can I check which
> solver
> > is actually used by DIP?
> >
> >
> >
> > Best regards and happy holidays,
> >
> > Jonas
> >
> >
> >
> > From: Matthew Galati [mailto:Matthew.Galati at sas.com]
> > Sent: 22. december 2010 16:48
> > To: Jonas Christoffer Villumsen; dip at list.coin-or.org
> > Subject: RE: Alternative solver for subproblems
> >
> >
> >
> > When you configure, you need to set the options for the LP and/or IP
> solver
> > as well as the location of cplex inc and lib dirs.
> >
> >
> >
> > I do it with a configuration file and have this:
> >
> > ? export CONFIG_SITE=$HOME/config.site-COIN
> >
> > in my startup script (.bashrc).
> >
> >
> >
> > Here is my config file for running at Lehigh:
> >
> > # COIN config.site file for common autotools settings
> >
> > #use CPLEX
> >
> > with_lp_solver=cplex
> >
> > with_ip_solver=cplex
> >
> >
> >
> > #location of CPLEX
> >
> > with_cplex_incdir="/usr/local/cplex/include/ilcplex"
> >
> > with_cplex_lib="-L/usr/local/cplex/lib/x86-64_debian4.0_4.1/static_pic
> > -lcplex -lpthread"
> >
> >
> >
> >
> >
> >
> >
> > From: dip-bounces at list.coin-or.org [mailto:dip-bounces at list.coin-or.org]
> On
> > Behalf Of Jonas Christoffer Villumsen
> > Sent: Wednesday, December 22, 2010 10:25 AM
> > To: dip at list.coin-or.org
> > Subject: [Dip] Alternative solver for subproblems
> >
> >
> >
> > Hi all,
> >
> >
> >
> > Could anyone give me a hint on how to set up DIP to use CPLEX for solving
> > integer subproblems?
> >
> > It seems that the OSI-Cplex solver interface is not included in the DIP
> > project.
> >
> >
> >
> > (I am new to COIN-OR and DIP).
> >
> >
> >
> > Any help is much appreciated.
> >
> >
> >
> > Best regards,
> >
> > Jonas
> >
> > _______________________________________________
> > Dip mailing list
> > Dip at list.coin-or.org
> > http://list.coin-or.org/mailman/listinfo/dip
> >
>
>
>
> --
> Dr. Ted Ralphs
> Associate Professor, Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/%7Eted>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Dip mailing list
> Dip at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/dip
>
> End of Dip Digest, Vol 8, Issue 9
> *********************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/dip/attachments/20101229/541604e4/attachment.html 


More information about the Dip mailing list