Thank you indeed, Ted,<br>I must be more precise next time. I was talking about the VS10 project files 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 cplex for IP and LP in preprocessors list.<br>
<br><br>regards,<br>Shahin<br><br><br><br><br><br><div class="gmail_quote">On Sat, Aug 20, 2011 at 9:32 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;">
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 -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>
<font color="#888888">--<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>