Why is this problem failed? Optimal value (cvx_optval): NaN

You need to fix the problem scaling (choice if units) so that all non-zero input data is within a small number of orders of magnitude of 1. Mosek issued a warning about 1e9. I don’t know what “The equality constraint ‘’ (8) is fixed to numerically large value -1e+09.” means, but probably nothing good.

if after fixing the scaling, the problem is still reported as infeasible, follow the advice in Debugging infeasible models - YALMIP, all but section 1 of which also applies to CVX.

It seems you have not taken to heart the advice from a previous post of mine in response to you: MOSEK returns NaN although the optimization problem is solved - #15 by Mark_L_Stone So my help yo you is yo advise you to follow that advice for this and all your future problems.