How to analyze the ndsdpvar results?

81 views
Skip to first unread message

zhibo yan

unread,
May 30, 2020, 8:41:19 AM5/30/20
to YALMIP
Hi Johan,

How can I analyze the ndsdpvar results after I finish the MILP? I want to do some operations in Matlab, but it shows that I can't convert constraint to logical.  Such as, if(Y(1,1,1)==0) , where Y is a Multi-dimensional SDPVAR object. 

Thank you very much. 

Johan Löfberg

unread,
May 30, 2020, 10:47:49 AM5/30/20
to YALMIP
you have to use value as always

zhibo yan

unread,
May 30, 2020, 10:56:59 AM5/30/20
to YALMIP
Is there any way to save ndsdpvar as .mat/.txt/.csv or other formats? I might need to do some thorough analysis on ndsdpvar.

Johan Löfberg

unread,
May 30, 2020, 11:58:10 AM5/30/20
to YALMIP
you extract using value, and then you do what ever you want using standard matlab saving/export of data
Reply all
Reply to author
Forward
0 new messages