Assertion failed error

Uncategorized
Sep 9, 2013
J

Hello. I have a problem of using CVX to solve a convex problem. Sometimes, the error occurs below:

Error using findblks
Assertion failed (k < bsize) at line 181 of file ‘sdmauxCmp.c’.

Stack trace:
[ 0] 0x01d6d33a F:\Program Files\MATLAB\R2013a\bin\win32\libmwfl.dll+00054074
fl::diag::stacktrace_base::rend+00000586
[ 1] 0x01d6d812 F:\Program Files\MATLAB\R2013a\bin\win32\libmwfl.dll+00055314
fl::diag::stacktrace_base::stacktrace_base+00000034
[ 2] 0x73dcbeac F:\Program Files\MATLAB\R2013a\bin\win32\libmex.dll+00048812 mexPrintAssertion+00000620
[ 3] 0x05c22637 c:\documents and settings\yan\work\2012paper\201308\201306code\sedumi\findblks.mexw32+00009783
[ 4] 0x05c21215 c:\documents and settings\yan\work\2012paper\201308\201306code\sedumi\findblks.mexw32+00004629

Thanks for u attention. Best wishes!

M

This is actually a bug in SeDuMi, not in CVX itself. What happens if you try the other solver, SDPT3? That is, insert

cvx_solver sdpt3

in your code and see what happens.

If you’re interested in helping debug SeDuMi, please submit a bug report on the SeDuMi issues page, preferably with enough data to reproduce you model. You are welcome to include CVX models in that bug report.

J

Thanks for your suggestion, I will try that. I notice that the sdpt solver is already inclued in the CVX package. But I am not sure which one is more powerful, sedumi or sdpt3?

M

They both solve the same set of problems. Sometimes one will be better than the other. SeDuMi is typically faster, but even that isn’t always true.