[Couenne] Questions regarding the installation and usage of COUENNE

Patricio Torres T pattorre at gmail.com
Mon Oct 12 18:48:41 EDT 2020


Hello Ted:

I hope this e-mail finds you well. As I told you some months ago, I am
trying to install COUENNE in my machine (I could not do it before because
my computer had some problems). I could fetch successfully all the
dependencies of COUENNE by using the .coinbrew script (the automatic
procedure) and following the indications in the web you sent me and the
prompt. Actually, it is quite clear. However, when I try to build COUENNE
and its dependencies, I obtain the error described below (appearing when
building the dependency MUMPS v1.6.2). After the error appears, the build
process is stopped and the rest of the components (dependencies) are not
built and installed (I checked the directory I specified to make the
installation (is writable directory) and the rest of the process is not
completed). By the way, I do not plan to use parallelism for now. On the
other hand, I had a couple of questions more: 1) Do I need to add my path
in the archive .bashrc to link the generated binaries and COIN-OR libraries
or this is done automatically as well?. 2) Do I need to add or install some
libraries for using COUENNE from AMPL before build? if so, How should I do
this?

Please, take care Ted and thank you very much for your time and patience!

Patricio

PD: Here is the error I get, can you help me?:

##################################################

### Building ThirdParty/Mumps 1.6.2

##################################################


*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2667:23:*


 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

