Firstly, thank you so much for your answer and for YALMIP in general. It is not only an amazing library, but it is also incredible that you reply to these questions as fast and as well as you do. I apologize if my question sounded like a critique of the library, which it definitely was not intended to be. I am very happy with YALMIP and all I want is to be sure I am using it to its maximum potential.
For clarity, I am attaching the Matlab script I'm running. As I'm sure you can see, it relates to a 2D discretization of a square with some edge length hx (see line 4). I would like to run more refined examples (either for larger domains or for lower values of hx, like in the 0.001 or 0.1). I have noticed that the time bottleneck seems to be in that nuclear norm aggregation (lines 48 to 54), and was wondering if there was a way of vectorizing it so that the bottleneck becomes the SDP solver (this is to say, the call to "optimize" in line 69), or making these lines faster in any way.
Just to clarify, if the answer is "no", that's perfectly fine, and I realize this is an intrinsic issue of SDP and not of the library. Again, I just want to make sure I am using YALMIP to its best potential, since I'm just a student and am not familiar with all of its nuances.
Have a nice day, and thanks again for your reply :)
Silvia