ndsdpvar/clean unexpected error

37 views
Skip to first unread message

Maxime GROSSO

unread,
Oct 14, 2025, 4:39:30 AM10/14/25
to YALMIP
Hi, 

I encountered another unexpected error with clean and ndsdpvar. 

s = ndsdpvar(4,4,8)
My bigger code consist on performing s -s as follow :

Here is a minimal code 
s = ndsdpvar(4,4,8)
S4 = cat(4,-s,s)
sum(ans,4)

Seems to be tied to the sum being 0, as sum 4 with independent sdpvar works well

Index exceeds array bounds.

Error in
ndsdpvar/clean (line 22)
if index(1)==1
^^^^^^^^
Error in
ndsdpvar/sum (line 61)
X = clean(X);
^^^^^^^^

I thank you in advance, 
Regards, 
Maxime

Maxime GROSSO

unread,
Dec 19, 2025, 3:57:32 AM12/19/25
to YALMIP
Dear Professor, 

May I ask respectfully if you had time to look for this issue ? 
My understanding is that clean struggle with multidimensionnal sdpvar array of dimension >2. 

Thanks in advance, 

Regard, 

Maxime GROSSO
Reply all
Reply to author
Forward
0 new messages