I installed latest Yalmip and CPLEX 12.5, but it doesn't work[help]

180 views
Skip to first unread message

Jason Qu

unread,
Mar 9, 2013, 10:58:13 PM3/9/13
to yal...@googlegroups.com
I input 'yalmiptest'
the result is below:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|                 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) (Input argument "b_L" is undefined.)|
|                   LP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Input argument "b_L" is undefined.)|
|                   QP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Input argument "b_L" is undefined.)|
|                   QP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Input argument "b_L" is undefined.)|
|                 SOCP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Input argument "b_L" is undefined.)|
|                 SOCP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Input argument "b_L" is undefined.)|
|                 SOCP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Input argument "b_L" is undefined.)|
|                  SDP|    Correct|                                                                      Successfully solved (PENSDP/TOMLAB)|
|                  SDP|    Correct|                                                                      Successfully solved (PENSDP/TOMLAB)|
|                  SDP|    Correct|                                                                      Successfully solved (PENSDP/TOMLAB)|
|                  SDP|    Correct|                                                                      Successfully solved (PENSDP/TOMLAB)|
|               MAXDET|    Correct|                                                                      Successfully solved (PENSDP/TOMLAB)|
|               MAXDET|    Correct|                                                                      Successfully solved (PENSDP/TOMLAB)|
|        Infeasible LP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Input argument "b_L" is undefined.)|
|        Infeasible QP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Input argument "b_L" is undefined.)|
|       Infeasible SDP|        N/A|                                                                       Infeasible problem (PENSDP/TOMLAB)|
|    Moment relaxation|    Correct|                                                                      Successfully solved (PENSDP/TOMLAB)|
|       Sum-of-squares|    Correct|                                                                      Successfully solved (PENSDP/TOMLAB)|
|         Bilinear SDP|    Correct|                                                                      Successfully solved (PENBMI/TOMLAB)|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Johan Löfberg

unread,
Mar 10, 2013, 3:34:38 AM3/10/13
to yal...@googlegroups.com
Looks like you have TOMLAB installed, and I would not be surprised if TOMLAB has some cplex interface of their own, which uses the same name as the cplex interface supplied by IBM in the recent CPLEX versions (i.e., check where the file cplexlp (>>which cplexlp) is located)

Remove TOMLAB from your path and it should work.

Jason Qu

unread,
Mar 10, 2013, 10:40:18 AM3/10/13
to yal...@googlegroups.com
Thank you very much.

Omid

unread,
Aug 25, 2014, 5:40:11 AM8/25/14
to yal...@googlegroups.com
Hi Johan,
I have installed the latest YALMIP with CPLEX12.1. When I run "yalmiptest" I get the following message:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|                 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 (line 180)
Cannot access method 'delete' in class 'meta.property'.)|
|                   LP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using cplexlp (line 180)
Cannot access method 'delete' in class 'meta.property'.)|
|                   QP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using cplexqp (line 186)
Cannot access method 'delete' in class 'meta.property'.)|
|                   QP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using cplexqp (line 186)
Cannot access method 'delete' in class 'meta.property'.)|
|                 SOCP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using cplexqcp (line 523)
Cannot access method 'delete' in class 'meta.property'.)|
|                 SOCP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using cplexqcp (line 523)
Cannot access method 'delete' in class 'meta.property'.)|
|                 SOCP|        N/A|   Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using cplexqcp (line 523)
Cannot access method 'delete' in class 'meta.property'.)|
|                  SDP|    Correct|                                                                                                                               Successfully solved (DSDP-OPTI)|
|                  SDP|    Correct|                                                                                                                               Successfully solved (DSDP-OPTI)|
|                  SDP|    Correct|                                                                                                                               Successfully solved (DSDP-OPTI)|
|                  SDP|    Correct|                                                                                                                               Successfully solved (DSDP-OPTI)|
|               MAXDET|    Correct|                                                                                                                               Successfully solved (DSDP-OPTI)|
|               MAXDET|    Correct|                                                                                                                               Successfully solved (DSDP-OPTI)|
|        Infeasible LP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using cplexlp (line 180)
Cannot access method 'delete' in class 'meta.property'.)|
|        Infeasible QP|        N/A|    Unknown problem in solver (try using 'debug'-flag in sdpsettings) (Error using cplexqp (line 186)
Cannot access method 'delete' in class 'meta.property'.)|
|       Infeasible SDP|        N/A|                                                                                                                                Infeasible problem (DSDP-OPTI)|
|    Moment relaxation|    Correct|                                                                                                                               Successfully solved (DSDP-OPTI)|
|       Sum-of-squares|    Correct|                                                                                                                               Successfully solved (DSDP-OPTI)|
|         Bilinear SDP|        N/A|                                                                                                                                            No suitable solver|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

and when I run "which cplex" I get the following:
C:\ILOG\CPLEX121\matlab\x64_win64\@Cplex\Cplex.p  % Cplex constructor

Could you let me know what is the problem and is there any solution ?

Thank you in advance

Johan Löfberg

unread,
Aug 25, 2014, 6:06:12 AM8/25/14
to
Restart MATLAB (as it could be some weird fault in your work-space) and try to see the error more clearly by solving a specific problem with debug on

sdpvar x
solvesdp
(x>=0,x^2,sdpsettings('solver','cplex','debug',1))


You should update cplex. I haven't worked with 12.1 in a long time.

Omid

unread,
Aug 25, 2014, 6:10:24 AM8/25/14
to yal...@googlegroups.com
Here is the error when I run the code you have sent me:

Error using cplexqp (line 186)
Cannot access method 'delete' in class 'meta.property'.

Error in call_cplexibm_miqp>localSolverCall (line 135)
            [x,fval,exitflag,output,lambda] = cplexqp(H,f,Aineq,bineq,Aeq,beq,lb,ub,x0,options.cplex);

Error in call_cplexibm_miqp (line 13)
[x,fval,exitflag,output,lambda] = localSolverCall(model);

Error in call_cplexibm_qcmiqp (line 11)
    output = call_cplexibm_miqp(interfacedata);

Error in solvesdp (line 359)
    eval(['output = ' solver.call '(interfacedata);']);

Johan Löfberg

unread,
Aug 25, 2014, 6:12:35 AM8/25/14
to yal...@googlegroups.com
I presume you've checked that cplex actually works

>> cplexqp(1,1,1,6)

ans
=

   
-1


Omid

unread,
Aug 25, 2014, 6:17:00 AM8/25/14
to yal...@googlegroups.com
No, it does not work. I get this error

Johan Löfberg

unread,
Aug 25, 2014, 6:21:32 AM8/25/14
to yal...@googlegroups.com
So then you have to fix that first.

You either have a very old MATLAB version, or your cplex installation is borked.

Omid

unread,
Aug 25, 2014, 6:31:54 AM8/25/14
to yal...@googlegroups.com
I have "MATLAB R2014a". Could the problem be because of new MATLAB and old CPLEX12.1 ? or I should look for a solution in CPLEX installation ?

Johan Löfberg

unread,
Aug 25, 2014, 6:38:22 AM8/25/14
to yal...@googlegroups.com
You should update cplex in any case. It is old.
Reply all
Reply to author
Forward
0 new messages