Error message when using checkset

47 views
Skip to first unread message

Marcio

unread,
May 5, 2020, 10:52:50 AM5/5/20
to YALMIP
Hello everyone,

I am solving a problem with five polynomial matrices constraints using SOS. 
I am using yalmipversion: '20200116' and Matlab R2014a.

The problem is solved with sedumi by using sol = optimize(F,obj,sdpsettings('verbose',0,'solver','sedumi'),[Vetv]);

Vetv is a linear matrix variable. Apparently, the problem is solved and I can recover the solution by using value(Vetv).

However, when I use checkset there is an error message and I did not find the problem that is occurring.

I have four constraints (symmetric polynomial matrix variables) with dimension 2x2 and one constraint 3x3.
When I remove this last constraint the problem does not occur.

>> checkset(F)
 
Error using sdpvar/vertcat (line 31)
All rows in the bracketed expression must have the
same number of columns.

Error in lmi/check (line 79)
            p=[p;pi];

Error in lmi/checkset (line 27)
        check(F);

Thanks in advance,

Johan Löfberg

unread,
May 5, 2020, 10:58:25 AM5/5/20
to YALMIP
Supply a reproducible example
Message has been deleted

Johan Löfberg

unread,
May 5, 2020, 11:30:17 AM5/5/20
to YALMIP
Confirmed. I've checked in what I think is a fix on the develop branch

Marcio

unread,
May 5, 2020, 11:49:37 AM5/5/20
to YALMIP
Thank you. Is there any alternative to check if the solution is reliable?

Johan Löfberg

unread,
May 5, 2020, 11:52:29 AM5/5/20
to YALMIP

Marcio

unread,
May 5, 2020, 12:31:50 PM5/5/20
to YALMIP
Thank you.
Reply all
Reply to author
Forward
0 new messages