SCS is combiled and added to CVX solvers list, but it does not solve!


I have installed SCS solver and combiled it. Then, I installed CVX 3.0b. The SCS solver now exists in the list of solvers.
I run this problem using SeDuMi and it gets solved

cvx_solver SeDuMi







variable X(N,N) complex semidefinite

maximize( log(trace(A*X))-trace(B*X) )

subject to


X == hermitian_semidefinite(N)


However, when I change the solver to SCS (cvx_solver SCS), I get the following error

Calling SCS 1.0: 424 variables, 103

equality constraints

------------------------------------------------------------ Status: Error Optimal value

(cvx_optval): NaN

Reference to non-existent field ‘prec’.

Error in cvx_scs>solve (line 144)

prec = params.prec;

Error in cvx_solve (line 405)

[ x, status, tprec, iters ] = 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 in Untitled (line 15)


Please, Can anyone help ?


I solved the problem by changing the line 144 in cvx_scs


prec = params.prec;


prec = params.precision;

This change should be made to CVX 3.0b.

(Michael C. Grant) #3

Thanks for the update!

(chao ding) #4

Excuse me, how to install SCS solver and combiled it ?please help me ,thank you

(Mark L. Stone) #5

SCS is only recognized under CVX 3.0beta, which is full of bugs, so I don’t recommend it. Sorry for the bad news.

(chao ding) #6

Thanks for your reply! Can you recommend a better one?I intend to deal with SDP issues.

(Erling D.Andersen) #7

Have you tried Mosek?

(Mark L. Stone) #8

Yes, try Mosek.
… .

(chao ding) #9

Okay,thanks for your reply!

(chao ding) #10

excuse me ! Can Mosek solve large cone problems?

(Mark L. Stone) #11

If there is enough memory. But it uses a second order algorithm, so requires more memory than a first order algorithm.

(Erling D.Andersen) #12

I thought it was trivial to try different optimizers supported by CVX. So why not start with the easy one to try e.g. Mosek or SeDuMi or SDPT3.

Btw some benchmarks