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">&lt;<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>&gt;</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>
&lt;<a href="mailto:matthew.galati@gmail.com">matthew.galati@gmail.com</a>&gt; wrote:<br>
<br>
&gt; You should use the configuration options to switch the LP and IP solver.<br>
&gt;<br>
&gt; For example...I use a configuration file that contains the following to<br>
&gt; switch to CPLEX:<br>
&gt;<br>
&gt;<br>
&gt; #use CPLEX<br>
&gt; with_lp_solver=cplex<br>
&gt; with_ip_solver=cplex<br>
&gt;<br>
&gt; #location of CPLEX<br>
&gt; with_cplex_incdir=&quot;/usr/local/cplex/include/ilcplex&quot;<br>
&gt; with_cplex_lib=&quot;-L/usr/local/cplex/lib/x86-64_sles10_4.1/static_pic -lcplex<br>
&gt; -lpthread&quot;<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 &#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>
</font></blockquote></div><br>