Bug/performance issue report ?

17 views
Skip to first unread message

Olivier Mégel

unread,
May 11, 2015, 5:52:43 AM5/11/15
to yal...@googlegroups.com
Hi Johan,

I just noticed a small issue in YALMIP that can affect the speed of the tool:

in "categorizeproblem.m", on line 414, replacing
if all(Q>=0)
by
if all(nonzeros(Q)>=0)
can greatly reduce the computation time for large Q matrix, since Q is usually quite sparse.


Best,
Olivier


Johan Löfberg

unread,
May 11, 2015, 7:00:54 AM5/11/15
to yal...@googlegroups.com
Ouch, that was one horrible piece of code. Thank you for alerting me.
Reply all
Reply to author
Forward
0 new messages