Thanks Ted for your comments.<br>After replacing cplex for the existing ones in "config_default.h":<br>//#define __DECOMP_LP_CLP__<br>//#define __DECOMP_IP_CBC__<br><br>#define __DECOMP_LP_CPX__<br>#define __DECOMP_IP_CPX__<br>
<br>My VS2010 compiler still gives me error and the error seems to be at <br>#if defined(__DECOMP_IP_CPX__)||(__DECOMP_LP_CPX__) in "DecompAlgo.cpp"<br><br>I passed by this error by changing it to:<br><br>#if defined(__DECOMP_IP_CPX__)||defined (__DECOMP_LP_CPX__) in "DecompAlgo.cpp"<br>
<br><br>Cheers,<br><br><br><div class="gmail_quote">On Tue, Aug 23, 2011 at 7:51 PM, Ted Ralphs <span dir="ltr"><<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
When not using autoconf (with the MSVC++ IDE, for example), there is a<br>
file "config_default.h" that gets included instead of the<br>
configuration header automatically generated by autoconf. It contains<br>
all of the settings that would normally get set by autoconf, but must<br>
be edited by hand. It should be enough to change the preprocessors<br>
symbols there. At least that is the intended design, so please let us<br>
know if it doesn't work.<br>
<br>
Cheers,<br>
<br>
Ted<br>
<br>
On Sat, Aug 20, 2011 at 3:39 PM, Shahin Gelareh<br>
<<a href="mailto:shahin.gelareh@gmail.com">shahin.gelareh@gmail.com</a>> wrote:<br>
> Thank you indeed, Ted,<br>
> I must be more precise next time. I was talking about the VS10 project files<br>
> in windows.<br>
> The linux setup is perfect.<br>
><br>
> Well for me it works by undefining the CBC and CLP in Decomph.h and defiling<br>
> cplex for IP and LP in preprocessors list.<br>
><br>
><br>
> regards,<br>
> Shahin<br>
><br>
><br>
><br>
><br>
><br>
> On Sat, Aug 20, 2011 at 9:32 PM, Ted Ralphs <<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>> wrote:<br>
>><br>
>> On Sat, Aug 20, 2011 at 3:21 PM, Matthew Galati<br>
>> <<a href="mailto:matthew.galati@gmail.com">matthew.galati@gmail.com</a>> wrote:<br>
>><br>
>> > You should use the configuration options to switch the LP and IP solver.<br>
>> ><br>
>> > For example...I use a configuration file that contains the following to<br>
>> > switch to CPLEX:<br>
>> ><br>
>> ><br>
>> > #use CPLEX<br>
>> > with_lp_solver=cplex<br>
>> > with_ip_solver=cplex<br>
>> ><br>
>> > #location of CPLEX<br>
>> > with_cplex_incdir="/usr/local/cplex/include/ilcplex"<br>
>> > with_cplex_lib="-L/usr/local/cplex/lib/x86-64_sles10_4.1/static_pic<br>
>> > -lcplex<br>
>> > -lpthread"<br>
>><br>
>> Just to clarify, this means to either give these option to configure<br>
>> on the command line:<br>
>><br>
>> ./configure --with-lp-solver=cplex ...<br>
>><br>
>> or else put the lines above in a file called share/config.site, which<br>
>> will add them to the configure command line automatically, as<br>
>> described here:<br>
>><br>
>> <a href="http://www.gnu.org/s/hello/manual/automake/config_002esite.html" target="_blank">http://www.gnu.org/s/hello/manual/automake/config_002esite.html</a><br>
>><br>
>> If you want to build in several configurations from the same source<br>
>> code, I suggest using a VPATH build, which means to make a<br>
>> subdirectory and run configure from there.<br>
>><br>
>> mkdir build-cbc<br>
>> cd build-cbc<br>
>> ../configure<br>
>> make<br>
>> make install<br>
>><br>
>> You can then build with another solver in another subdirectory without<br>
>> over-writing the first installation:<br>
>><br>
>> mkdir build-cplex<br>
>> cd build-cplex<br>
>> ../configure<br>
>> make<br>
>> make install<br>
>><br>
>> Cheers,<br>
>><br>
>> Ted<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>
<font color="#888888"><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>
</font></blockquote></div><br>