Solver not found CPLEX 12.5 (x64) + matlab 7.12.0 (R2011a)

1,040 views
Skip to first unread message

Raouf

unread,
Jul 22, 2013, 12:09:22 PM7/22/13
to yal...@googlegroups.com
I'm trying to install YALMIP on my new computer (windows x64), here the step i followed :
  1. Installed IBM CPLEX here: C:\ILOG\CPLEX_Studio125\cplex
  2. Installed Yalmip here: C:\Yalmip
  3. Added CPLEX and Yalmip to my Matlab path (and confirmed that all directories exist)
  4. I ran help cplexlp and getvalid output : cplexlp
    Solve linear programming problems....
    5. Also, which cplex gives this output : C:\ILOG\CPLEX_Studio1251\cplex\matlab\x64_win64\@Cplex\Cplex.p  % Cplex constructor
    6. which yalmip : C:\Yalmip\extras\yalmip.m
    7.I ran yalmiptest :
    yalmiptest 
    +++++++++++++++++++++++++++++++++++++++++++++++
    |       Searching for installed solvers       |
    +++++++++++++++++++++++++++++++++++++++++++++++
    |        Solver|   Version/module|      Status|
    +++++++++++++++++++++++++++++++++++++++++++++++
    |       LINPROG|                 |       found|
    |      QUADPROG|                 |       found|
    |        LMILAB|                 |       found|
    |       FMINCON|        geometric|       found|
    |       FMINCON|         standard|       found|
    |    FMINSEARCH|                 |       found|
    |           BNB|                 |       found|
    |      BINTPROG|                 |       found|
    |        CUTSDP|                 |       found|
    |        BMIBNB|                 |       found|
    |         KKTQP|                 |       found|
    |          NONE|                 |       found|
    |     LSQNONNEG|                 |       found|
    |        LSQLIN|                 |       found|
    |        GUROBI|           GUROBI|   not found|
    |        GUROBI|              MEX|   not found|
    |         CPLEX|         IBM 12.5|   not found|
    |         CPLEX|         IBM 12.4|   not found|
    |         CPLEX|         IBM 12.3|   not found|
    |         CPLEX|         IBM 12.2|   not found|
    |         CPLEX|         IBM 12.1|   not found|
    |         CPLEX|         IBM 12.0|   not found|
    |         CPLEX|         CPLEXINT|   not found|
    |           CBC|                 |   not found|
    |          GLPK|       GLPKMEX-CC|   not found|
    |          GLPK|          GLPKMEX|   not found|
    |           CDD|           CDDMEX|   not found|
    |           NAG|           e04mbf|   not found|
    |           NAG|           e04naf|   not found|
    |           CLP|        CLPMEX-LP|   not found|
    |          SCIP|                 |   not found|
    |        XPRESS|     MEXPRESS 1.1|   not found|
    |        XPRESS|     MEXPRESS 1.0|   not found|
    |        XPRESS|             FICO|   not found|
    |        XPRESS|             FICO|   not found|
    |         QSOPT|             OPTI|   not found|
    |         QSOPT|         MEXQSOPT|   not found|
    |       LPSOLVE|        MXLPSOLVE|   not found|
    |           OSL|          OSLPROG|   not found|
    |         MOSEK|            LP/QP|   not found|
    |         MOSEK|             SOCP|   not found|
    |         MOSEK|              SDP|   not found|
    |         MOSEK|        GEOMETRIC|   not found|
    |         CPLEX|         CPLEXMEX|   not found|
    |         BPMPD|                 |   not found|
    |           CLP|        CLPMEX-QP|   not found|
    |           CLP|             OPTI|   not found|
    |       QPOASES|                 |   not found|
    |          OOQP|                 |   not found|
    |          OOQP|                 |   not found|
    |          QPIP|                 |   not found|
    |          QPAS|                 |   not found|
    |         LINDO|             MIQP|   not found|
    |          ECOS|                 |   not found|
    |        SEDUMI|              1.1|   not found|
    |        SEDUMI|              1.3|   not found|
    |        SEDUMI|             1.05|   not found|
    |        SEDUMI|             1.03|   not found|
    |         SDPT3|                4|   not found|
    |        SDPNAL|              0.1|   not found|
    |     LOGDETPPA|              0.1|   not found|
    |    SPARSECOLO|                0|   not found|
    |         SDPT3|              3.1|   not found|
    |         SDPT3|             3.02|   not found|
    |         SDPT3|              3.0|   not found|
    |          SDPA|                M|   not found|
    |          DSDP|             OPTI|   not found|
    |          DSDP|                5|   not found|
    |          DSDP|                4|   not found|
    |         SDPLR|                 |   not found|
    |          CSDP|             opti|   not found|
    |          CSDP|                 |   not found|
    |        MAXDET|                 |   not found|
    |        PENSDP|           PENOPT|   not found|
    |        PENSDP|           TOMLAB|   not found|
    |        PENBMI|           PENOPT|   not found|
    |        PENBMI|           TOMLAB|   not found|
    |        SDPNAL|                 |   not found|
    |       LMIRANK|                 |   not found|
    |          VSDP|              0.1|   not found|
    |           MPT|                3|   not found|
    |           MPT|                2|   not found|
    |         MPLCP|                 |   not found|
    |    QUADPROGBB|                 |   not found|
    |          KYPD|                 |   not found|
    |         STRUL|                1|   not found|
    |        PENNON|         standard|   not found|
    |         SNOPT|        geometric|   not found|
    |         SNOPT|         standard|   not found|
    |        BONMIN|                 |   not found|
    |      FILTERSD|            dense|   not found|
    |      FILTERSD|           sparse|   not found|
    |         NOMAD|                 |   not found|
    |         LINDO|              NLP|   not found|
    |         IPOPT|         standard|   not found|
    |         IPOPT|        geometric|   not found|
    |        GPPOSY|                 |   not found|
    |     SPARSEPOP|                 |   not found|
    |   POWERSOLVER|                 |   not found|
    +++++++++++++++++++++++++++++++++++++++++++++++
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    |                 Test|   Solution|                   Solver message|
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    |   sdpvar/set methods|        N/A|     Successfully solved (YALMIP)|
    |                   LP|    Correct|    Successfully solved (LINPROG)|
    |                   LP|    Correct|    Successfully solved (LINPROG)|
    |                   QP|    Correct|   Successfully solved (QUADPROG)|
    |                   QP|    Correct|   Successfully solved (QUADPROG)|
    |                 SOCP|    Correct|     Successfully solved (LMILAB)|
    |                 SOCP|        N/A|      Infeasible problem (LMILAB)|
    |                 SOCP|        N/A|      Infeasible problem (LMILAB)|
    |                  SDP|    Correct|     Successfully solved (LMILAB)|
    |                  SDP|    Correct|     Successfully solved (LMILAB)|
    |                  SDP|    Correct|     Successfully solved (LMILAB)|
    |                  SDP|    Correct|     Successfully solved (LMILAB)|
    |               MAXDET|    Correct|     Successfully solved (LMILAB)|
    |               MAXDET|    Correct|     Successfully solved (LMILAB)|
    |        Infeasible LP|        N/A|     Infeasible problem (LINPROG)|
    |        Infeasible QP|        N/A|    Infeasible problem (QUADPROG)|
    |       Infeasible SDP|        N/A|      Infeasible problem (LMILAB)|
    |    Moment relaxation|    Correct|     Successfully solved (LMILAB)|
    |       Sum-of-squares|        N/A|      Infeasible problem (LMILAB)|
    |         Bilinear SDP|        N/A|               No suitable solver|
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Thanks in advance.
    Raouf