......

 2667 |         CALL MPI_PACK( LIST_SLAVES, NSLAVES, MPI_INTEGER,

      |                       *1*

*Error:* Rank mismatch between actual argument at *(1)* and actual argument
at (2) (scalar and rank-1)

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2670:23:*


 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

......

 2670 |         CALL MPI_PACK( FLOPS_INCREMENT, NSLAVES,

      |                       *1*

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2675:25:*


 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

......

 2675 |           CALL MPI_PACK( MEM_INCREMENT, NSLAVES,

      |                         *1*

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2681:26:*


 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

......

 2681 |            CALL MPI_PACK( CB_BAND, NSLAVES,

      |                          *1*

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2566:23:*


 2566 |         CALL MPI_PACK( MAX_SURF_MASTER, 1, MPI_DOUBLE_PRECISION,

      |                       *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2417:23:*


 2417 |         CALL MPI_PACK( LOAD, 1, MPI_DOUBLE_PRECISION,

      |                       *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2421:26:*


 2421 |            CALL MPI_PACK( UPD_LOAD, 1, MPI_DOUBLE_PRECISION,

      |                          *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2305:23:*


 2305 |         CALL MPI_PACK( LOAD, 1, MPI_DOUBLE_PRECISION,

      |                       *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2309:25:*


 2309 |           CALL MPI_PACK( MEM, 1, MPI_DOUBLE_PRECISION,

      |                         *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2314:25:*


 2314 |           CALL MPI_PACK( SBTR_CUR, 1, MPI_DOUBLE_PRECISION,

      |                         *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2319:26:*


 2319 |            CALL MPI_PACK( LU_USAGE, 1, MPI_DOUBLE_PRECISION,

      |                          *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2217:23:*


 2217 |         CALL MPI_PACK( W(1,K), LW, MPI_DOUBLE_PRECISION,

      |                       *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:1920:28:*


 1920 |               CALL MPI_PACK(TAB(1), NSUPROW*NSUPCOL,

      |                            *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:1929:32:*


 1929 |                   CALL MPI_PACK(VAL_SON(J,I), 1,

      |                                *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2012:28:*


 2012 |               CALL MPI_PACK(TAB(1), NSUBSET_COL_EFF*N_PACKET,

      |                            *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2026:28:*


 2026 |               CALL MPI_PACK(TAB(1), NSUBSET_COL_EFF*N_PACKET,

      |                            *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2037:33:*


 2037 |                   CALL MPI_PACK( VAL_SON( J, I ), 1,

      |                                 *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:2048:33:*


 2048 |                   CALL MPI_PACK( VAL_SON( J, I ), 1,

      |                                 *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:1712:23:*


 1712 |         CALL MPI_PACK( UIP21K, abs(NPIV) * NCOLU,

      |                       *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:1618:25:*


 1618 |           CALL MPI_PACK( IPIV, NPIV, MPI_INTEGER,

      |                         *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Rank mismatch between actual argument at *(1)* and actual argument
at (2) (scalar and rank-1)

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:1622:27:*


 1622 |             CALL MPI_PACK( VAL(1,I), NCOL,

      |                           *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:1254:24:*


 1254 |          CALL MPI_PACK( A_CBSON( APOS ), THIS_ROW_LENGTH,

      |                        *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:1313:28:*


 1313 |               CALL MPI_PACK(BUF_MAX_ARRAY, NFS4FATHER,

      |                            *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:890:27:*


  890 |             CALL MPI_PACK( SLAVES, NSLAVES, MPI_INTEGER,

      |                           *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Rank mismatch between actual argument at *(1)* and actual argument
at (2) (scalar and rank-1)

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:894:25:*


  894 |           CALL MPI_PACK( IROW, NROW, MPI_INTEGER,

      |                         *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Rank mismatch between actual argument at *(1)* and actual argument
at (2) (scalar and rank-1)

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:897:25:*


  897 |           CALL MPI_PACK( ICOL, NCOL, MPI_INTEGER,

      |                         *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Rank mismatch between actual argument at *(1)* and actual argument
at (2) (scalar and rank-1)

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:910:27:*


  910 |             CALL MPI_PACK( VAL(1,I), NCOL_SEND,

      |                           *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:525:25:*


  525 |           CALL MPI_PACK( IW, LONG, MPI_INTEGER,

      |                         *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Rank mismatch between actual argument at *(1)* and actual argument
at (2) (scalar and rank-1)

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:529:25:*


  529 |           CALL MPI_PACK( W(1+(K-1)*LDW), LONG, MPI_DOUBLE_PRECISION,

      |                         *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:451:30:*


  451 |                CALL MPI_PACK( CB ( 1 + LD_CB * (K-1) ),

      |                              *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:458:25:*


  458 |           CALL MPI_PACK( SOL(1+LD_PIV*(K-1)),

      |                         *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:365:25:*


  365 |           CALL MPI_PACK( IWROW, LCONT, MPI_INTEGER,

      |                         *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Rank mismatch between actual argument at *(1)* and actual argument
at (2) (scalar and rank-1)

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:368:25:*


  368 |           CALL MPI_PACK( IWCOL, LCONT, MPI_INTEGER,

      |                         *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Rank mismatch between actual argument at *(1)* and actual argument
at (2) (scalar and rank-1)

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:377:27:*


  377 |             CALL MPI_PACK( A( J1 ), I, MPI_DOUBLE_PRECISION,

      |                           *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

*/Users/familiatorrestapia/coinbrew/ThirdParty/Mumps/MUMPS/src/dmumps_comm_buffer.F:385:27:*


  385 |             CALL MPI_PACK( A( J1 ), LCONT, MPI_DOUBLE_PRECISION,

      |                           *1*

......

 2658 |         CALL MPI_PACK( WHAT, 1, MPI_INTEGER,

      |                       2

*Error:* Type mismatch between actual argument at *(1)* and actual argument
at (2) (REAL(8)/INTEGER(4)).

make: *** [dmumps_comm_buffer.lo] Error 1


Build failed, see error output above

iMac-de-Familia:coinbrew familiatorrestapia$




El vie., 8 may. 2020 a las 8:45, Ted Ralphs (<ted at lehigh.edu>) escribió:

> Hi Patricio,
>
> Sorry for the out-of-date README. I haven't gotten to updating it, since
> we moved to git. The documentation here
>
> https://coin-or.github.io/user_introduction.html
>
> should answer many of your questions. The fetch and build process is fully
> automated so you shouldn't need to worry about many of the things you asked
> about. You can build with clang or gcc from homebrew, as you wish. One of
> these days, we will have a homebrew recipe for couenne, but we haven't
> gotten to that yet.
>
> Let us know if anything is still not clear after reading the
> documentation and trying to do the build. Then we can answer any remaining
> questions. Feel free to open issues for any problems as well.
>
> Cheers,
>
> Ted
>
> On Fri, May 8, 2020 at 6:05 AM Patricio Torres T <pattorre at gmail.com>
> wrote:
>
>> Dear Pietro:
>>
>> My name is Patricio and I want to solve a MINLP whose objective and
>> constraints functions are non-convex and factorable (as described in some
>> of your papers). This is for non-commercial purpouses. I am interested in
>> solving my problem by using COUENNE, however, I have some doubts on how to
>> install it and use it (unfortunately I am just a beginner at the usage of
>> the command line and C++ programming. I am mainly MATLAB user). The
>> operating system of my machine is mac OSX v10.10.5 (YOSEMITE). I have
>> downloaded the tarball of COUENNE-0.5.8 and uncompress it in my root
>> directory. In addition, I have already read the INSTALL.* files of every
>> subdirectory of Couenne-0.5.8/ThirdParty (ASL, BLAS, HSL, Lapack, Metis,
>> Mumps, SCIP and SoPlex) (as specified in the installation part of the user
>> manual of COUENNE).
>>
>> 1) For ASL: I have downloaded the solvers.tgz file form netlib, however,
>> in the webpage it says that the file does not contain the lib items located
>> at the end of the page (apparently those are required for invoking
>> different solvers from AMPL). Should I download them as well or is it
>> enough with this tar file? if so, in what directory should I put them? How
>> should I build every one? (I have seen the README file at the web directory
>> but I hardly understand what I should do). Moreover, in the INSTALL.ASL
>> file it says that I should put the uncompressed folder "solvers" at the
>> directory: $SRCROOTDIR/OTHERS/ASL. What does it mean this? I do not have a
>> directory with that name in my computer or Does it refer to the
>> directory: Couenne-0.5.8/ThirdParty/ASL?
>>
>> 2) For BLAS: Should I rename the folder "BLAS-3.8.0" to "blas" (after
>> uncompress it in the directory Couenne-0.5.8/ThirdParty/BLAS)? Note that
>> this step does not appear in the instructions, but for other solvers is
>> necessary to rename.
>>
>> 3) For HSL: Is it enough with uncompressing and renaming
>> the coinhsl-x.y.z.tar.gz file at the Couenne-0.5.8/ThirdParty/HSL directory
>> or should I do something else (there is other instructions for compiling it
>> with IPOPT)?
>>
>> 4) For LAPACK: Is it enough with uncompressing and renaming
>> the lapack-3.2.1.tgz file at the Couenne-0.5.8/ThirdParty/Lapack directory
>> or should I install it as well? How should I run the configure script in
>> this case and what steps should I follow?
>>
>> 5) For SCIP: At the webpage of SCIP it says that it could be necessary to
>> install Bliss-0.73 to perform some computations faster (Backtrack search).
>> For installing Bliss should I also install GMP (GNU Multiple Precision
>> Arithmetic Library <http://gmplib.org/>)? Is all of this necessary for
>> running COUENNE properly?
>>
>> In a general context:
>>
>> Should I compile and build every package (ASL, BLAS, HSL, Lapack, Metis,
>> Mumps, SCIP and SoPlex) separately or everything will be fine if I just
>> configure, make and install COUENNE with the commands given in the user
>> manual (after download and place every package where it corresponds as
>> pointed out in every INSTALL.* file at the ThirdParty subdirectory)?
>>
>> In my case, Is it necessary to install IPOPT? How should i do this?
>>
>> Should I install Xcode?
>>
>> Should I install the gcc and fortran compilers before building COUENNE
>> (apparently this can be done from homebrew or are they included in Xcode)?
>>
>> Is there an interface for MATLAB where I can use COUENNE as a solver (I
>> think there is one for IPOPT)?
>>
>> Should I download AMPL separately to use COUENNE or can I use it without
>> AMPL (In the manual it says that COUENNE can works as an stand alone solver
>> as well but I do not know if there is an interface to enter my instance
>> directly as a stand alone separated programming language)? Is there a
>> manual for using COUENNE as a stand alone solver?
>>
>> I am sorry for bothering you with my long questions (maybe some of them
>> are just trivial stuff for you)
>>
>> Thank you very much in advance for your time and for your patience!!
>>
>> Patricio
>>
>>
>> _______________________________________________
>> Couenne mailing list
>> Couenne at list.coin-or.org
>> https://list.coin-or.org/mailman/listinfo/couenne
>
>
>
> --
> Dr. Ted Ralphs
> Professor, Industrial and Systems Engineering
> Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/couenne/attachments/20201012/58936f2e/attachment.html>


More information about the Couenne mailing list