Hi Jonas<br><br>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?<br><br>Cheers,<br>Shahin<br>
<br><br><div class="gmail_quote">On Wed, Dec 29, 2010 at 6:00 PM, <span dir="ltr"><<a href="mailto:dip-request@list.coin-or.org">dip-request@list.coin-or.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Send Dip mailing list submissions to<br>
<a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://list.coin-or.org/mailman/listinfo/dip" target="_blank">http://list.coin-or.org/mailman/listinfo/dip</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:dip-request@list.coin-or.org">dip-request@list.coin-or.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:dip-owner@list.coin-or.org">dip-owner@list.coin-or.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Dip digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Alternative solver for subproblems<br>
(Jonas Christoffer Villumsen)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 28 Dec 2010 23:05:03 +0100<br>
From: Jonas Christoffer Villumsen <<a href="mailto:jcvi@man.dtu.dk">jcvi@man.dtu.dk</a>><br>
Subject: Re: [Dip] Alternative solver for subproblems<br>
To: Ted Ralphs <<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>><br>
Cc: "<a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a>" <<a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a>>, Matthew Galati<br>
<<a href="mailto:Matthew.Galati@sas.com">Matthew.Galati@sas.com</a>><br>
Message-ID:<br>
<<a href="mailto:D1098F5B0816804F870334AA52B65F510132B5BCAE49@WINEXCHANGE1.win.dtu.dk">D1098F5B0816804F870334AA52B65F510132B5BCAE49@WINEXCHANGE1.win.dtu.dk</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Thanks, Ted!<br>
<br>
I added my CPLEX library, added a libOsiCpx project, and changed the preprocessor definitions from<br>
<br>
__DECOMP_LP_CLP__<br>
__DECOMP_IP_CBC__<br>
<br>
To<br>
<br>
__DECOMP_LP_CPX__<br>
__DECOMP_IP_CPX__<br>
<br>
This results in the algorithm terminating with a range constraint error (probably an issue with my model). I then changed it to<br>
<br>
__DECOMP_LP_CLP__<br>
__DECOMP_IP_CPX__<br>
<br>
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<br>
<br>
#ifdef __DECOMP_IP_CPX__<br>
...<br>
#endif<br>
<br>
And<br>
<br>
#ifdef __DECOMP_LP_CPX__<br>
...<br>
#endif<br>
<br>
<br>
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?<br>
<br>
I also tried to replace<br>
<br>
#define __DECOMP_LP_CLP__<br>
#define __DECOMP_IP_CBC__<br>
<br>
with<br>
<br>
#define __DECOMP_LP_CPX__<br>
#define __DECOMP_IP_CPX__<br>
<br>
In DecompConfig.h without luck.<br>
<br>
Thanks again,<br>
Jonas<br>
<br>
PS. I am using MSVC++2008<br>
<br>
<br>
-----Original Message-----<br>
From: Ted Ralphs [mailto:<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>]<br>
Sent: 24. december 2010 00:48<br>
To: Jonas Christoffer Villumsen<br>
Cc: Matthew Galati; <a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
Subject: Re: [Dip] Alternative solver for subproblems<br>
<br>
The config.site is for builds using the autotools in *nix<br>
environments. To use CPLEX in DIP with MSVC++, you would have to<br>
manually add<br>
<br>
-D__DECOMP_IP_CPX__ -D__DECOMP_LP_CPX__<br>
<br>
to the compiler defines and also add the CPLEX library as a<br>
dependency. If you're not familiar with how to do either one of these<br>
steps, post more information about which version of MSVC++ you're<br>
using and I can be more specific.<br>
<br>
Cheers,<br>
<br>
Ted<br>
<br>
On Thu, Dec 23, 2010 at 8:36 PM, Jonas Christoffer Villumsen<br>
<<a href="mailto:jcvi@man.dtu.dk">jcvi@man.dtu.dk</a>> wrote:<br>
> Thanks, Matthew!<br>
><br>
><br>
><br>
> I forgot to mention that I am using MS Visual Studio.? Is it essentially the<br>
> same procedure with a config.site file?? And, how can I check which solver<br>
> is actually used by DIP?<br>
><br>
><br>
><br>
> Best regards and happy holidays,<br>
><br>
> Jonas<br>
><br>
><br>
><br>
> From: Matthew Galati [mailto:<a href="mailto:Matthew.Galati@sas.com">Matthew.Galati@sas.com</a>]<br>
> Sent: 22. december 2010 16:48<br>
> To: Jonas Christoffer Villumsen; <a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
> Subject: RE: Alternative solver for subproblems<br>
><br>
><br>
><br>
> When you configure, you need to set the options for the LP and/or IP solver<br>
> as well as the location of cplex inc and lib dirs.<br>
><br>
><br>
><br>
> I do it with a configuration file and have this:<br>
><br>
> ? export CONFIG_SITE=$HOME/config.site-COIN<br>
><br>
> in my startup script (.bashrc).<br>
><br>
><br>
><br>
> Here is my config file for running at Lehigh:<br>
><br>
> # COIN config.site file for common autotools settings<br>
><br>
> #use CPLEX<br>
><br>
> with_lp_solver=cplex<br>
><br>
> with_ip_solver=cplex<br>
><br>
><br>
><br>
> #location of CPLEX<br>
><br>
> with_cplex_incdir="/usr/local/cplex/include/ilcplex"<br>
><br>
> with_cplex_lib="-L/usr/local/cplex/lib/x86-64_debian4.0_4.1/static_pic<br>
> -lcplex -lpthread"<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> From: <a href="mailto:dip-bounces@list.coin-or.org">dip-bounces@list.coin-or.org</a> [mailto:<a href="mailto:dip-bounces@list.coin-or.org">dip-bounces@list.coin-or.org</a>] On<br>
> Behalf Of Jonas Christoffer Villumsen<br>
> Sent: Wednesday, December 22, 2010 10:25 AM<br>
> To: <a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
> Subject: [Dip] Alternative solver for subproblems<br>
><br>
><br>
><br>
> Hi all,<br>
><br>
><br>
><br>
> Could anyone give me a hint on how to set up DIP to use CPLEX for solving<br>
> integer subproblems?<br>
><br>
> It seems that the OSI-Cplex solver interface is not included in the DIP<br>
> project.<br>
><br>
><br>
><br>
> (I am new to COIN-OR and DIP).<br>
><br>
><br>
><br>
> Any help is much appreciated.<br>
><br>
><br>
><br>
> Best regards,<br>
><br>
> Jonas<br>
><br>
> _______________________________________________<br>
> Dip mailing list<br>
> <a href="mailto:Dip@list.coin-or.org">Dip@list.coin-or.org</a><br>
> <a href="http://list.coin-or.org/mailman/listinfo/dip" target="_blank">http://list.coin-or.org/mailman/listinfo/dip</a><br>
><br>
<br>
<br>
<br>
--<br>
Dr. Ted Ralphs<br>
Associate Professor, Lehigh University<br>
(610) 628-1280<br>
ted 'at' lehigh 'dot' edu<br>
<a href="http://coral.ie.lehigh.edu/%7Eted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Dip mailing list<br>
<a href="mailto:Dip@list.coin-or.org">Dip@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/dip" target="_blank">http://list.coin-or.org/mailman/listinfo/dip</a><br>
<br>
End of Dip Digest, Vol 8, Issue 9<br>
*********************************<br>
</blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>