[Dip] Alternative solver for subproblems

Jonas Christoffer Villumsen jcvi at man.dtu.dk
Tue Dec 28 17:05:03 EST 2010


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




More information about the Dip mailing list