How to judge whether a variable is a sdpvar?

30 views
Skip to first unread message

Pan Zhao

unread,
Jul 22, 2016, 2:05:28 PM7/22/16
to YALMIP
Hi Johan,

I needs to do something based on whether a variable is a sdpvar or constant. Is there some way to evaluate whether a variable is a sdpvar, similar to type(x) ==“sdpvar” or x == NaN? 

Thanks 
Pan 

Pan Zhao

unread,
Jul 22, 2016, 2:07:11 PM7/22/16
to YALMIP
This evaluation is needed before the optimization starts.

Johan Löfberg

unread,
Jul 24, 2016, 4:51:21 AM7/24/16
to YALMIP
Use class or isa
Reply all
Reply to author
Forward
0 new messages