Sedumi and SDPT3 Matlab 2017a

394 views
Skip to first unread message

Francesco Ferrante

unread,
Mar 1, 2018, 9:48:54 AM3/1/18
to YALMIP
Hello,

I am having some issues with both sedumi and sdpt3 under Matlab 2017a. More precisely, Matlab does not go through yalmiptest when either Sedumi or sdpt3 are installed. With Mosek, everything is fine. Any idea?

Thanks.

Francesco

Johan Löfberg

unread,
Mar 1, 2018, 9:56:53 AM3/1/18
to YALMIP
So do you have a working installation of those solver?

sedumi(1,1,1)
>> sedumi(1,1,1)
SeDuMi 1.32 by AdvOL, 2005-2008 and Jos F. Sturm, 1998-2003.
Alg = 2: xz-corrector, Adaptive Step-Differentiation, theta = 0.250, beta = 0.500
eqs m = 1, order n = 2, dim = 2, blocks = 1
nnz(A) = 1 + 0, nnz(ADA) = 1, nnz(L) = 1
 it :     b*y       gap    delta  rate   t/tP*  t/tD*   feas cg cg  prec
  0 :            8.00E+00 0.000
  1 :   7.87E-01 5.00E-01 0.000 0.0625 0.9900 0.9900   1.40  1  1  2.9E-01
  2 :   1.00E+00 1.65E-04 0.000 0.0003 0.9999 0.9999   1.09  1  1  
iter seconds digits       c*x               b*y
  2      0.2   Inf  1.0000000000e+00  1.0000000000e+00
|Ax-b| =   0.0e+00, [Ay-c]_+ =   0.0E+00, |x|=  1.0e+00, |y|=  1.0e+00

Detailed timing (sec)
   Pre          IPM          Post
2.730E-01    3.160E-01    3.699E-02    
Max-norms: ||b||=1, ||c|| = 1,
Cholesky |add|=0, |skip| = 0, ||L.L|| = 1.

ans =

     1



Francesco Ferrante

unread,
Mar 1, 2018, 11:22:55 AM3/1/18
to YALMIP
Thanks for replying. Here's what I get when I run sedumi(1,1,1).

Error using pretransfo (line 163)
Should have length(c) > length(b) in any sensible model

Error in sedumi (line 261)
[A,b,c,K,prep,origcoeff] = pretransfo(A,b,c,K,pars);

Johan Löfberg

unread,
Mar 1, 2018, 11:35:50 AM3/1/18
to YALMIP
that smells like a very old version of sedumi

I'm pretty sure you haven't installed sedumi correctly, i.e. you haven't tested and ensured that it actually works

x = sdpvar(2);
optimize
([x(1)==1, x>=0],trace(x),sdpsettings('solver','sedumi','debug',1))


Francesco Ferrante

unread,
Mar 1, 2018, 11:39:05 AM3/1/18
to YALMIP
Just tested your example and Matlab gets stuck on it as while running yalmiptest. 

Johan Löfberg

unread,
Mar 1, 2018, 11:56:16 AM3/1/18
to YALMIP

Which sedumi version are you using? Have you tested if it works by running some of the supplied examples, such as

load arch0
sedumi
(At,b,c,K)



Francesco Ferrante

unread,
Mar 1, 2018, 12:01:43 PM3/1/18
to YALMIP
I am using Sedumi 1.3. Test also this latter example and same thing again.

Johan Löfberg

unread,
Mar 1, 2018, 12:10:30 PM3/1/18
to YALMIP
well then  you have a sedumi version which is old and non-working on your machine

Francesco Ferrante

unread,
Mar 1, 2018, 12:20:47 PM3/1/18
to YALMIP
OK, I am trying to see if sdpt3 works by invoking sqlpdemo but it seems it gets stuck as well. By the way, I am on a Mac.

Johan Löfberg

unread,
Mar 1, 2018, 12:26:57 PM3/1/18
to YALMIP
Well, it is pretty clear that you have a failed installation.

It should work out of the box, but if you cannot get it to work, some people have discussed mac issues

AMINE FERHAT

unread,
Mar 1, 2018, 2:13:31 PM3/1/18
to YALMIP
I am on Windows
and I'm using Sedumi 1.3 version ( I do not have any old version of sedumi)
and I'm Using Yalmip

when I tape the Sedumi (1,1,1)
result:

>> sedumi(1,1,1)

Johan Löfberg

unread,
Mar 1, 2018, 2:30:46 PM3/1/18
to YALMIP
1.3 is very old. The latest version is at least 1.32

Version 1.32 was defioned in 2013

I'm not sure why you are in this thread though...
Reply all
Reply to author
Forward
0 new messages