Sedumi working on my laptop but not my pc

189 views
Skip to first unread message

Fahimeh Kazempour

unread,
Nov 11, 2014, 2:52:30 PM11/11/14
to yal...@googlegroups.com
Dear John,

I installed Yalmip and then sedumi and then LMirank on both my laptop (Matlab 2010a) and my PC (Matlab 2014a). I run my code on my laptop and it works but it doesn't work on my pc. When I double checked the installation of sedumi by a simple code as: A=..., B=..., C=..., x=sedumi(A,B,C), in my PC it gives me the error that "maxstep" too many arguments. The exact same error appears when I run lmiranktest.m . However, when I run install_sedumi, it says that it is successfully installed. Can you help me with this?

Many thanks,
Fahimeh

Johan Löfberg

unread,
Nov 11, 2014, 2:54:06 PM11/11/14
to yal...@googlegroups.com
So what is returned when you check where that function resides on your two machines

 which maxstep -all


Fahimeh Kazempour

unread,
Nov 11, 2014, 3:00:43 PM11/11/14
to yal...@googlegroups.com
On my laptop (which works good)
C:\sedumi-master\maxstep.m
E:\MATLAB\R2010a\toolbox\filterdesign\filterdesign\@adaptfilt\maxstep.m  % adaptfilt method
C:\SeDuMi_1_3\maxstep.m

On my pc (which dose not work)
C:\MATLAB\R2014a\toolbox\dsp\dsp\maxstep.m
C:\MATLAB\R2014a\toolbox\dsp\filterdesign\@adaptfilt\maxstep.m                     % adaptfilt method
C:\Users\Fhm\Dropbox\PhD research matterials\Matlab Codes\sedumi-master\maxstep.m  % Shadowed

Johan Löfberg

unread,
Nov 11, 2014, 3:05:08 PM11/11/14
to yal...@googlegroups.com
So there you have it. For some reason, you have managed to get sedumi paths far down in the path order. You have to move up the sedumi path to make it the first version of maxstex (use pathtool), or remove the dsp toolbox from the path

Fahimeh Kazempour

unread,
Nov 11, 2014, 3:24:38 PM11/11/14
to yal...@googlegroups.com
OK. now the problem of maxstep is solved. Thank you very much for that. However, another problem remains. I attached a .m file here. This is the example you have in Yalmip wiki. This runs perfectly on my laptop. However in the PC, it gives me this error:
Undefined function getlmiid for inputs of type double.

Would you please help me on that too?
test222.m

Johan Löfberg

unread,
Nov 11, 2014, 3:27:24 PM11/11/14
to yal...@googlegroups.com
Well, you should be able to extrapolate the debug procedure from the previous problem. A file is missing on one of your machines, so...

which getlmiid -all




Johan Löfberg

unread,
Nov 11, 2014, 3:30:45 PM11/11/14
to yal...@googlegroups.com
BTW, I think you are using different versions of YALMIP on your two machines, because lmirank does not work with the latest version of YALMIP (crashes and writes an error message related to getlmiid).

Fahimeh Kazempour

unread,
Nov 11, 2014, 3:38:48 PM11/11/14
to yal...@googlegroups.com
I checked but it seems to be ok!

My PC:
C:\Users\Fhm\Dropbox\PhD research matterials\Matlab Codes\yalmip\extras\@lmi\getlmiid.m  % lmi method

My laptop:
C:\yalmip\extras\@lmi\getlmiid.m  % lmi method

Regarding the Yalmip versions, that's so possible. I'm gonna double check that.

Johan Löfberg

unread,
Nov 11, 2014, 3:39:27 PM11/11/14
to yal...@googlegroups.com
change line 18 in sdpvar/rank to

 varargout{1} = lmi([]);


Fahimeh Kazempour

unread,
Nov 11, 2014, 3:49:34 PM11/11/14
to yal...@googlegroups.com
Before doing that, I just installed the Yalmip that I'm using on my laptop on my pc. Now, even yalmiptest gives me an error of:

Error using table (line 280)
Wrong number of arguments.

Error in lmi/checkset (line 234)
    table('',header,data)

Error in test222 (line 23)
checkset(F)

Caused by:
    You may have intended to create a table with one row from one or more variables that are character strings.
    Consider using cell arrays of strings rather than character arrays. Alternatively, create a cell array with
    one row, and convert that to a table using CELL2TABLE.

Why is thta?

Johan Löfberg

unread,
Nov 11, 2014, 3:52:26 PM11/11/14
to yal...@googlegroups.com
That YALMIP version is too old for that MATLAB version.

Just use the latest version ,and do the fix in sdpvar/rank

Fahimeh Kazempour

unread,
Nov 11, 2014, 4:03:00 PM11/11/14
to yal...@googlegroups.com
Solved!

You are amazing Johan :)
Many many thanks.

Pedram Hajipour

unread,
May 21, 2016, 3:29:09 AM5/21/16
to YALMIP
hello
Fahimeh Kazempour
please send me a source code for install Sedumi in matlab 2014
thank a lot

Pedram Hajipour

unread,
May 21, 2016, 3:35:53 AM5/21/16
to YALMIP
please send me a sedumi code for matlab 2014

Johan Löfberg

unread,
May 21, 2016, 12:36:23 PM5/21/16
to YALMIP
You have binaries at SeduMi github
Reply all
Reply to author
Forward
0 new messages