Dear Pietro<br><br>I'm so happy, I did everything you told me and now couenne is working fine. <br><br>I downloaded before the trunk version. But now I'm working with the stable version 0.3.<br><br>Thank you so much for your help. <br><br>Best regards, <br><br>Nathalie Jamett G.<br><br>
<br>
<blockquote>
----Mensaje original----<br>De: pbelott@clemson.edu<br>Fecha: 01-12-2010 19:45 <br>Para: "njamett@uantof.cl"<njamett@uantof.cl><br>CC: <couenne@list.coin-or.org>, <jvielma@pitt.edu><br>Asunto: Re: Couenne with Cplex<br><br>Dear Nathalie,<br><br>unfortunately I cannot replicate your problem. The error you are showing <br>appears to be a missing #include in <br>Couenne/src/problem/CouenneSolverInterface.cpp, which defines a template <br>LP solver without ever declaring any OsiCpxSolverInterface. You could <br>change CouenneSolverInterface.cpp and add the lines<br><br>#ifdef COIN_HAS_CPX<br>#include "OsiCpxSolverInterface.hpp"<br>#endif<br><br>right below the other two "#include" commands. However, this is totally <br>unnecessary in the version I have tried, because no object <br>OsiCpxSolverInterface is ever referenced explicitly in that source file.<br><br>More specifically: if I configure Couenne (version stable-0.3) using the <br>command<br><br>../configure --with-cplex-incdir=/usr/share/cplex122/cplex/include/ilcplex --with-cplex-lib='/usr/share/cplex122/cplex/lib/x86-64_sles10_4.1/static_pic/libcplex.a -lpthread'<br><br>it builds couenne without errors and it solves MINLP problems correctly. <br>One caveat: after solving the LP relaxation, for some reason <br>OsiCpxSolverInterface will print an error message of the form "Cplex error <br>1217: no solution found" or something similar. As far as I can understand, <br>that doesn't really affect the behavior of Couenne, which in fact obtain <br>the right solution from the LP solver and is able to solve the MINLP to <br>global optimality. I'm just anticipating that if you receive that error <br>you shouldn't worry (see related, if outdated, discussion at <br>http://list.coin-or.org/pipermail/osi/2008-June/thread.html#138)<br><br>Can you please email your configuration command and the version of Couenne <br>you are using?<br><br>PS: please direct all questions on Couenne to its mailing list:<br><br>couenne@list.coin-or.org<br><br><br>--<br>Pietro Belotti<br>Dept. of Mathematical Sciences<br>Clemson University<br>email: pbelott@clemson.edu<br>phone: 864-656-6765<br>web: myweb.clemson.edu/~pbelott<br><br>On Wed, 1 Dec 2010, njamett@uantof.cl wrote:<br><br>> <br>> Hi<br>> <br>> I was in touch with Mr Belotti. I was working in a windows platform and installing couenne with cplex.<br>> <br>> I had several troubles. So now I'm working in a Linux ubuntu machine.<br>> <br>> The solvers works fine, but when I tried to configure cplex as a subsolver I had the following answer:<br>> <br>> /home/nathalie/Couenne-trunk/Couenne/src/problem/CouenneSolverInterface.cpp: In member function 'bool Couenne::CouenneSolverInterface<T>::isProvenDualInfeasible() const [with T = OsiCpxSolverInterface]':<br>> /home/nathalie/Couenne-trunk/Couenne/src/problem/CouenneSolverInterface.cpp:250: instantiated from 'void Couenne::CouenneSolverInterface<T>::solveFromHotStart() [with T = OsiCpxSolverInterface]'<br>> ../../../../Couenne/src/main/BonCouenneSetup.cpp:871: instantiated from here<br>> /home/nathalie/Couenne-trunk/Couenne/src/problem/CouenneSolverInterface.cpp:90: error: incomplete type 'OsiCpxSolverInterface' used in nested name specifier<br>> make[2]: *** [BonCouenneSetup.lo] Error 1<br>> make[2]: se sale del directorio `/home/nathalie/Couenne-trunk/build/Couenne/src/main'<br>> make[1]: *** [all-recursive] Error 1<br>> make[1]: se sale del directorio `/home/nathalie/Couenne-trunk/build/Couenne'<br>> make: *** [all-recursive] Error 1<br>> <br>> Please, can you help me with this error?<br>> <br>> Thank you<br>> <br>> Best regards<br>> <br>> Nathalie Jamett<br>> University of Antofagasta<br>> Chile<br>><br></blockquote><br>