Johan Löfberg

unread,
Jul 22, 2013, 12:20:41 PM7/22/13
to yal...@googlegroups.com
As a temporary fix, change the word 'cplexlink125' to 'cplexlink1251' in the file definesolvers.m

Raouf

unread,
Jul 22, 2013, 12:30:40 PM7/22/13
to yal...@googlegroups.com
 i just changed the file definesolvers and i lunched the yalmiptest :
+++++++++++++++++++++++++++++++++++++++++++++++
|       Searching for installed solvers       |
+++++++++++++++++++++++++++++++++++++++++++++++
|        Solver|   Version/module|      Status|
+++++++++++++++++++++++++++++++++++++++++++++++
|         CPLEX|         IBM 12.5|       found|
|       LINPROG|                 |       found|
|      QUADPROG|                 |       found|
|        LMILAB|                 |       found|
|       FMINCON|        geometric|       found|
|       FMINCON|         standard|       found|
|    FMINSEARCH|                 |       found|
|           BNB|                 |       found|
|      BINTPROG|                 |       found|
|        CUTSDP|                 |       found|
|        BMIBNB|                 |       found|
|         KKTQP|                 |       found|
|          NONE|                 |       found|
|     LSQNONNEG|                 |       found|
|        LSQLIN|                 |       found|
|        GUROBI|           GUROBI|   not found|
|        GUROBI|              MEX|   not found|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|                 Test|   Solution|                                                                                                                                                                          Solver message|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|   sdpvar/set methods|        N/A|                                                                                                                                                            Successfully solved (YALMIP)|
|                   LP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using ==> cplexlp at 254
Undefined function or method 'cplexlink124' for input arguments of type 'double'.)|
|                   LP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using ==> cplexlp at 254
Undefined function or method 'cplexlink124' for input arguments of type 'double'.)|
|                   QP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using ==> cplexqp at 258
Undefined function or method 'cplexlink124' for input arguments of type 'double'.)|
|                   QP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using ==> cplexqp at 258
Undefined function or method 'cplexlink124' for input arguments of type 'double'.)|
|                 SOCP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using ==> cplexqcp at 767
Undefined function or method 'cplexlink124' for input arguments of type 'double'.)|
|                 SOCP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using ==> cplexqcp at 767
Undefined function or method 'cplexlink124' for input arguments of type 'double'.)|
|                 SOCP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using ==> cplexqcp at 767
Undefined function or method 'cplexlink124' for input arguments of type 'double'.)|
|                  SDP|    Correct|                                                                                                                                                            Successfully solved (LMILAB)|
|                  SDP|    Correct|                                                                                                                                                            Successfully solved (LMILAB)|
|                  SDP|    Correct|                                                                                                                                                            Successfully solved (LMILAB)|
|                  SDP|    Correct|                                                                                                                                                            Successfully solved (LMILAB)|
|               MAXDET|    Correct|                                                                                                                                                            Successfully solved (LMILAB)|
|               MAXDET|    Correct|                                                                                                                                                            Successfully solved (LMILAB)|
|        Infeasible LP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using ==> cplexlp at 254
Undefined function or method 'cplexlink124' for input arguments of type 'double'.)|
|        Infeasible QP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using ==> cplexqp at 258
Undefined function or method 'cplexlink124' for input arguments of type 'double'.)|
|       Infeasible SDP|        N/A|                                                                                                                                                             Infeasible problem (LMILAB)|
|    Moment relaxation|    Correct|                                                                                                                                                            Successfully solved (LMILAB)|
|       Sum-of-squares|        N/A|                                                                                                                                                             Infeasible problem (LMILAB)|
|         Bilinear SDP|        N/A|                                                                                                                                                                      No suitable solver|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Johan Löfberg

