SDP in CVX 3.0 fails due to Subscript indices must either be real positive integers or logicals


(Sijia) #21

Ok, both of them have the same MATLAB path.


(Mark L. Stone) #22

By the same, do you mean every item is in the same order?


#23

hello, have you solve the problem? because I also meet the same question.


(Mark L. Stone) #24

CVX3.0beta build 1177 under MATLAB R2014A WIN64:

Here are errors with 3 different solvers on the code in the first thread of this post.

Error using sparse
Index into matrix must be positive.
Error in cvx_sedumi>solve (line 144)
reord = sparse( …
Error in cvx_solve (line 399)
[ x, status, tprec, iters, y ] = shim.solve( At, b, c, cones, params );
Error in cvx_finish (line 57)
[ status, result, bound, iters, tol ] = cvx_solve;
Error in cvx_end (line 11)
evalin( ‘caller’, ‘cvx_finish’ );

++++++++++++

Subscript indices must either be real positive integers or logicals.
Error in cvx_sdpt3>solve (line 211)
Avec{end}{end+1} = reshape( ( str_3 * str_2 ) * reshape( At(ti,:), nt, nv * m ), nt2 * nv, m );
Error in cvx_solve (line 399)
[ x, status, tprec, iters, y ] = shim.solve( At, b, c, cones, params );
Error in cvx_finish (line 57)
[ status, result, bound, iters, tol ] = cvx_solve;
Error in cvx_end (line 11)
evalin( ‘caller’, ‘cvx_finish’ );

++++++++++++

Error using sparse
Index into matrix must be positive.
Error in cvx_scs>solve (line 118)
reord = sparse( …
Error in cvx_solve (line 399)
[ x, status, tprec, iters, y ] = shim.solve( At, b, c, cones, params );
Error in cvx_finish (line 57)
[ status, result, bound, iters, tol ] = cvx_solve;
Error in cvx_end (line 11)
evalin( ‘caller’, ‘cvx_finish’ );


#25

I meet the same problem as well. No matter which solver I use, it will occur the second error. The error does not occur when I use CVX 2.1 version.