Error in sdpvar/value

30 views
Skip to first unread message

vr7

unread,
Oct 15, 2018, 6:56:04 AM10/15/18
to YALMIP
Hi, 

I've tried to implement formula (34) and (35) in yalmip.

(34).PNG







(35).PNG








The code for (34) is the file maxdet.m, the code for (35) is prob35.m.

When I run in matlab I get this error

Error in sdpvar/value (line 39)
nonlinears = lmi_variables(find(variabletype(lmi_variables)));


Thank you in advance.


maxdet.m
prob35.m
vars.mat

Johan Löfberg

unread,
Oct 15, 2018, 7:35:42 AM10/15/18
to YALMIP
you cannot do yalmip('clear') in the sub-function, as that kills everything in YALMIPs database, and thus the caller will fail when it tries to access data in its models after having called prob35

Johan Löfberg

unread,
Oct 15, 2018, 7:51:36 AM10/15/18
to YALMIP
btw,

T = sdpvar(repmat(n,1,i),repmat(n,1,i),'hermitian','complex');
Reply all
Reply to author
Forward
0 new messages