I want to know why the solution is going wrong

I had some problems solving with cvx:

variable P1(2,2) symmetric
variable Y1(10,2)
variable G2(10,7)
minimize norm( X1G2,2 )
subject to
Y1 == [P1;I_0]
ZG2 == [I_0’;I1]
Y1)';X1*Y1,P1] == semidefinite(4)

Except for the variables set, all of them are known and have appropriate dimensions。Thank you very much for your answer。
Error reported as follows:
Calling SDPT3 4.0: 114 variables, 94 equality constraints
For improved efficiency, SDPT3 is solving the dual problem.

Status: Error
Optimal value (cvx_optval): NaN

The array index must be a positive integer or a logical value.

Error cvx sdpt3>solve (Line 211)
Avec{end}{end+1} = reshape( ( str_3 * str_2 ) * reshape( At(ti,:), nt, nv * m ), nt2 * nv, m );

Error cvx solve (Line 399)
[ x, status, tprec, iters, y ] = shim.solve( At, b, c, cones, params );

Error cvx finish (Line 57)
[ status, result, bound, iters, tol ] = cvx_solve;

Error cvx end (Line 11)
evalin( ‘caller’, ‘cvx_finish’ );



That looks like a bug or corrupted MATLAB session.


Try a different solver.

Try a new MATLAB session.

Try reinstalling CVX.

Does my program seem to have a problem?

It look o.k. But you have not provided a reproducible problem, complete with all input data,so I don’t know for sure.

Ok, thank you for your answer.