Hi Jonas<br><br>Did I understand correctly that you did &quot;not&quot; set __DECOMP_IP_CPX__  and __DECOMP_LP_CPX__  in the project property -&gt; C/C++ -&gt;Preprocessor -&gt; 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">&lt;<a href="mailto:dip-request@list.coin-or.org">dip-request@list.coin-or.org</a>&gt;</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 &#39;help&#39; 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 &quot;Re: Contents of Dip digest...&quot;<br>
<br>
<br>
Today&#39;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 &lt;<a href="mailto:jcvi@man.dtu.dk">jcvi@man.dtu.dk</a>&gt;<br>
Subject: Re: [Dip] Alternative solver for subproblems<br>
To: Ted Ralphs &lt;<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>&gt;<br>
Cc: &quot;<a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a>&quot; &lt;<a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a>&gt;,      Matthew Galati<br>
        &lt;<a href="mailto:Matthew.Galati@sas.com">Matthew.Galati@sas.com</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:D1098F5B0816804F870334AA52B65F510132B5BCAE49@WINEXCHANGE1.win.dtu.dk">D1098F5B0816804F870334AA52B65F510132B5BCAE49@WINEXCHANGE1.win.dtu.dk</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<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 &quot;Inactive Preprocessor Block&quot; (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&#39;re not familiar with how to do either one of these<br>
steps, post more information about which version of MSVC++ you&#39;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>
&lt;<a href="mailto:jcvi@man.dtu.dk">jcvi@man.dtu.dk</a>&gt; wrote:<br>
&gt; Thanks, Matthew!<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I forgot to mention that I am using MS Visual Studio.? Is it essentially the<br>
&gt; same procedure with a config.site file?? And, how can I check which solver<br>
&gt; is actually used by DIP?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Best regards and happy holidays,<br>
&gt;<br>
&gt; Jonas<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; From: Matthew Galati [mailto:<a href="mailto:Matthew.Galati@sas.com">Matthew.Galati@sas.com</a>]<br>
&gt; Sent: 22. december 2010 16:48<br>
&gt; To: Jonas Christoffer Villumsen; <a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
&gt; Subject: RE: Alternative solver for subproblems<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; When you configure, you need to set the options for the LP and/or IP solver<br>
&gt; as well as the location of cplex inc and lib dirs.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I do it with a configuration file and have this:<br>
&gt;<br>
&gt; ? export CONFIG_SITE=$HOME/config.site-COIN<br>
&gt;<br>
&gt; in my startup script (.bashrc).<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Here is my config file for running at Lehigh:<br>
&gt;<br>
&gt; # COIN config.site file for common autotools settings<br>
&gt;<br>
&gt; #use CPLEX<br>
&gt;<br>
&gt; with_lp_solver=cplex<br>
&gt;<br>
&gt; with_ip_solver=cplex<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; #location of CPLEX<br>
&gt;<br>
&gt; with_cplex_incdir=&quot;/usr/local/cplex/include/ilcplex&quot;<br>
&gt;<br>
&gt; with_cplex_lib=&quot;-L/usr/local/cplex/lib/x86-64_debian4.0_4.1/static_pic<br>
&gt; -lcplex -lpthread&quot;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 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>
&gt; Behalf Of Jonas Christoffer Villumsen<br>
&gt; Sent: Wednesday, December 22, 2010 10:25 AM<br>
&gt; To: <a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
&gt; Subject: [Dip] Alternative solver for subproblems<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi all,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Could anyone give me a hint on how to set up DIP to use CPLEX for solving<br>
&gt; integer subproblems?<br>
&gt;<br>
&gt; It seems that the OSI-Cplex solver interface is not included in the DIP<br>
&gt; project.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; (I am new to COIN-OR and DIP).<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Any help is much appreciated.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Jonas<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Dip mailing list<br>
&gt; <a href="mailto:Dip@list.coin-or.org">Dip@list.coin-or.org</a><br>
&gt; <a href="http://list.coin-or.org/mailman/listinfo/dip" target="_blank">http://list.coin-or.org/mailman/listinfo/dip</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
Dr. Ted Ralphs<br>
Associate Professor, Lehigh University<br>
(610) 628-1280<br>
ted &#39;at&#39; lehigh &#39;dot&#39; 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>