sdpa solver not found problem.

394 views
Skip to first unread message

Manohar Reddy

unread,
Feb 16, 2015, 6:04:11 AM2/16/15
to yal...@googlegroups.com
z = sdpvar(2400,1);
solvesdp([r*eye(M)>=0 reshape(psi'*z,M,K)>=0 ; (reshape(psi'*z,M,K))'>=0 r*eye(K)>=0],0.5*z'*z - real(y'*z),sdpsettings('solver','sdpa'));value(z)

in the settings i have given solver as 'sdpa' , but matlab is giving warning: that solver is not found. I have added the path of solver anyway. Do I have install sdpa solver externally..
Please clarify, am new to this.

Johan Löfberg

unread,
Feb 16, 2015, 6:24:28 AM2/16/15
to yal...@googlegroups.com
Most likely you haven't installed the correct version

>> which sdpam -all
C
:\work\solvers\sdpam-7.3.9-windows\sdpam7-windows\sdpam.m

>> which mexsdpa
C
:\work\solvers\sdpam-7.3.9-windows\sdpam7-windows\mexsdpa.mexw64


Manohar Reddy

unread,
Feb 16, 2015, 6:30:45 AM2/16/15
to yal...@googlegroups.com
So, I have to install sdpa solver separately and add that too matlab path.

Manohar Reddy

unread,
Feb 16, 2015, 6:38:40 AM2/16/15
to yal...@googlegroups.com
Thanks Johan


I have one more small doubt too.. ,
1. Does SDPT3 solver can solve Quadratic semi definite programming problems.

2. Does we have to install all the sovers separately and add them to the path. 

Please clarify.

Johan Löfberg

unread,
Feb 16, 2015, 7:01:10 AM2/16/15
to yal...@googlegroups.com
Every solver you want to use has to be installed and added to path, as always. YALMIP does not ship with any solver.

Unless you want to use SDPA for some very specific reason, I would argue there are better alternatives (mosek / sedumi/ sdpt3)

All SDP solvers can solve problems with (convex) quadratic objectives, as YALMIP automatically will reformulate the model using SOCPs

Manohar Reddy

unread,
Feb 16, 2015, 10:08:20 AM2/16/15
to yal...@googlegroups.com
Thanks Johan

Sehli Naima

unread,
Jun 2, 2018, 1:16:37 PM6/2/18
to YALMIP
I installed and added to path Sedumi solver and sdpt3 solver however matlab is giving warning  :" Undefined function 'sdpvar' for input arguments of type 'double". 

what shall I do ?  

I 'm still beginner at using Yalmip environment. 

 

Johan Löfberg

unread,
Jun 2, 2018, 1:19:58 PM6/2/18
to YALMIP
You have not added YALMIP to the path

Sehli Naima

unread,
Jun 2, 2018, 1:25:33 PM6/2/18
to YALMIP

No I added this folder

MY

unread,
Jun 2, 2018, 1:29:03 PM6/2/18
to YALMIP
make sure you added their path to Matlab correctly, this problem is common for not finding Yalmip files.

Sehli Naima

unread,
Jun 2, 2018, 1:47:24 PM6/2/18
to YALMIP
still problem. 
when I tape " help sdpvar" in matab command a message is shown : sdpvar Converts a NDSDPVAR variable to standard sdpvar

    Overloaded methods:
       constraint/sdpvar
       blkvar/sdpvar

but when I use sdpvar in a script , "Undefined function 'sdpvar' for input arguments of type 'double" is shown

MY

unread,
Jun 2, 2018, 1:52:39 PM6/2/18
to YALMIP
Not sure about the success, but you may try to clear all your saved matlab paths (there is a command to clear your search path in matlab, but I could not recall it now), and add Yalmip file and give a try.

Johan Löfberg

unread,
Jun 2, 2018, 2:00:24 PM6/2/18
to YALMIP
you've messed up the installation somehow. delete the whole installation and do it again. for some reason, you must have deleted yalmip/@sdpvar or something
Reply all
Reply to author
Forward
0 new messages