Dualize: Error using |, operands must be real #1169
-
Hi, Yalmip has been crashing on some relatively large SDP problems I have when dualize is set to 1 (for smaller problems of this type I have found faster convergence using scs-direct with this option, which is why I'm using it here). I get the error:
On closer inspection, we can see the issue is that B has an epsilon imaginary part:
Can we generically remove the imaginary part of B, or use a more robust way of converting it to a logical here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you post a reproducible example |
Beta Was this translation helpful? Give feedback.
-
There should be no imaginary part there, so the fix will be an addition of B = real(B) on line 874 (unless I clean it upstream) |
Beta Was this translation helpful? Give feedback.
There should be no imaginary part there, so the fix will be an addition of B = real(B) on line 874 (unless I clean it upstream)