unread,
Jul 22, 2013, 12:45:00 PM7/22/13
to yal...@googlegroups.com
Your path is probably incorrect (note that cplex tries to call 12.4!)

which cplexlp -all

Should return something like C:\Program Files\IBM\ILOG\CPLEX_Studio1251\cplex\matlab\x64_win64\cplexlp.p and nothing else

This should work (entirely YALMIP free), otherwise your installation is broken
[x,fval,ex] = cplexlp(1,[],[],1,1)


Raouf

unread,
Jul 22, 2013, 1:53:13 PM7/22/13
to yal...@googlegroups.com
I cleared the yalmip folder and restart matlab everything is ok now thanks you .

Mary

unread,
Jan 20, 2014, 10:55:14 AM1/20/14
to yal...@googlegroups.com
Hi Raouf,

I have the same problem, and i have tried the same solutions. What I am getting is this

>> [x,fval,ex] = cplexlp(1,[],[])
??? Error using ==> cplexlp at 254
Undefined function or method 'cplexlink125' for input arguments of type 'struct'.

and of course my yalmiptest isn't finding the cplex too

Kindly, let me know 

yalmip-cplex 12.5 problem

unread,
Jan 28, 2014, 7:20:53 PM1/28/14
to yal...@googlegroups.com
 i have the same problem and what is the solution?

Johan Löfberg

unread,
Jan 29, 2014, 12:30:35 AM1/29/14
to yal...@googlegroups.com
Most likely you have installed the 32bit version of cplex on a 64bit system

yalmip-cplex 12.5 problem

unread,
Jan 29, 2014, 8:00:28 AM1/29/14
to yal...@googlegroups.com
Dear Johan,
my cplex  version is 64 bit.
This has nothing to do with yalmip because  the following is not working also.

Johan Löfberg

unread,
Jan 29, 2014, 8:43:44 AM1/29/14
to yal...@googlegroups.com
What is displayed when you run

mexext

and

path


yalmip-cplex 12.5 problem

unread,
Jan 29, 2014, 9:07:16 AM1/29/14
to yal...@googlegroups.com
Dear Johan,
the response to "mexext" and "path" is attached.
Thanks for your help.
cplex_12_5_problem.docx

Johan Löfberg

unread,
Jan 29, 2014, 9:19:54 AM1/29/14
to yal...@googlegroups.com
Nothing in the path indicates that you have a directory in the CPLEX directory which includes some kind of MATLAB interface. I don't know what the 12.2 directory structure looks like, but in 12.6 the matlab files are located in \cplex\matlab\x64_win64

You have either installed a version which doesn't have the MATLAB files, or you have setup the path incorrectly.

Either way, I would recommend you to install a more recent version of CPLEX: 12.2 is very old.

yalmip-cplex 12.5 problem

unread,
Jan 30, 2014, 8:47:03 AM1/30/14
to yal...@googlegroups.com
Cplex 12.6 works.
In fact before, it was Cplex 12.5 (64 bit. hundred percent sure!) installed and I do not know why it was an older version.
Anyway, thanks a lot for your help.

Ali Mokdad

unread,
Apr 27, 2015, 3:06:50 AM4/27/15
to yal...@googlegroups.com
hi,

how can i download tomlab/cplex

Johan Löfberg

unread,
Apr 27, 2015, 3:45:30 AM4/27/15
to yal...@googlegroups.com
You contact TOMLAB support I guess if you have problem.

If you want to use YALMIP with CPLEX, just download cplex from their official site and make sure you are using the latest version of YALMIP.
Reply all
Reply to author
Forward
0 new messages