When I try to solve my model by CVX, there is a confusing peoblem. And I really hope you can give me some suggestion.
The code is as fellow.
% obj = trace(inv(Je))
% for i = 1:Na+Nb
% Pi0(i) + deltaPi(i) <= P0
% Pi0(i) + deltaPi(i) >= 0
sum(Pi0) + sum(deltaPi) <= P_total
Check for incorrect argument data type or missing argument in call to function ‘vec’.
Error in cvx/sparsify>replcols (line 142)
cvx___.readonly( ndxs ) = vec( cvx_readlevel( bN ) );
Error in cvx/sparsify (line 61)
[ x, forms, repls ] = replcols( x, tt, ‘full’, forms, repls, isobj );
Error in cvx_end (line 212)
x = sparsify( x, ‘objective’ );
Error in cvx/trace_inv (line 29)